[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sitesummary: fails to install / configure apache

On Sun, Nov 20, 2016 at 04:06:29PM +0100, Wolfgang Schweer wrote:
> AFAICT the test fails cause an apache2 restart is needed after enabling 
> a module (cgi in this case).
> No real clue about debci: Maybe the autopkgtest code could be adjusted 
> calling 'systemctl restart apache2' before calling sitesummary-client? 
> Or, if that doesn't work, possibly reboot the testbed before calling 
> sitesummary-client?

I pointed Antonio Terceiro at this and he replied:

<terceiro> h01ger: I think Wolfgang's analysis is right. if you note the log, sitesummart is installed *after* apache2, so apache2 is not reloaded to apply sitesummary config
<terceiro> h01ger: I tried it here, and after I do `systemctl reload apache2`, sitesummary reports `HTTP/1.1 503 Service Unavailable`, and /var/log/apache2/error.log says:
<terceiro> [Sun Nov 20 22:29:31.499774 2016] [cgid:error] [pid 2750:tid 139817579779840] (22)Invalid argument: [client] AH01257: unable to connect to cgi daemon after multiple tries: /usr/lib/cgi-bin/sitesummary-collector.cgi
<terceiro> after that, I do `systemctl restart apache2`, then I get a `HTTP/1.1 500 Internal Server Error` and /var/log/apache2/error.log says:
<terceiro> Can't locate CGI.pm in @INC (you may need to install the CGI module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/lib/cgi-bin/sitesummary-collector.cgi line 10.
<terceiro> BEGIN failed--compilation aborted at /usr/lib/cgi-bin/sitesummary-collector.cgi line 10.
<terceiro> [Sun Nov 20 22:30:31.172102 2016] [cgid:error] [pid 2869:tid 139641980589824] [client] End of script output before headers: sitesummary-collector.cgi
<terceiro> so besides the reloading thing, there is also a issue with missing dependencies
<terceiro> that was sitesummary 0.1.24


Attachment: signature.asc
Description: Digital signature

Reply to: