Thank you to the Flarum development team for creating such an outstanding piece of work. 🙂
The following is the runtime log
[2024-07-01 11:28:28] flarum.ERROR: Illuminate\Queue\MaxAttemptsExceededException: Flarum\ExtensionManager\Job\ComposerCommandJob has been attempted too many times or run too long. The job may have previously timed out. in /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php:750
Stack trace:
#0 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(504): Illuminate\Queue\Worker->maxAttemptsExceededException(Object(Illuminate\Queue\Jobs\RedisJob))
#1 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(417): Illuminate\Queue\Worker->markJobAsFailedIfAlreadyExceedsMaxAttempts('redis', Object(Illuminate\Queue\Jobs\RedisJob), 3)
#2 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(378): Illuminate\Queue\Worker->process('redis', Object(Illuminate\Queue\Jobs\RedisJob), Object(Illuminate\Queue\WorkerOptions))
#3 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(172): Illuminate\Queue\Worker->runJob(Object(Illuminate\Queue\Jobs\RedisJob), 'redis', Object(Illuminate\Queue\WorkerOptions))
#4 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Console/WorkCommand.php(116): Illuminate\Queue\Worker->daemon('redis', 'default', Object(Illuminate\Queue\WorkerOptions))
#5 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Console/WorkCommand.php(100): Illuminate\Queue\Console\WorkCommand->runWorker('redis', 'default')
#6 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/laravel/horizon/src/Console/WorkCommand.php(51): Illuminate\Queue\Console\WorkCommand->handle()
#7 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/BoundMethod.php(36): Laravel\Horizon\Console\WorkCommand->handle()
#8 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#9 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#10 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Container\Container), Array, Object(Closure))
#11 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/Container.php(653): Illuminate\Container\BoundMethod::call(Object(Illuminate\Container\Container), Array, Array, NULL)
#12 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call(Array)
#13 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Command/Command.php(298): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#14 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/console/Command.php(120): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#15 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Application.php(1058): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Blomstra\Horizon\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#19 /www/sites/discuss.cloudnest.cc/index/flarum/flarum(24): Flarum\Console\Server->listen()
#20 {main}
[2024-07-01 11:28:28] flarum.ERROR: Illuminate\Queue\MaxAttemptsExceededException: Flarum\ExtensionManager\Job\ComposerCommandJob has been attempted too many times or run too long. The job may have previously timed out. in /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php:750
Stack trace:
#0 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(504): Illuminate\Queue\Worker->maxAttemptsExceededException(Object(Illuminate\Queue\Jobs\RedisJob))
#1 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(417): Illuminate\Queue\Worker->markJobAsFailedIfAlreadyExceedsMaxAttempts('redis', Object(Illuminate\Queue\Jobs\RedisJob), 3)
#2 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(378): Illuminate\Queue\Worker->process('redis', Object(Illuminate\Queue\Jobs\RedisJob), Object(Illuminate\Queue\WorkerOptions))
#3 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Worker.php(172): Illuminate\Queue\Worker->runJob(Object(Illuminate\Queue\Jobs\RedisJob), 'redis', Object(Illuminate\Queue\WorkerOptions))
#4 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Console/WorkCommand.php(116): Illuminate\Queue\Worker->daemon('redis', 'default', Object(Illuminate\Queue\WorkerOptions))
#5 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/queue/Console/WorkCommand.php(100): Illuminate\Queue\Console\WorkCommand->runWorker('redis', 'default')
#6 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/laravel/horizon/src/Console/WorkCommand.php(51): Illuminate\Queue\Console\WorkCommand->handle()
#7 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/BoundMethod.php(36): Laravel\Horizon\Console\WorkCommand->handle()
#8 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#9 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#10 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Container\Container), Array, Object(Closure))
#11 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/container/Container.php(653): Illuminate\Container\BoundMethod::call(Object(Illuminate\Container\Container), Array, Array, NULL)
#12 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call(Array)
#13 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Command/Command.php(298): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#14 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/illuminate/console/Command.php(120): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#15 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Application.php(1058): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Blomstra\Horizon\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /www/sites/discuss.cloudnest.cc/index/flarum/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#19 /www/sites/discuss.cloudnest.cc/index/flarum/flarum(24): Flarum\Console\Server->listen()
#20 {main}
When I use php flarum queue:work
to install extensions normally with the extension manager, but when I use Horizon as the queue driver, an error is always displayed.
Flarum core: 1.8.5
PHP version: 8.2.20
MySQL version: 8.2.0
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, hash, iconv, json, mbstring, SPL, session, PDO, pdo_sqlite, bz2, posix, random, readline, Reflection, standard, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, Phar, exif, gd, imap, mysqli, pcntl, pdo_mysql, redis, sodium, yaf
+--------------------------------+------------+--------+
| Flarum Extensions | | |
+--------------------------------+------------+--------+
| ID | Version | Commit |
+--------------------------------+------------+--------+
| flarum-flags | v1.8.0 | |
| flarum-suspend | v1.8.1 | |
| flarum-approval | v1.8.1 | |
| flarum-tags | v1.8.0 | |
| fof-user-bio | 1.4.0 | |
| fof-upload | 1.5.5 | |
| flarum-subscriptions | v1.8.0 | |
| flarum-sticky | v1.8.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-mentions | v1.8.3 | |
| flarum-markdown | v1.8.0 | |
| flarum-lock | v1.8.0 | |
| flarum-likes | v1.8.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-lang-chinese-simplified | dev-master | |
| flarum-extension-manager | v1.0.3 | |
| flarum-emoji | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
| blomstra-horizon | 0.4.3 | |
+--------------------------------+------------+--------+
Base URL: https://your_domain
Installation path: /www/sites/your_domain/index/flarum
Queue driver: redis
Session driver: redis (Code override. Configured to file)
Scheduler status: 激活
Mail driver: mail
Debug mode: off
Thank you for your help and response.