As aegir user I’m starting the hosting-queued:
$ sudo service hosting-queued start
/usr/bin/drush: line 2: ?php: No such file or directory
/usr/bin/drush: line 4: /bin: is a directory
/usr/bin/drush: line 5: aegir_backups_create.sh: command not found
/usr/bin/drush: line 6: aegir_backups_create.sh: command not found
/usr/bin/drush: line 7: aegir_backups_create.sh: command not found
/usr/bin/drush: line 8: syntax error near unexpected token `as'
/usr/bin/drush: line 8: ` * (as usually the case), will be found in your vendor/bin directory.
The problem occurs due to shell misconfiguration when the hosting-queued tries to execute the su - $USER -- $DAEMON $DAEMON_ARGS & from this file: /etc/rc.d/init.d/hosting-queued
The fix, in my case, is to alter the way we call the daemon to: su - $USER -c "$DAEMON $DAEMON_ARGS" &
Disclaimer: this issue appeared on a messed up, dev VM, with Centos 6, apache 2.2, drush 8.1.2, mysql 5.5.49, aegir 3 and I cannot reproduce it on the production environment running RedHat.
Comments
Comment #2
tvl commentedComment #3
helmo commentedI'm hesitant to add this...
1, it has worked for me in the apst
2, you say it now works
So could it be related to a fairly old Centos version?
On the other hand I don't mind adding it ... 1, it looks reasonable
2 I often use the Debian package which has a more Debian specific init script in privision/debian/aegir3- hostmaster.hosting-queued.init
and 3 the world is moving towards systemd service files.
Comment #4
tvl commentedThe system is running the latest version of the 6.x branch:
This happened on one of the systems I run and I don't know if the patch is the best practice for every Linux system.
So leaving the status to `Needs review` sound logical.
Comment #5
helmo commentedClosing for now ... as it's been a while and we have no confirmation that it's an issue on clean installations.
Please re-open if you see it again.
Comment #6
kienan commentedI ran into this with a manual install on CentOS today.
Comment #7
kienan commented#2 worked to start it
Comment #8
helmo commentedComment #10
helmo commentedcommitted.
Comment #11
tvl commentedCool! Thanks :)