-
Notifications
You must be signed in to change notification settings - Fork 691
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
IOError: [Errno 11] Resource temporarily unavailable #1266
Comments
Any ideas? |
Error happened event if I print 128kB data: def application(environ, start_response): pkill -9 uwsgi; pgrep uwsgi; rm -f /tmp/uwsgi.log; uwsgi --ini=uwsgi.ini curl http://localhost:9090 && tail /tmp/uwsgi.log x |
Probable reason is that uWSGI set stdout stream as non blocking if we set 'logger' option. Errno 11 == EAGAIN and https://linux.die.net/man/2/send: |
If the option
|
I've finally found a workaround. Set option |
uWSGI is failing when logging big string to stream logger (got EAGAIN from logger socket)
$ uwsgi --version
2.0.13.1
$ uname -a
Linux 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
uwsgi.ini:
app.py:
$ pkill -9 uwsgi; pgrep uwsgi; rm -f /tmp/uwsgi.log; uwsgi --ini=uwsgi.ini
[uWSGI] getting INI configuration from uwsgi.ini
$ curl http://localhost:9090; tail /tmp/uwsgi.log
x
x
x
x
x
Traceback (most recent call last):
File "app.py", line 7, in application
print big_log
IOError: [Errno 11] Resource temporarily unavailable
[pid: 23479|app: 0|req: 1/2] 127.0.0.1 () {24 vars in 249 bytes} [Wed May 25 11:25:27 2016] GET / => generated 0 bytes in 0 msecs (HTTP/1.1 200) 1 headers in 45 bytes (0 switches on core 0)
The text was updated successfully, but these errors were encountered: