OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: tillsense on November 17, 2016, 06:41:54 PM

Title: [SOLVED] 16.7.8 update broke lightsquid
Post by: tillsense on November 17, 2016, 06:41:54 PM
nginx 500 internal server error on /ligtsquid/index.cgi

i see that all files in lightsquid directory become the update date and system log tell lightsquid-1.8_4 reinstall ok

cheers till
Title: Re: 16.7.8 update broke lightsquid
Post by: tillsense on January 08, 2017, 01:02:58 PM
Ok,

the Module p5-CGI is needed for the lightsquid web interface. Should be configured as a dependency at lightsquid?

(e.g. amd64 / 17.1 )
pkg add -f http://pkg.freebsd.org/freebsd:11:x86:64/latest/All/p5-CGI.pm-3.63_1,1.txz


cheers till

------------------------------------------
OPNsense 17.1.b_97-amd64
FreeBSD 11.0-RELEASE-p6
OpenSSL 1.0.2j 26 Sep 2016
Title: Re: 16.7.8 update broke lightsquid
Post by: franco on January 08, 2017, 01:49:44 PM
Uh, this is a fun one:

http://perlhacks.com/2015/12/long-death-cgi-pm/

16.7.7 used Perl 5.20, 16.7.8 updated to 5.24 removing CGI in the process.

I'm not sure what the FreeBSD practice is here, lightsquid in FreeBSD has the same issue, but never received a runtime fix since.


Cheers,
Franco
Title: Re: 16.7.8 update broke lightsquid
Post by: franco on January 08, 2017, 01:56:00 PM
For now: https://github.com/opnsense/tools/commit/5aac96590
Title: Re: 16.7.8 update broke lightsquid
Post by: franco on January 09, 2017, 05:28:15 AM
This seems like the proper way, I will push it upstream:

https://github.com/opnsense/ports/commit/10c0ac7d123


Cheers,
Franco
Title: Re: [SOLVED] 16.7.8 update broke lightsquid
Post by: franco on January 09, 2017, 09:04:18 AM
Finally...done! https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215900