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
It appears that pywps sometimes moves to a temporary directory and later tries to os.getcwd() from that same (now) deleted directory. This is sporadic (i.e. the process works once or twice, then it fails, then it starts working again).
I believe this happens with:
process.set_workdir(tempdir)
in Service.py
[Tue Jan 31 20:41:47.899010 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] mod_wsgi (pid=33): Exception occurred processing WSGI script '/var/www/html/wps/pywps.wsgi'.
[Tue Jan 31 20:41:47.899068 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] Traceback (most recent call last):
[Tue Jan 31 20:41:47.899123 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.11.15-py2.7.egg/werkzeug/wrappers.py", line 291, in application
[Tue Jan 31 20:41:47.899174 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] return f(*args[:-2] + (request,))(*args[-2:])
[Tue Jan 31 20:41:47.899210 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0-py2.7.egg/pywps/app/Service.py", line 583, in call
[Tue Jan 31 20:41:47.899252 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] request_uuid
[Tue Jan 31 20:41:47.899286 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0-py2.7.egg/pywps/app/Service.py", line 303, in execute
[Tue Jan 31 20:41:47.899339 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] olddir = os.path.abspath(os.curdir)
[Tue Jan 31 20:41:47.899375 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/lib/python2.7/posixpath.py", line 364, in abspath
[Tue Jan 31 20:41:47.899415 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] cwd = os.getcwd()
[Tue Jan 31 20:41:47.899456 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] OSError: [Errno 2] No such file or directory
Environment
operating system: Ubuntu 16.04
Python version: 2.7.12
PyWPS version: 4.0.0 (2017-01-31)
source/distribution
git clone
Debian
PyPI
zip/tar.gz
other (please specify):
web server
Apache/mod_wsgi
CGI
other (please specify):
Steps to Reproduce
Additional Information
The text was updated successfully, but these errors were encountered:
bstdenis
pushed a commit
to bstdenis/pywps
that referenced
this issue
Feb 2, 2017
Description
It appears that pywps sometimes moves to a temporary directory and later tries to os.getcwd() from that same (now) deleted directory. This is sporadic (i.e. the process works once or twice, then it fails, then it starts working again).
I believe this happens with:
process.set_workdir(tempdir)
in Service.py
[Tue Jan 31 20:41:47.899010 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] mod_wsgi (pid=33): Exception occurred processing WSGI script '/var/www/html/wps/pywps.wsgi'.
[Tue Jan 31 20:41:47.899068 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] Traceback (most recent call last):
[Tue Jan 31 20:41:47.899123 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.11.15-py2.7.egg/werkzeug/wrappers.py", line 291, in application
[Tue Jan 31 20:41:47.899174 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] return f(*args[:-2] + (request,))(*args[-2:])
[Tue Jan 31 20:41:47.899210 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0-py2.7.egg/pywps/app/Service.py", line 583, in call
[Tue Jan 31 20:41:47.899252 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] request_uuid
[Tue Jan 31 20:41:47.899286 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0-py2.7.egg/pywps/app/Service.py", line 303, in execute
[Tue Jan 31 20:41:47.899339 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] olddir = os.path.abspath(os.curdir)
[Tue Jan 31 20:41:47.899375 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] File "/usr/lib/python2.7/posixpath.py", line 364, in abspath
[Tue Jan 31 20:41:47.899415 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] cwd = os.getcwd()
[Tue Jan 31 20:41:47.899456 2017] [wsgi:error] [pid 33:tid 139992584648448] [remote x.x.x.x:32920] OSError: [Errno 2] No such file or directory
Environment
Steps to Reproduce
Additional Information
The text was updated successfully, but these errors were encountered: