Discussion:
Premature end of script headers: wwsympa.fcgi
e***@public.gmane.org
2011-02-17 14:19:52 UTC
Permalink
I have a new sympa installation. The daemons are all running:

5110 ? S 0:04 /usr/bin/perl /usr/local/bin/sympa.pl
5112 ? S 0:27 /usr/bin/perl /usr/local/bin/bulk.pl
5114 ? S 0:01 /usr/bin/perl /usr/local/bin/archived.pl
5116 ? S 0:02 /usr/bin/perl /usr/local/bin/bounced.pl
5118 ? S 0:01 /usr/bin/perl /usr/local/bin/task_manager.pl

I get these errors when I try to hit /sympa:

[Thu Feb 17 14:12:42 2011] [warn] [client 75.203.133.19] (104)Connection reset
by peer: mod_fcgid: error reading data from FastCGI server
[Thu Feb 17 14:12:42 2011] [error] [client 75.203.133.19] Premature end of
script headers: wwsympa.fcgi

My apache config includes this:

LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so

<IfModule mod_fcgid.c>

<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>

FcgidIPCDir /var/lib/apache2/fcgid/sock
FcgidProcessTableFile /var/lib/apache2/fcgid/shm

FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10

</IfModule>

ScriptAlias /sympa /usr/local/bin/wwsympa.fcgi
<IfModule mod_fcgid.c>
IPCCommTimeout 120
MaxProcessCount 2
</IfModule>

<Location /sympa>
SetHandler fcgid-script
</Location>

and in the vhost config:
Alias /static-sympa /var/www/vhosts/sympa.mkp.org/httpdocs/static_content


Can anybody suggest what I might be doing wrong?
András Bendzsák
2011-02-19 21:07:12 UTC
Permalink
Hi!
Post by e***@public.gmane.org
5110 ? S 0:04 /usr/bin/perl /usr/local/bin/sympa.pl
5112 ? S 0:27 /usr/bin/perl /usr/local/bin/bulk.pl
5114 ? S 0:01 /usr/bin/perl /usr/local/bin/archived.pl
5116 ? S 0:02 /usr/bin/perl /usr/local/bin/bounced.pl
5118 ? S 0:01 /usr/bin/perl /usr/local/bin/task_manager.pl
The web frontend and these daemons are totally independents.
Post by e***@public.gmane.org
ScriptAlias /sympa /usr/local/bin/wwsympa.fcgi
You use wrong fcgi script. Please follow the instructions in this page:
http://www.sympa.org/manual/web-interface#installing_wwsympafcgi_in_your_apache_server
--
Bendzsák András
Dan Pritts
2011-02-20 21:12:20 UTC
Permalink
the web interface is the process wwsympa.fcgi.

Check your web server logs and sympa logs.
Post by e***@public.gmane.org
5110 ? S 0:04 /usr/bin/perl /usr/local/bin/sympa.pl
5112 ? S 0:27 /usr/bin/perl /usr/local/bin/bulk.pl
5114 ? S 0:01 /usr/bin/perl /usr/local/bin/archived.pl
5116 ? S 0:02 /usr/bin/perl /usr/local/bin/bounced.pl
5118 ? S 0:01 /usr/bin/perl /usr/local/bin/task_manager.pl
[Thu Feb 17 14:12:42 2011] [warn] [client 75.203.133.19] (104)Connection reset
by peer: mod_fcgid: error reading data from FastCGI server
[Thu Feb 17 14:12:42 2011] [error] [client 75.203.133.19] Premature end of
script headers: wwsympa.fcgi
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/lib/apache2/fcgid/sock
FcgidProcessTableFile /var/lib/apache2/fcgid/shm
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
ScriptAlias /sympa /usr/local/bin/wwsympa.fcgi
<IfModule mod_fcgid.c>
IPCCommTimeout 120
MaxProcessCount 2
</IfModule>
<Location /sympa>
SetHandler fcgid-script
</Location>
Alias /static-sympa /var/www/vhosts/sympa.mkp.org/httpdocs/static_content
Can anybody suggest what I might be doing wrong?
danno
--
Dan Pritts, Sr. Systems Engineer
Internet2
office: +1-734-352-4953 | mobile: +1-734-834-7224
Ed Greenberg
2011-02-21 12:54:22 UTC
Permalink
I've gotten some private messages, and this one, and I thank all those
who have sent suggestions. This one seems the most on-target, right now.

I ran /usr/local/bin/wwsympa.fcgi (and wwsympa-wrapper.fcgi) from the
command line, and both of them return a page of HTML. (This wasn't
always the case. I was still missing a Perl module.)

