Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The relevant bits appear to be:
Enabling hosting-queued daemon
The drush command '@hostmaster pm-enable hosting_queued' could not be[error]
found. Run `drush cache-clear drush` to clear the commandfile cache
if you have installed new extensions.
A Drupal installation directory could not be found [error]
dpkg: error processing aegir-hostmaster2 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of aegir2:
aegir2 depends on aegir-hostmaster2 (>= 2.0~rc2); however:
Package aegir-hostmaster2 is not configured yet.
dpkg: error processing aegir2 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Errors were encountered while processing:
aegir-hostmaster2
aegir2
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is on a relatively recent Ubuntu LTS:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
Here's the full install log: http://pastebin.com/4YYHDGGB
Comment | File | Size | Author |
---|---|---|---|
#11 | provision-check_for_secure_mysql-2048653-11.patch | 1.45 KB | ergonlogic |
Comments
Comment #1
ergonlogicIt looks like the mysql server may have been corrupted, since I couldn't manually assign aegir_root privileges (missing system user table.) So I re-installed mysql-server too. Now the install appears to get further along, but still fails.
Updated log: http://pastebin.com/mqWFp7Lc
Comment #2
anarcat CreditAttribution: anarcat commentedwe need the same trace, but with DPKG_DEBUG=developer enabled so we run drush with full debugging. alternatively, try to change /var/lib/dpkg/info/aegir-hostmaster2.postinst to add the --debug flag to the hostmaster-install command.
Finally, it may be that aegir is actually installed. Try drush @hostmaster status and friends, try drush @hostmaster pm-enable hosting_queued, try to flush the drush commandfile cache (drush cc drush) and so on.
Sorry i can't be of more help.
Comment #3
ergonlogicHere you go: http://paste.ubuntu.com/5905061/
Comment #4
anarcat CreditAttribution: anarcat commentedthanks!
so it seems that the passwords/credentials get lost at some point. furthermore, we fail to see the error before the Created and Dropped notices, which is weird. i suspect this would be clearer with the dev release of drush... try to untar the latest 5.x on top of /usr/share/php/drush...
Comment #5
ergonlogicMore data:
Running
drush hostmaster-install
manually resulted in :I suspect it's still a problem with the mysql server.
Comment #6
ergonlogicaha! so after re-installing mysql-server, I hadn't run 'mysql_secure_installation'. Manual installation worked, as does a package-based install.
Comment #7
ergonlogicActually, come to think of it, we're throwing an error in hostmaster-install that's not making its way up to the user, so that's a bug. Let's see if Drush 5.10 fixes it, since this looks like lost stderr packets or something.
Assuming Drush begins to report it again, is this something the .deb package can catch and suggest a solution for? After all, it was our infamous 'failed to fail' that was at the root of this.
Comment #8
ergonlogicThis affects Wheezy too
Comment #9
ergonlogicMaybe we can run the check for anonymous mysql users directly in the .deb scripts, and thus fail gracefully and early, rather than depend on getting feedback from the install much later in the process.
Setting to 'needs review' to validate the approach.
Comment #10
anarcat CreditAttribution: anarcat commentedYeah, it seems to me this could be done straight in the hostmaster-install script too, as a hook_validate() step...
Comment #11
ergonlogicPatch attached.
Comment #12
ergonlogicI tested this and it appears to work well. Fixed in ef408bbb.
BTW, I think a cleaner way to do this would be to move setting all the drush defaults into the pre_validate, and then do this check in the validate. But it works fine as is.
Comment #13
ergonlogicActually, I'm not sure what effect this'll have on the .deb install... Since that's the real problem here, I'm setting to 'needs more info' until we have .debs to test this with.
Comment #14
anarcat CreditAttribution: anarcat commentedlet's assume the .debs will be fixed properly - i believe the same problem will occur with a manual process where you skip the mysql_secure_install thing.
could we make sure we don't use an URL shortening service that we don't know the availability of? we shouldn't depend on that, or even outside documentation if possible - just mention the mysql_secure_installation thing straight there.
Comment #15
eft CreditAttribution: eft commentedI also got caught by this issue on a new install of Aegir 2.0-rc5 on a fresh Wheezy VM. Once I manually hardened MySQL with mysql_secure_installation and ran drush hostmaster-install, I got the front end installed. Thanks for the suggestions @ergonlogic.
So, for future reference, are you guys saying it's an issue with the Debian Aegir packages that should be resolved with next Aegir 2 release?
Comment #22
helmo CreditAttribution: helmo at Initfour websolutions commentedThe 6.x-2.x branch will go EOL along with Drupal this week. So I'm closing
this issue. If it remains a confirmed issue in 7.x-3.x, feel free to re-open,
or better yet, create a new issue referencing this one.