S
S
Sergey Bard2018-08-02 10:54:37
Yii
Sergey Bard, 2018-08-02 10:54:37

Why doesn't cron work from console?

Hello everyone, complete bullshit with cron, in general, I created controllers in the console, etc. everything is as it should, everything worked and started from the cron, but then for some reason it stopped, the commands themselves work in the cron, i.e. there is a trigger in /var/log/syslog, but there is no execution, there is nothing else at all, no error logs, absolutely nothing, I don’t even understand what the hell is with this console application, if under any user in the console execute a command that is equal to the command in krone then everything works, but as soon as I want to run through the kroner as if a shot into the void, who has any ideas what it could be?
from modules. installed
1DK8TDS.jpg
I’ll also add that I tried to run different crons, both ordinary and the simplest ones with writing text to a file, everything else works only crons that are not with yii, I also ran crons differently
/bin/bash/path/scripts/run.sh - with command
#!/bin/bash
/path/yii daemon/index
so run
/usr/bin/php -q /pathyii test/index
and even
cd /let/yii; /usr/bin/php -q /let/yii test/index

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kim, 2018-08-02
@kimono

Are there tasks in the queue?
Run queue handler: queue/listen / queue/run

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question