Now I have mod_fcgid loaded, and this in my configs:
ScriptAlias /sympa /usr/local/bin/wwsympa-wrapper.fcgi

Should I have a process somewhere, and if so, what starts it, and what
does it look like?

Thanks,

Ed
Post by Dan Pritts
the web interface is the process wwsympa.fcgi.
Check your web server logs and sympa logs.
Post by e***@public.gmane.org
5110 ? S 0:04 /usr/bin/perl /usr/local/bin/sympa.pl
5112 ? S 0:27 /usr/bin/perl /usr/local/bin/bulk.pl
5114 ? S 0:01 /usr/bin/perl /usr/local/bin/archived.pl
5116 ? S 0:02 /usr/bin/perl /usr/local/bin/bounced.pl
5118 ? S 0:01 /usr/bin/perl /usr/local/bin/task_manager.pl
[Thu Feb 17 14:12:42 2011] [warn] [client 75.203.133.19] (104)Connection reset
by peer: mod_fcgid: error reading data from FastCGI server
[Thu Feb 17 14:12:42 2011] [error] [client 75.203.133.19] Premature end of
script headers: wwsympa.fcgi
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/lib/apache2/fcgid/sock
FcgidProcessTableFile /var/lib/apache2/fcgid/shm
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
ScriptAlias /sympa /usr/local/bin/wwsympa.fcgi
<IfModule mod_fcgid.c>
IPCCommTimeout 120
MaxProcessCount 2
</IfModule>
<Location /sympa>
SetHandler fcgid-script
</Location>
Alias /static-sympa /var/www/vhosts/sympa.mkp.org/httpdocs/static_content
Can anybody suggest what I might be doing wrong?
danno
--
Dan Pritts, Sr. Systems Engineer
Internet2
office: +1-734-352-4953 | mobile: +1-734-834-7224
David Verdin
2011-02-23 09:55:13 UTC
Permalink
Hi Ed,

The fcgi wrapper is launched by the web server itself, however in your
list of processes, you will see the wwsympa.fcgi process running. The
only purpose of the wrapper is to make sur the fcgi is tun under the
sympa uid.

Regards,

David
Post by Ed Greenberg
I've gotten some private messages, and this one, and I thank all those
who have sent suggestions. This one seems the most on-target, right now.
I ran /usr/local/bin/wwsympa.fcgi (and wwsympa-wrapper.fcgi) from the
command line, and both of them return a page of HTML. (This wasn't
always the case. I was still missing a Perl module.)
ScriptAlias /sympa /usr/local/bin/wwsympa-wrapper.fcgi
Should I have a process somewhere, and if so, what starts it, and what
does it look like?
Thanks,
Ed
Post by Dan Pritts
the web interface is the process wwsympa.fcgi.
Check your web server logs and sympa logs.
Post by e***@public.gmane.org
5110 ? S 0:04 /usr/bin/perl /usr/local/bin/sympa.pl
5112 ? S 0:27 /usr/bin/perl /usr/local/bin/bulk.pl
5114 ? S 0:01 /usr/bin/perl /usr/local/bin/archived.pl
5116 ? S 0:02 /usr/bin/perl /usr/local/bin/bounced.pl
5118 ? S 0:01 /usr/bin/perl /usr/local/bin/task_manager.pl
[Thu Feb 17 14:12:42 2011] [warn] [client 75.203.133.19]
(104)Connection reset
by peer: mod_fcgid: error reading data from FastCGI server
[Thu Feb 17 14:12:42 2011] [error] [client 75.203.133.19] Premature end of
script headers: wwsympa.fcgi
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/lib/apache2/fcgid/sock
FcgidProcessTableFile /var/lib/apache2/fcgid/shm
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
ScriptAlias /sympa /usr/local/bin/wwsympa.fcgi
<IfModule mod_fcgid.c>
IPCCommTimeout 120
MaxProcessCount 2
</IfModule>
<Location /sympa>
SetHandler fcgid-script
</Location>
Alias /static-sympa
/var/www/vhosts/sympa.mkp.org/httpdocs/static_content
Can anybody suggest what I might be doing wrong?
danno
--
Dan Pritts, Sr. Systems Engineer
Internet2
office: +1-734-352-4953 | mobile: +1-734-834-7224
--
David Verdin
Comité réseau des universités

Due to the limitations of human brain, I fail to remember all the mails.
So if you want your bug reports or feature requests for Sympa to be
processed, please post them to the Sympa tracker
<https://sourcesup.cru.fr/tracker/?group_id=23>
Loading...