[Pywps-dev] Error in apache log file

Jachym Cepicky jachym.cepicky at gmail.com
Sun Jul 3 12:19:09 PDT 2016


Ciao Lorenzo,

https://github.com/jachym/PyWPS/blob/pygrass/pywps/app/Process.py#L295

looks different from your apache error log:

File "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0_
alpha2-py2.7.egg/pywps/app/Process.py", line 291, in clean
     shutil.rmtree(self.workdir)

Therefore I believe, you are  not using latest version of the file

J

pá 1. 7. 2016 v 12:18 odesílatel Lorenzo Bottaccioli <
lorenzo.bottaccioli at gmail.com> napsal:

> Hi Jachym,
>
> I'm using the code that you have suggested me
> https://github.com/jachym/pywps/tree/pygrass. Which is the newest one?
>
> 2016-07-01 11:24 GMT+02:00 Jachym Cepicky <jachym.cepicky at gmail.com>:
>
>> Hi,
>>
>> this line was fixed in
>> https://github.com/jachym/PyWPS/blob/pygrass/pywps/app/Process.py#L295
>>
>> your code is still using old version, I'm afraid
>>
>> J
>>
>>
>>
>> čt 30. 6. 2016 v 14:34 odesílatel Lorenzo Bottaccioli <
>> lorenzo.bottaccioli at gmail.com> napsal:
>>
>>> Hi Jachym,
>>>  This are all'the lines in the error.log file of apache2 that the
>>> process generates.
>>>
>>> [Thu Jun 30 14:31:27.401569 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065] mod_wsgi (pid=9430):
>>> Exception occurred processing WSGI script '/var/www/html/wps/pywps2.wsgi'.
>>> [Thu Jun 30 14:31:27.401620 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065] Traceback (most recent call
>>> last):
>>> [Thu Jun 30 14:31:27.401637 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]   File
>>> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.11.4-py2.7.egg/werkzeug/wsgi.py",
>>> line 707, in close
>>> [Thu Jun 30 14:31:27.401814 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]     callback()
>>> [Thu Jun 30 14:31:27.401823 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]   File
>>> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.11.4-py2.7.egg/werkzeug/wrappers.py",
>>> line 1065, in close
>>> [Thu Jun 30 14:31:27.401836 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]     func()
>>> [Thu Jun 30 14:31:27.401841 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]   File
>>> "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0_alpha2-py2.7.egg/pywps/app/Process.py",
>>> line 291, in clean
>>> [Thu Jun 30 14:31:27.401909 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]
>>> shutil.rmtree(self.workdir)
>>> [Thu Jun 30 14:31:27.401918 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]   File
>>> "/usr/lib/python2.7/shutil.py", line 239, in rmtree
>>> [Thu Jun 30 14:31:27.401997 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]     onerror(os.listdir, path,
>>> sys.exc_info())
>>> [Thu Jun 30 14:31:27.402003 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]   File
>>> "/usr/lib/python2.7/shutil.py", line 237, in rmtree
>>> [Thu Jun 30 14:31:27.402010 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065]     names = os.listdir(path)
>>> [Thu Jun 30 14:31:27.402023 2016] [:error] [pid 9430:tid
>>> 140582713661184] [remote 127.0.0.1:46065] OSError: [Errno 2] No such
>>> file or directory: '/tmp/pyws_process_dVPVXS'
>>>
>>> I think the problem is that in the folder /tmp/ the forlder
>>> pyws_process_dVPVXS is not created.
>>>
>>> Best,
>>>
>>> Lorenzo
>>>
>>> 2016-06-29 10:26 GMT+02:00 Jachym Cepicky <jachym.cepicky at gmail.com>:
>>>
>>>> OSError: [Errno 2] No such file or directory:
>>>> '/tmp/pyws_process_HMd1Mh' - no such file or directory.
>>>>
>>>> is that at the beginning or at the end of your process? Maybe view more
>>>> lines of the error log could help to identify the location of the error..
>>>>
>>>> thanks for your testing btw, you might know, PyWPS-4 is still very
>>>> early beta and your help shall lead to more stable product - I can imagine,
>>>> it's slightly frustrating though
>>>>
>>>> J
>>>>
>>>> út 28. 6. 2016 v 16:51 odesílatel Lorenzo Bottaccioli <
>>>> lorenzo.bottaccioli at gmail.com> napsal:
>>>>
>>>>> Hi list,
>>>>>
>>>>> With all my process even the one that give me as raw data the write
>>>>> out put I get this error in the apache log file:
>>>>>
>>>>> *[Tue Jun 28 16:49:40.961863 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>] mod_wsgi
>>>>> (pid=8261): Exception occurred processing WSGI script
>>>>> '/var/www/html/wps/pywps2.wsgi'.*
>>>>> *[Tue Jun 28 16:49:40.961916 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]
>>>>> Traceback (most recent call last):*
>>>>> *[Tue Jun 28 16:49:40.961935 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]   File
>>>>> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.11.4-py2.7.egg/werkzeug/wsgi.py",
>>>>> line 707, in close*
>>>>> *[Tue Jun 28 16:49:40.962184 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]
>>>>> callback()*
>>>>> *[Tue Jun 28 16:49:40.962195 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]   File
>>>>> "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.11.4-py2.7.egg/werkzeug/wrappers.py",
>>>>> line 1065, in close*
>>>>> *[Tue Jun 28 16:49:40.962213 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]
>>>>> func()*
>>>>> *[Tue Jun 28 16:49:40.962220 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]   File
>>>>> "/usr/local/lib/python2.7/dist-packages/pywps-4.0.0_alpha2-py2.7.egg/pywps/app/Process.py",
>>>>> line 291, in clean*
>>>>> *[Tue Jun 28 16:49:40.962327 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]
>>>>> shutil.rmtree(self.workdir)*
>>>>> *[Tue Jun 28 16:49:40.962339 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]   File
>>>>> "/usr/lib/python2.7/shutil.py", line 239, in rmtree*
>>>>> *[Tue Jun 28 16:49:40.962466 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]
>>>>> onerror(os.listdir, path, sys.exc_info())*
>>>>> *[Tue Jun 28 16:49:40.962475 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]   File
>>>>> "/usr/lib/python2.7/shutil.py", line 237, in rmtree*
>>>>> *[Tue Jun 28 16:49:40.962486 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>]
>>>>> names = os.listdir(path)*
>>>>> *[Tue Jun 28 16:49:40.962502 2016] [:error] [pid 8261:tid
>>>>> 140685160273664] [remote 127.0.0.1:32976 <http://127.0.0.1:32976>] OSError:
>>>>> [Errno 2] No such file or directory: '/tmp/pyws_process_HMd1Mh'*
>>>>>
>>>>> How can I fix this?
>>>>> _______________________________________________
>>>>> pywps-dev mailing list
>>>>> pywps-dev at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/pywps-dev
>>>>
>>>>
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20160703/37ba0c7e/attachment.html>


More information about the pywps-dev mailing list