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.

CommentFileSizeAuthor
#2 hosting-daemon-start-error-1.patch328 bytestvl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tvl created an issue. See original summary.

tvl’s picture

helmo’s picture

Status: Active » Needs review

I'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.

tvl’s picture

The system is running the latest version of the 6.x branch:

$ cat /etc/*release*
CentOS release 6.8 (Final)

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.

helmo’s picture

Status: Needs review » Closed (won't fix)

Closing 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.

kienan’s picture

Status: Closed (won't fix) » Active

I ran into this with a manual install on CentOS today.

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.3.1611 (Core) 
Release:        7.3.1611
Codename:       Core
kienan’s picture

#2 worked to start it

helmo’s picture

Status: Active » Reviewed & tested by the community

  • helmo committed 0d817b4 on 7.x-3.x authored by tvl
    Issue #2744039 by tvl: hosting-queued start error
    
helmo’s picture

Status: Reviewed & tested by the community » Fixed

committed.

tvl’s picture

Cool! Thanks :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.