pywps on lighthttpd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

pywps on lighthttpd

Martin Landa
Hi all,

is there anyone by chance who is running successfully pywps on
lighthttpd? I started with configuration bellow:

fastcgi.server = (
    "/pywps" => ((
        "bin-path" => "/path/to/pywps.wsgi",
        "socket" => "/tmp/pywps.socket",
        "max-procs" => 2,
        "bin-environment" => (
            "REAL_SCRIPT_NAME" => ""
        ),
        "check-local" => "disable"
    ))
)

but it's failing (500):

2017-05-10 17:21:30: (mod_fastcgi.c.1754) connect failed: Connection
refused on unix:/tmp/pywps.socket-1
2017-05-10 17:21:30: (mod_fastcgi.c.454) backend disabled for 1 seconds
2017-05-10 17:21:30: (mod_fastcgi.c.3021) backend died; we'll disable
it for 1 seconds and send the request to another backend instead:
reconnects: 0 load: 1
2017-05-10 17:21:30: (mod_fastcgi.c.2831) --- fastcgi spawning
    socket unix:/tmp/pywps.socket-1
    current: 1 / 2
2017-05-10 17:21:30: (mod_fastcgi.c.867) new proc, socket: 0 /tmp/pywps.socket-1
2017-05-10 17:21:30: (mod_fastcgi.c.3054) got proc: pid: 31250 socket:
unix:/tmp/pywps.socket-1 load: 1
2017-05-10 17:21:31: (mod_fastcgi.c.2562) unexpected end-of-file
(perhaps the fastcgi process died): pid: 31250 socket:
unix:/tmp/pywps.socket-1
2017-05-10 17:21:31: (mod_fastcgi.c.3299) child exited, pid: 31250 status: 0
2017-05-10 17:21:31: (mod_fastcgi.c.3313) --- fastcgi spawning
    socket unix:/tmp/pywps.socket-1
    current: 1 / 2
2017-05-10 17:21:31: (mod_fastcgi.c.867) new proc, socket: 0 /tmp/pywps.socket-1
2017-05-10 17:21:31: (mod_fastcgi.c.3346) response not received,
request sent: 792 on socket: unix:/tmp/pywps.socket-1 for
/pywps?service=wps&request=getcapabilities, closing connection
2017-05-10 17:21:31: (mod_fastcgi.c.1505) released proc: pid: 31254
socket: unix:/tmp/pywps.socket-1 load: 0
147.32.137.249 server:91 - [10/May/2017:17:21:31 +0200] "GET
/pywps?service=wps&request=getcapabilities HTTP/1.1" 500 369 "-"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101
Firefox/53.0"

WSGI file is based on documentation [1].

Any ideas? Thanks, Martin

[1] http://pywps.readthedocs.io/en/latest/deployment.html#creating-a-pywps-wsgi-instance

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
pywps-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pywps-dev
Reply | Threaded
Open this post in threaded view
|

Re: pywps on lighthttpd

Martin Landa
Hi,

2017-05-10 17:24 GMT+02:00 Martin Landa <[hidden email]>:
> is there anyone by chance who is running successfully pywps on
> lighthttpd? I started with configuration bellow:

for those who are interested. I managed to create working version with
flup server:

"""
from flup.server.fcgi import WSGIServer

from pywps.app.Service import Service

                            from processes.costpath import CostPath
processes = [
    CostPath()
]

# Service accepts two parameters:

                                # 1 - list of process instances


# 2 - list of configuration files
application = Service(

                                             processes,
    ['/path/to/pywps.cfg']
)

WSGIServer(application).run()
"""

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
pywps-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pywps-dev
Reply | Threaded
Open this post in threaded view
|

Re: pywps on lighthttpd

Martin Landa
2017-05-10 20:37 GMT+02:00 Martin Landa <[hidden email]>:
> for those who are interested. I managed to create working version with
> flup server:

ops, broken formatting. File attached, Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

_______________________________________________
pywps-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pywps-dev

test_app.fcgi.txt (512 bytes) Download Attachment