You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When stopping serving kratos it doesn't shutdown completely and just hangs around. I have to kill -9 the process to make it stop.
Reproducing the bug
Steps to reproduce the behavior:
Run ./kratos serve --config kratos.yaml with minimal settings
Press ctrl+c to stop the daemon
Server logs
./kratos serve --config kratos.yaml
INFO[0002] Config file loaded successfully. path=kratos.yaml
INFO[0002] Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa
INFO[0002] Starting the admin httpd on: 0.0.0.0:4434
INFO[0002] Starting the public httpd on: 0.0.0.0:4433
^CINFO[0009] Public httpd was shutdown gracefully
INFO[0009] Admin httpd was shutdown gracefully
^C^C^C
From some testing I have figured out that the context given to courier.Work doesn't work, because it is a simple Background worker, which is never canceled.
From what I can tell, the background context would need to be extended with WithCancel and extended with a signal handler.
The other way would be to adopt the graceful package.
I will see if I can adapt the code for the latter option, maybe I can get it working.
Courier would not stop with the provided Background handler.
This changes the methods of Courier so that the graceful package can be
used in the same way as the http endpoints can be used.
Closes#295
Describe the bug
When stopping serving kratos it doesn't shutdown completely and just hangs around. I have to kill -9 the process to make it stop.
Reproducing the bug
Steps to reproduce the behavior:
./kratos serve --config kratos.yaml
with minimal settingsServer logs
Server configuration
Expected behavior
I should be able to stop the daemon either with ctrl-c or using a normal kill.
Environment
The text was updated successfully, but these errors were encountered: