Discussion:
[Wt-interest] SIGTERM Apache Fcgid Crash on Hello.Wt Example
B V Raghav
2014-12-19 21:44:12 UTC
Permalink
Though the hello.C example works with the wthttp library; the wtfcgi
library compiled binary fails on deployment with Caught SIGTERM, shutting
down - on the apache error log.

Build details:
Apache 2.2.22 (Debian wheezy amd64) mod_fcgid 2.3.6
wt 3.3.3
boost 1.55

Apache Wt Config:
---
<IfModule mod_fcgid.c>
SocketPath /var/lib/apache2/fcgid/sock
IdleTimeout -1
ProcessLifeTime -1
MaxProcessCount 10
DefaultMaxClassProcessCount 10
DefaultMinClassProcessCount 1
FcgidInitialEnv WT_APP_ROOT /home/bvr/wt/approot
</IfModule>

<DirectoryMatch "^/home/.+/public_html/.*$">
AddHandler fcgid-script .wt
Options +ExecCGI
</DirectoryMatch>
---

Apache Error Log
---
[Sat Dec 20 00:14:26 2014] [notice] caught SIGTERM, shutting down
[Sat Dec 20 00:14:27 2014] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6
configured -- resuming normal operations
[Sat Dec 20 00:27:47 2014] [notice] caught SIGTERM, shutting down
[Sat Dec 20 00:27:48 2014] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6
configured -- resuming normal operations
[Sat Dec 20 00:42:04 2014] [notice] caught SIGTERM, shutting down
[Sat Dec 20 00:42:05 2014] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6
configured -- resuming normal operations
[Sat Dec 20 01:06:14 2014] [notice] caught SIGTERM, shutting down
[Sat Dec 20 01:06:15 2014] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6
configured -- resuming normal operations
[Sat Dec 20 03:09:46 2014] [notice] caught SIGTERM, shutting down
[Sat Dec 20 03:09:47 2014] [notice] Apache/2.2.22 (Debian) mod_fcgid/2.3.6
configured -- resuming normal operations
---

compilation command:
---
g++ -g -o /home/<username>/public_html/wt/hello.wt -lwt -lwtfcgi hello.cpp
---

Is there anything specific that I am missing?

Thanks
r
--
(b v raghav)

***@gmail.com
Loading...