[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: failed to start (exit status -1) -- Program /usr/bin/php timed out

From: SZÉPE Viktor
Subject: Re: failed to start (exit status -1) -- Program /usr/bin/php timed out
Date: Thu, 04 Nov 2021 10:20:12 +0100
User-agent: Horde Application Framework 5

Hello Sébastien!

For die-hard people: start-stop-daemon.

start program = "/sbin/start-stop-daemon --quiet --start --background --nicelevel 10 --make-pidfile --pidfile /home/oitmiv/website/ --user oitmiv --exec /usr/bin/php7.4 -- /home/oitmiv/website/oitm2021/artisan queue:work --timeout=120 --memory=2048 --tries=1"
     as uid "oitmiv" and gid "oitmiv"

stop program = "/sbin/start-stop-daemon --quiet --stop --exec /usr/bin/php7.4 --remove-pidfile --pidfile /home/oitmiv/website/ --user oitmiv"
     as uid "oitmiv" and gid "oitmiv"

Idézem/Quoting Sébastien Desse <>:


I have a bit of trouble configuring a monitor and would appreciate your

It’s for a php job that runs forever and process a queue, I’ve setup monit
like this:

check process QueuesProcessing

   matching "/usr/bin/php /data/symfony/bin/console
PosBundle:ProcessIncoming --env=prod"

   start program = "/usr/bin/php /data/symfony/bin/console
PosBundle:ProcessIncoming --env=prod"

        as uid www-data and gid www-data

   if does not exist then start

It seems it fails to start the command but I’m not sure why:

 <mailto:root@BATCH01:/etc/monit/conf.d#> root@BATCH01:/etc/monit/conf.d#
monit validate

'SERVER.VISION_QueuesProcessing' process is not running

'SERVER.VISION_QueuesProcessing' start: /usr/bin/php

'SERVER.VISION_QueuesProcessing' failed to start (exit status -1) -- Program
/usr/bin/php timed out

I Googled this but couldn’t find something that speaks to me.

Would you know why I get a timeout calling php?

Thank you,

SZÉPE Viktor, webes alkalmazás üzemeltetés / Running your application
ügyelet 🌶️ hotline: +36-20-4242498  skype: szepe.viktor
Budapest, III. kerület

Attachment: smime.p7s
Description: S/MIME Signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]