Re: [Cppcms-users] HTTP 500 errors - backend died?
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2009-02-22 21:09:11
|
Hi, You probably compiled cppcms library as embedded without fastcgi support. So by default it works only as CGI. Thus you need to work with it in different way -- configure server direcly to run cgi. The cppcms_run script supports fastcgi and scgi backends. How did you compile it? (flags) Artyom --- On Sun, 2/22/09, stuart brockman <stu...@ho...> wrote: > From: stuart brockman <stu...@ho...> > Subject: [Cppcms-users] HTTP 500 errors - backend died? > To: cpp...@li... > Date: Sunday, February 22, 2009, 10:54 PM > Hi, I am having problems getting any CppCMS applications to > run. (Running CppCMS 0.0.4 on Ubuntu 8.10 x86) > Any requests get a HTTP 500 error. Have tried lighttpd and > apache - the only difference is that lighttpd gives some > debugging output (shown below). > > Here is the output when running the "hello world" > example: > > $ cppcms_run hello.fcgi -c config.txt > Web Server Host:127.0.0.1 > Web Server Port:8080 > Document > Root:/<removed>/cppcms/examples-0.0.4/hello_world > Script:/hello.fcgi > Api:fastcgi > Socket:/tmp/hello-world.sock > Server:/usr/sbin/lighttpd -f > /<removed>/cppcms/examples-0.0.4/hello_world/cppcms_rundir/lighty.conf > Starting Application Server:/hello.fcgi > X-Powered-By: cppcms/0.0.4 > Content-Length: 53 > Content-Type: text/html > > <html> > <body> > <h1>Hello World</h1> > </body> > </html> > Application Server PID:11871 > Starting Web Server > 2009-02-22 20:41:33: (log.c.75) server started > Web Server PID:11874 > > ------------------------------------ > - Press Any Key To Stop The Server - > ------------------------------------ > 2009-02-22 20:41:42: (mod_fastcgi.c.1761) connect failed: > No such file or directory on unix:/tmp/hello-world.sock > 2009-02-22 20:41:42: (mod_fastcgi.c.2930) backend died; > we'll disable it for 5 seconds and send the request to > another backend instead: reconnects: 0 load: 1 > 2009-02-22 20:41:48: (mod_fastcgi.c.2743) fcgi-server > re-enabled: unix:/tmp/hello-world.sock > > The last few lines repeat each time a request is made from > the browser. From my investigation it seems that the > "app.execute()" line is falling through, > generating one batch of output and then the application > quits. > > Any ideas? > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA > -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open > source participation > -Receive a $600 discount off the registration fee with the > source code: SFAD > http://p.sf.net/sfu/XcvMzF8H_______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |