Following the merge of db and web server node types the variables hosting_default_db_server and hosting_own_db_server should be updated to match hosting_default_web_server:
Vertice ‣ we merged the 2 node types
Vertice ‣ but forgot to update the record of the db server
Vertice ‣ we don't update the variable
Vertice ‣ and we should
Vertice ‣ and there's no interface to change it
Occurs: after upgrade of provision/hostmaster to aegir-0.4alpha6
Symptoms:
provision-verify breaks, unable to verify a new platform (verifying existing platforms, or new sites on existing platforms does work).
debug:
/var/aegir/drush/drush.php --root='/path/to/hostmaster' --uri='aegir.example.com' hosting-task $nid --debug
where $nid is the node of ID of the provision-verify task.
debug output shows incorrect db credentials:
Could not connect to the master database server (Access denied for user [error]
'aegir'@'localhost' (using password: NO)). [0.52 sec, 17.62 MB]
An error occurred at function : drush_provision_mysql_provision_verify_validate [0.52[error]
Workaround:
Correct the variables hosting_default_db_server and hosting_own_db_server to point to the correct node id for your server in your hostmaster database by hand.
Comments
Comment #1
tnightingale commentedI have also struck this with verifying any new platforms after updating to Alpha6.
Adrinux's suggestion fixed for me. Some more detail on the method:
The nid of my server is 3 so the following commands from my /var/aegir/hostmaster-0.4-alpha6/sites/sitename directory fixed the problem:
Comment #2
Rok Žlender commentedSettings the vars fixed the problem for me too.
Comment #3
Anonymous (not verified) commentedFixed in HEAD
Comment #4
DanielJohnston commentedGetting a somewhat wacky response using the above workaround:
(note - 2 is the node id of the server on my setup)
Comment #5
Anonymous (not verified) commentedSo raise your php cli memory_limit ...
Comment #6
DanielJohnston commentedSolved by upping the php5 CLI memory limit, was a bit surprised that it was trying to call an install function tho'.
Comment #10
yareckon commentedthank you thank you thank you! with alpha6 still the last version out, this is very relevant.
Comment #11
KrisBulman commentedThis worked for me, thanks.
I agree with above statement.. issue is still relevant.