Skip to content

Worker_reactor_try_to_exit() (ERRNO 9101): worker exit timeout, forced termination #64

@foremtehan

Description

@foremtehan

PHP Version

8.4

Swoole Extension Version

6.0.2

Database Driver & Version

No response

Description

I do restart hypervel server by supervisord, but when i try to stop the server swoole complaints about timeout (but eventually server restarted)

Steps To Reproduce

supervisor:

[supervisord]
nodaemon=true
logfile_maxbytes=0
pidfile=/run/supervisord.pid

[unix_http_server]
file=/tmp/supervisor.sock
chmod=0700

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[program:hypervel]
command=php artisan serve
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autorestart=true
autostart=true
startretries=0

[program:scheduler]
command=php artisan schedule:run
autostart=true
autorestart=true
redirect_stderr=true

This is full log after running: supervisorctl restart hypervel scheduler

2025-04-29 06:46:37,569 INFO reaped unknown pid 353 (exit status 0)
2025-04-29 06:46:37,570 INFO reaped unknown pid 356 (exit status 0)
2025-04-29 06:46:37,577 INFO waiting for hypervel to stop
2025-04-29 06:46:39,577 INFO waiting for hypervel to stop
[2025-04-29 06:46:40 *334.0]    WARNING Worker_reactor_try_to_exit() (ERRNO 9101): worker exit timeout, forced termination

===================================================================
 [FATAL ERROR]: all coroutines (count: 1) are asleep - deadlock!
===================================================================

 [Coroutine-125]
--------------------------------------------------------------------
#0 @swoole/library/std/exec.php(16): Swoole\Coroutine\System::exec()
#1 [internal function]: swoole_exec()
#2 /var/www/html/routes/api.php(16): exec()
#3 /var/www/html/vendor/hypervel/http/src/CoreMiddleware.php(134): Hypervel\Router\Router->{closure:/var/www/html/routes/api.php:11}()
#4 /var/www/html/vendor/hypervel/http/src/CoreMiddleware.php(172): Hypervel\Http\CoreMiddleware->handleFound()
#5 /var/www/html/vendor/hypervel/dispatcher/src/Psr15AdapterMiddleware.php(22): Hypervel\Http\CoreMiddleware->process()
#6 /var/www/html/vendor/hypervel/dispatcher/src/Pipeline.php(55): Hypervel\Dispatcher\Psr15AdapterMiddleware->handle()
#7 /var/www/html/vendor/hyperf/pipeline/src/Pipeline.php(81): Hypervel\Dispatcher\Pipeline->{closure:{closure:Hypervel\Dispatcher\Pipeline::carry():23}:24}()
#8 /var/www/html/vendor/hyperf/pipeline/src/Pipeline.php(89): Hyperf\Pipeline\Pipeline->then()
#9 /var/www/html/vendor/hypervel/dispatcher/class_map/HttpRequestHandler.php(31): Hyperf\Pipeline\Pipeline->thenReturn()
#10 /var/www/html/vendor/hyperf/dispatcher/src/HttpDispatcher.php(35): Hyperf\Dispatcher\HttpRequestHandler->handle()
#11 /var/www/html/vendor/hypervel/foundation/src/Http/Kernel.php(72): Hyperf\Dispatcher\HttpDispatcher->dispatch()
#12 [internal function]: Hypervel\Foundation\Http\Kernel->onRequest()

2025-04-29 06:46:40,630 INFO stopped: hypervel (exit status 0)
2025-04-29 06:46:40,632 INFO waiting for scheduler to stop
2025-04-29 06:46:40,649 WARN stopped: scheduler (terminated by SIGTERM)
2025-04-29 06:46:40,654 INFO spawned: 'hypervel' with pid 358
2025-04-29 06:46:41,657 INFO success: hypervel entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2025-04-29 06:46:41,664 INFO spawned: 'scheduler' with pid 360
[INFO] Worker#0 started.
[INFO] Worker#1 started.
[INFO] HTTP Server listening at 0.0.0.0:9501
2025-04-29 06:46:43,471 INFO success: scheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2025-04-29 06:46:44,475 INFO reaped unknown pid 357 (exit status 120)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions