Comments (4)
version 2023.2.2 acts the same when service is restarting, but when server is stopped, service receives signal
$ docker run --rm reproduce:latest
2023-12-18T16:58:25+0000 DEBUG rpc plugin was started {"address": "tcp://0.0.0.0:6001", "list of the plugins with RPC methods:": ["service", "resetter", "app", "informer", "lock"]}
[INFO] RoadRunner server started; version: 2023.2.2, buildtime: 2023-08-10T16:38:29+0000
2023-12-18T16:58:25+0000 INFO service service was started {"name": "dummy", "command": "php service.php"}
2023-12-18T16:58:25+0000 INFO service Sleeping...
2023-12-18T16:58:26+0000 INFO service Sleeping...
2023-12-18T16:58:27+0000 INFO service Sleeping...
2023-12-18T16:58:28+0000 INFO service Sleeping...
2023-12-18T16:58:29+0000 INFO service Sleeping...
2023-12-18T16:58:30+0000 INFO service Sleeping...
2023-12-18T16:58:31+0000 INFO service Sleeping...
2023-12-18T16:58:32+0000 INFO service Sleeping...
2023-12-18T16:58:33+0000 INFO service Sleeping...
2023-12-18T16:58:34+0000 INFO service Sleeping...
2023-12-18T16:58:35+0000 ERROR service wait {"error": "signal: killed"}
2023-12-18T16:58:40+0000 INFO service Sleeping...
^Cstop signal received, grace timeout is: 30 seconds
2023-12-18T16:58:40+0000 INFO service service was stopped {"name": "dummy", "command": "php service.php"}
2023-12-18T16:58:40+0000 DEBUG lock received stop signal, acquiring lock/release mutexes
2023-12-18T16:58:40+0000 DEBUG lock acquired muCh and releaseMuCh mutexes {"resource": "stop-internal", "id": "stop-internal"}
2023-12-18T16:58:40+0000 DEBUG lock acquired stop mutex
2023-12-18T16:58:40+0000 DEBUG lock releaseMuCh lock returned {"resource": "internal-stop", "id": "internal-stop"}
2023-12-18T16:58:40+0000 INFO service Got 2 ...
2023-12-18T16:58:40+0000 DEBUG lock signal sent to all resources
from roadrunner.
Hey @chazzbg ๐
Thanks for the report ๐
I'll double-check this case, but looks strange, since I'm sending SIGINT
to the underlying process.
It might be context cancellation sends a different signal. Could you please check without the exec_timeout
?
from roadrunner.
I also find this quite odd.
Without exec_timeout, service process seems to get the signal
docker run --rm reproduce:latest
2023-12-18T20:30:22+0000 DEBUG rpc plugin was started {"address": "tcp://0.0.0.0:6001", "list of the plugins with RPC methods:": ["lock", "service", "informer", "resetter", "app"]}
[INFO] RoadRunner server started; version: 2023.3.8, buildtime: 2023-12-14T16:05:26+0000
[INFO] sdnotify: not notified
2023-12-18T20:30:22+0000 INFO service service was started {"name": "dummy", "command": "php service.php"}
2023-12-18T20:30:22+0000 INFO service Sleeping...
2023-12-18T20:30:23+0000 INFO service Sleeping...
2023-12-18T20:30:24+0000 INFO service Sleeping...
2023-12-18T20:30:25+0000 INFO service Sleeping...
2023-12-18T20:30:26+0000 INFO service Sleeping...
2023-12-18T20:30:27+0000 INFO service Sleeping...
2023-12-18T20:30:28+0000 INFO service Sleeping...
2023-12-18T20:30:29+0000 INFO service Sleeping...
2023-12-18T20:30:30+0000 INFO service Sleeping...
2023-12-18T20:30:31+0000 INFO service Sleeping...
2023-12-18T20:30:32+0000 INFO service Sleeping...
^Cstop signal received, grace timeout is: 30 seconds
2023-12-18T20:30:32+0000 DEBUG lock received stop signal, acquiring lock/release mutexes
2023-12-18T20:30:32+0000 DEBUG lock acquired stop mutex
2023-12-18T20:30:32+0000 DEBUG lock signal sent to all resources
2023-12-18T20:30:32+0000 INFO service Got 2 ...
2023-12-18T20:30:32+0000 INFO service service was stopped {"name": "dummy", "command": "php service.php"}
from roadrunner.
Ok, thanks. Thus, I know where the bug is ๐
from roadrunner.
Related Issues (20)
- [๐ BUG]: sync_worker_exec_worker_with_timeout: Network: tsync_worker_exec_payload: EOF HOT 13
- [๐ BUG]: Unable to upload file when raw_body enabled HOT 5
- [๐ BUG]: Static middleware doesn't server files without extension HOT 7
- [๐ BUG]: Basic example does not work HOT 7
- Concurrent request problem in Laravel Octane HOT 7
- [๐ BUG]: Streaming responses can experience a lock-up when the client disconnects early HOT 5
- [๐ก FEATURE REQUEST]: HTTP log middleware separate configuration HOT 2
- [๐ BUG]: Region is missing from SQS endpoint URL when RR is running inside EC2 HOT 9
- [๐งน CHORE]: Rewrite multipart text values parsing algorithm
- [๐ BUG]: HTTP Queue gets too large HOT 16
- [๐ BUG]: Response status 200 instead of 500 in debug mode if php code fails HOT 4
- [๐ก FEATURE REQUEST]: Use Opentelemerty specific environment variables HOT 5
- [๐ BUG]: rabbitmq_redial error causes redial/retry logic to prematurely exit HOT 14
- [๐ก FEATURE REQUEST]: Log elapsed time always in microseconds HOT 9
- [๐ BUG]: RR cannot parse larger multipart form data HOT 6
- [๐ BUG]: unknown flag for long config options HOT 2
- [๐ BUG]: File uploads exceeding "upload_max_filesize" do not have the proper error code HOT 8
- [๐ก FEATURE REQUEST]: Temporal plugin healthcheck
- [๐ก FEATURE REQUEST]: `musl` arm64 binary `[blocked by GitHub ARM action runners]` HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roadrunner.