Forums

BlockingIOError: [Errno 11] Resource temporarily unavailable

sir, my site was working properly yesterday ,but since last night it is showing above error in my flask_app. Please help. Its urgent.

ERROR: 2016-09-26 05:35:01,463 :Exception on /uploader [POST] Traceback (most recent call last): File "/usr/local/lib/python3.3/dist-packages/flask/app.py", line 1988, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.3/dist-packages/flask/app.py", line 1641, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.3/dist-packages/flask/app.py", line 1544, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.3/dist-packages/flask/_compat.py", line 33, in reraise raise value File "/usr/local/lib/python3.3/dist-packages/flask/app.py", line 1639, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.3/dist-packages/flask/app.py", line 1625, in dispatch_request return self.view_functionsrule.endpoint File "/home/docx2latex/mysite/flask_app.py", line 48, in uploadF theproc = subprocess.call(command) File "/usr/lib/python3.3/subprocess.py", line 523, in call with Popen(popenargs, *kwargs) as p: File "/usr/lib/python3.3/subprocess.py", line 819, in init restore_signals, start_new_session) File "/usr/lib/python3.3/subprocess.py", line 1386, in _execute_child restore_signals, start_new_session, preexec_fn) BlockingIOError: [Errno 11] Resource temporarily unavailable

When I look at your webapp, it seems like it has spun off a whole bunch of subprocesses that never finished. For example python3 docx2latex.py ./uploads/evolution.docx_DIR evolution.docx.

I have manually cleaned them up for you. However, you will have to make sure that you clean up subprocesses yourself if you don't want to run into this problem in the future.

Thank You @conrad I will not do that mistake again.