-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanic server killed #1518
Comments
RIP :-/ |
Can you share more code so that we can reproduce the error? |
Hi @omarryhan ; Full console error : [2019-03-16 21:15:06 -0500] [1099] [DEBUG] CORS: Request to '/' matches CORS resource '/'. Using options: {'origins': ['.'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.'], 'expose_headers': None, 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': False, 'vary_header': True, 'resources': '/', 'intercept_exceptions': True, 'always_send': True} my server code:
|
@SamuelBonilla Based on what I can see in the logs it might be related to #1500. If you are in a linux box, can you check your kernel logs are see if any of the process is getting killed due to some reason? |
@harshanarayana I'm using a docker container
|
@SamuelBonilla How are your resource limits set for the containers? Are you using straight docker, swarm, k8s, rancher, or something else? I'm wondering if you're hitting a resource constraint. |
@sjsadowski I'm using straight docker, my docker container have'n resource limits...
Memory use
Total memory in docker container
|
This definitely looks related to #1500, as @harshanarayana already stated. @SamuelBonilla , what's your Sanic version? In case you can update to 19.3, try it and see how it goes. If not, 18.12.1 LTS is just around the corner and will have a backport of a memory leak fix that probably is the root cause of your problems 😉 |
Psst @vltr 19.3 had a pypi issue, it's not quite there yet. |
@sjsadowski I just saw that, sorry 😬 @SamuelBonilla , just hold on while we figure this out 😉 |
@SamuelBonilla Can you try again with 19.03.1 and see if the issue remains? |
Closing due to lack of further response |
Describe the bug
I'm getting an error with runtime sanic server, my server often falls down
Code snippet
Executing <TimerHandle functools.partial(<function update_current_time at 0x7f8a629aa268>, <uvloop.Loop running=True closed=False debug=True>) created at /usr/local/lib/python3.7/site-packages/sanic/server.py:547> took 0.105 seconds
Executing <TimerHandle functools.partial(<function update_current_time at 0x7f8a629aa268>, <uvloop.Loop running=True closed=False debug=True>) created at /usr/local/lib/python3.7/site-packages/sanic/server.py:547> took 1.148 seconds
Killed
Environment:
The text was updated successfully, but these errors were encountered: