OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: eschmacher on March 11, 2021, 10:40:50 PM

Title: Webgui fails to start after upgrade to 21.1.3
Post by: eschmacher on March 11, 2021, 10:40:50 PM
After upgrading from 21.1.2 to .3, I got error 503 in my browser.

Here's the log from /var/log/lighttpd.log:

Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.332) child signalled: 6
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.601) gw-backend failed to start: /usr/local/bin/php-cgi
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.603) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.  If this is PHP on Gentoo, add 'fastcgi' to the USE flags.  If this is PHP, try removing the bytecode caches for now and try again.
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.1061) ERROR: spawning gw failed.
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.475) unlink /tmp/php-fastcgi.socket-0 after connect failed: Connection refused
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.332) child signalled: 6
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.601) gw-backend failed to start: /usr/local/bin/php-cgi
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.603) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.  If this is PHP on Gentoo, add 'fastcgi' to the USE flags.  If this is PHP, try removing the bytecode caches for now and try again.
Mar 11 16:06:10 OPNsense lighttpd[29627]: (gw_backend.c.1061) ERROR: spawning gw failed.
Mar 11 16:06:11 OPNsense lighttpd[29627]: (gw_backend.c.475) unlink /tmp/php-fastcgi.socket-1 after connectCLOG▒▒▒▒root@OPNsense:~ #


I've attempted to roll back with opnsense-revert, but now I just get error 500. Not sure what to check at this point. It passes traffic, so I'd prefer to attempt the fix the issue with lighttpd/fast-cgi before resorting to a complete reinstall.
Title: Re: Webgui fails to start after upgrade to 21.1.3
Post by: eschmacher on March 12, 2021, 06:21:30 AM
Signs pointed to a corrupted filesystem, how that ended up happening, I'm not sure. So let's blame it on my cheap SSD.

System is back up after a complete reinstall on a new disk.
Title: Re: Webgui fails to start after upgrade to 21.1.3
Post by: franco on March 12, 2021, 07:51:05 PM
Hi,

For the future problems: in 21.1 upwards you can run a health check from the console. Choose option 12 to update the firmware but type "h" and hit enter.

That might reveal these issues quicker.


Cheers,
Franco