Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Using the hosting_queued daemon with the development version of Drush (from 2015-10-28) does not work, attempting to run `sudo service hosting-queued start` (or `sudo /etc/init.d/hosting-queued start`) gives me this error:
Starting Aegir queue daemon... ok
liam@web1:/opt/drush$ /usr/local/bin/drush: 2: /usr/local/bin/drush: cannot open ?php: No such file
/usr/local/bin/drush: 4: /usr/local/bin/drush: /bin: Permission denied
/usr/local/bin/drush: 5: /usr/local/bin/drush: backups: not found
/usr/local/bin/drush: 6: /usr/local/bin/drush: backups: not found
/usr/local/bin/drush: 7: /usr/local/bin/drush: backups: not found
/usr/local/bin/drush: 8: /usr/local/bin/drush: Syntax error: word unexpected (expecting ")")
I have narrowed the problem down to line 30 of hosting-queued:
su - $USER -- $DAEMON $DAEMON_ARGS &
I expanded the variables manually and ran this (as root):
su - "aegir" -- /usr/local/bin/drush @hostmaster hosting-queued
Which yields the same error message as above. However, sudo-ing as the aegir user, then running `/usr/local/bin/drush @hostmaster hosting-queued` works, so this seems to be related to the usage of `su` and that the `drush` executable is now a PHP file instead of a Bash/sh script.










Comments
Comment #2
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedDrush 8.0.0 has since been released, does it work with it for you? Are you on Wheezy, Jessie or other?
The stable version seems to work on my Jessie box, I don't know if we can support dev versions... In any case much has probably changed, please update.
Comment #3
pauleb CreditAttribution: pauleb commentedI had the same problem,
maybe there is a problem with the environment because my aegir user has a default shell in /etc/passwd (which is not recommended in the documentation).
I solved it by changing
su - $USER -- $DAEMON $DAEMON_ARGS &to
su $USER -c "$DAEMON $DAEMON_ARGS &"Comment #4
Liam McDermott CreditAttribution: Liam McDermott commentedJust had exactly the same error with hosting-queued and Drush 8.1.3. This is on Ubuntu 14.04.04, to answer your question gboudrias (even though it was asked a long time ago!) the original problem would also have been on Ubuntu 14.04.
At the time, I was upgrading Aegir from v3.1 to v3.7. The upgrade went smoothly (and drush was working fine) until I attempted to start hosting-queued.
Other information:
- The change in #3 works.
- Drush was installed using the instructions at: http://docs.drush.org/en/master/install/
- This has happened twice now, on two different servers. Interesting.
- My Aegir users do not have passwords.
Comment #5
Liam McDermott CreditAttribution: Liam McDermott commented