<head></head><body>Thank you Jonas. I managed to derive this information myself before the weekend, so the xml files are being served with nginx, just need to set the MIME type and it should work as expected.<div><div><br></div><div>However, I believe there is a bug in the pywps code and I can submit an issue at Github if everyone agrees.</div><div><br></div><div>When I run in sync mode, my own application that performs the processing runs fine. As soon as I try in pywps' async mode, I get a cryptic error at the line in _handler that does:`subprocess.call(cli_string)`. I do this because I <span style="line-height: 1.4;">have my own framework for handling asynchronous processes which is executed as a child process. The error is as follows:</span></div><div><span style="line-height: 1.4;"><br></span></div><div>Traceback (most recent call last): </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> File "/usr/local/lib/python2.7/runpy.py", line 151, in _run_module_as_main
    mod_name, loader, code, fname = _get_module_details(mod_name)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>File "/usr/local/lib/python2.7/runpy.py", line 101, in _get_module_details
    loader = get_loader(mod_name)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>File "/usr/local/lib/python2.7/pkgutil.py", line 464, in get_loader
    return find_loader(fullname)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>File "/usr/local/lib/python2.7/pkgutil.py", line 475, in find_loader
    loader = importer.find_module(fullname)</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>File "/usr/local/lib/python2.7/pkgutil.py", line 184, in find_module
    path = [os.path.realpath(self.path)]</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>File "/usr/local/lib/python2.7/posixpath.py", line 376, in realpath
    return abspath(path)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>File "/usr/local/lib/python2.7/posixpath.py", line 364, in abspath
    cwd = os.getcwd()</div><div>OSError: [Errno 2] No such file or directory <span style="line-height: 1.4;"><br></span></div><div><br></div><div>I worked around the problem by adding my own execute method which simply calls cls.run_process(request, response) as in synchronous mode. I just removed all the async functionality in the method.</div><div><br></div><div>I don't know what the thoughts are on the strong coupling to multiprocessing from the devs. Is pywps meant to be used without having to rely on the built-in asynchronous process handling?</div><div><br></div><div>I also came accross this SO post, though:</div><div><br></div><div>http://stackoverflow.com/questions/29702157/python-multiprocessing-manager-list-error-errno-2-no-such-file-or-directory</div><div><br></div><div>Have you given any thought to the ideas the answer is addressing?</div><div><br></div><br><div class="nylas-n1-signature">Med vennlig hilsen / With kind regards,<br><br>Robin Skahjem-Eriksen<br><br>Software developer<br><br>Science [&] Technology AS<br><br>Reg. nr.: 996 229 009 MVA<br><br>[E]: <a href="mailto:skahjem-eriksen@stcorp.no" target="_blank">skahjem-eriksen@stcorp.no</a><br><br>[Address]:<br><br>Forskningsparken<br><br>Gaustadalléen 21<br><br>0349 Oslo<br><br>Norway<br><br>[W]: <a href="https://link.nylas.com/link/6v07k8n8hjy9q0ymu0dlgp2id/047ac57a056a4cac9f5850de210bbf7f/0?redirect=http%3A%2F%2Fwww.stcorp.no" target="_blank">http://www.stcorp.no</a><br><br>[P]:+47 45 911 694<br><br>[E]: <a href="mailto:info@stcorp.no" target="_blank">info@stcorp.no</a></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
  On Apr 25 2016, at 10:44 am, Jonas Eberle <jonas.eberle@gmx.de> wrote:
  <br>
  <div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000"><div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"><div>Thanks, now I understand your issue. I was a bit confused because you mentioned the getCapabilities URL related to the ExceptionReport. The URL of the statusLocation (like <span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">http://localhost/wps/3c7e38b6-06e0-11e6-8f17-0242ac190008.xml in your example) should not be handled by PyWPS at all. Could you define an other folder for the output files that is not related to /wps at all in your configuration file? Otherwise it would be useful to see your PyWPS config file and the config snippets from the webserver you are using.</span></div><div><span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"><br></span></div><div>Cheers,</div><div>Jonas</div><div><span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"><br></span></div><span id="zwchr">----- Am 21. Apr 2016 um 17:33 schrieb Robin Skahjem-Eriksen <skahjem-eriksen@stcorp.no>:<br></span><div><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">Thank you for suggesting a clarification of where we are.<div><br><div>You are completely correct, except for the last part:</div><br><div>> "If you go afterwards to the URL mentioned in the statusLocation attribute you should see the process running, failed or succeeded."<br></div><br><div>This is what I was hoping for, but the problem is that I am getting an inexplicable exception:</div><br><div><!-- PyWPS 4.0.0-alpha2 --><br><br><ows:ExceptionReport xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" version="1.0.0"><br>  <ows:Exception exceptionCode="MissingParameterValue" locator="service"><br>    <ows:ExceptionText>service<br>    </ows:ExceptionText><br>  </ows:Exception><br></ows:ExceptionReport><br></div><br><div>It looks like the request for the statusLocation URL is handled like a standard WPS request and not a simple static file request.</div><br><div></div></div></blockquote></div></div><br></div></div>
</blockquote></body>