Привет.
Если запустить воркера, то всё работает:
php artisan queue:work
Однако, что-то внезапно сломалось и supervisor как будто не работает. Конфигурация:
[program:docflow-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/dev2.docflow/artisan queue:work database --tries=3
autostart=true
autorestart=true
user=root
redirect_stderr=true
stdout_logfile=/var/www/html/dev2.docflow/storage/docflow-supervisor.log
делаю рестарт:
systemctl restart supervisord
В логах супервизора ошибки:
PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in /var/www/html/dev2.docflow/vendor/symfony/translation/TranslatorInterface.php on line 24
PHP Fatal error: Uncaught TypeError: Argument 2 passed to Monolog\Utils::jsonEncode() must be of the type integer or null, unknown given, called in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php on line 237 and defined in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php:74
Stack trace:
#0 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php(237): Monolog\Utils::jsonEncode(Array, true)
#1 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(155): Monolog\Formatter\NormalizerFormatter->toJson(Array, true)
#2 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(126): Monolog\Formatter\LineFormatter->convertToString(Array)
#3 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(102): Monolog\Formatter\LineFormatter->stringify(Array)
#4 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Handler/Abs in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php on line 74
PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in /var/www/html/dev2.docflow/vendor/symfony/translation/TranslatorInterface.php on line 24
PHP Fatal error: Uncaught TypeError: Argument 2 passed to Monolog\Utils::jsonEncode() must be of the type integer or null, unknown given, called in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php on line 237 and defined in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php:74
Stack trace:
#0 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php(237): Monolog\Utils::jsonEncode(Array, true)
#1 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(155): Monolog\Formatter\NormalizerFormatter->toJson(Array, true)
#2 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(126): Monolog\Formatter\LineFormatter->convertToString(Array)
#3 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(102): Monolog\Formatter\LineFormatter->stringify(Array)
#4 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Handler/Abs in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php on line 74
PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in /var/www/html/dev2.docflow/vendor/symfony/translation/TranslatorInterface.php on line 24
PHP Fatal error: Uncaught TypeError: Argument 2 passed to Monolog\Utils::jsonEncode() must be of the type integer or null, unknown given, called in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php on line 237 and defined in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php:74
Stack trace:
#0 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php(237): Monolog\Utils::jsonEncode(Array, true)
#1 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(155): Monolog\Formatter\NormalizerFormatter->toJson(Array, true)
#2 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(126): Monolog\Formatter\LineFormatter->convertToString(Array)
#3 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(102): Monolog\Formatter\LineFormatter->stringify(Array)
#4 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Handler/Abs in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php on line 74
PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in /var/www/html/dev2.docflow/vendor/symfony/translation/TranslatorInterface.php on line 24
PHP Fatal error: Uncaught TypeError: Argument 2 passed to Monolog\Utils::jsonEncode() must be of the type integer or null, unknown given, called in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php on line 237 and defined in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php:74
Stack trace:
#0 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php(237): Monolog\Utils::jsonEncode(Array, true)
#1 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(155): Monolog\Formatter\NormalizerFormatter->toJson(Array, true)
#2 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(126): Monolog\Formatter\LineFormatter->convertToString(Array)
#3 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(102): Monolog\Formatter\LineFormatter->stringify(Array)
#4 /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Handler/Abs in /var/www/html/dev2.docflow/vendor/monolog/monolog/src/Monolog/Utils.php on line 74
В таблице jobs задачи продолжают висеть...
Может кто знает, куда копать? Уже все мозги сломал.