Skip to content
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

Pywps stuck in a deleted temporary directory? #228

Closed
2 of 8 tasks
bstdenis opened this issue Jan 31, 2017 · 0 comments
Closed
2 of 8 tasks

Pywps stuck in a deleted temporary directory? #228

bstdenis opened this issue Jan 31, 2017 · 0 comments
Milestone

Comments

@bstdenis
Copy link

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

  • 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

bstdenis pushed a commit to bstdenis/pywps that referenced this issue Feb 2, 2017
SvenDowideit pushed a commit to SvenDowideit/pywps that referenced this issue Jan 15, 2018
Signed-off-by: Sven Dowideit <sven.dowideit@csiro.au>
@ldesousa ldesousa added this to the 4.2.0 milestone Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants