Closed (fixed)
Project:
Hostmaster (Aegir)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2013 at 18:09 UTC
Updated:
17 Jun 2013 at 22:05 UTC
I get this notification when I go through these steps 1). creating/installing a site without ssl, 2) then trying to enable ssl. After enabling SSL on the site and clicking save I get the message, "Unable to allocate IP address for certificate, disabling SSL. Allocate more IP addresses to this server then try to enable SSL again." The site saves but does not enable ssl. I think it is related to not allocating an IP address but only the host name. This seems to fix it:
hosting/server/hosting.ip.inc
@@ -35,7 +35,7 @@ function hosting_ip_save($node, $update = FALSE) {
}
}
- $ips = is_array($node->new_ip_addresses) ? $node->ip_addresses : array();
+ $ips = is_array($node->new_ip_addresses) ? $node->new_ip_addresses : array();
Comments
Comment #1
trrroy commentedswitching version
Comment #2
anarcat commentedlooks good, just needs testing. in the future, try to attach patches instead of pasting them inline. thanks!
Comment #3
anarcat commentedcommitted thanks
Comment #5
ergonlogicI'm still getting the error reported above, despite this change in 6.x-2.x.
Comment #6
anarcat commentedplease open an issue describing exactly the problem and how to reproduce - there were lots of changes in the code since alpha2 so I'd like to see this in a separate issue now please.