OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: drbob on May 27, 2023, 01:21:36 pm

Title: Unable to access web interface. Fatal error:
Post by: drbob on May 27, 2023, 01:21:36 pm
Hi,

A couple of weeks ago I upgraded my opnsense install to 23.1 - all seemed to go well and the web interface was accessible after the reboot.

Today I tried to access the web interface and it did not load, instead I was confronted with this error:

Code: [Select]
Fatal error: Failed opening required '/usr/local/www/index.php' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in Unknown on line 0
I have not touched the OPNsense configuration since the upgrade. SSH is disabled on the router so the web interface is the only way to manage it.

Internet connectivity has not dropped, it's just the management interface that isn't working.

Before I fall back to a full reinstall, any suggestions would be much appreciated.
Title: Re: Unable to access web interface. Fatal error:
Post by: Gognic on May 27, 2023, 01:54:33 pm
You and I have encountered exactly the same problem.

WebUI 503 Service Unavailable  :'(
Title: Re: Unable to access web interface. Fatal error:
Post by: sjjh on May 27, 2023, 01:57:21 pm
I have not touched the OPNsense configuration since the upgrade. SSH is disabled on the router so the web interface is the only way to manage it.
Can you try a locale console (if you have physical access and can connect monitor + keyboard)?

No idea about the root cause of the error message. If the web GUI has worked after the update, maybe there's a chance that it is a temporary error. In that case, maybe forcing a reboot (e.g. cutting of power) could help?

Good luck!
Title: Re: Unable to access web interface. Fatal error:
Post by: drbob on May 27, 2023, 02:50:10 pm
You and I have encountered exactly the same problem.

WebUI 503 Service Unavailable  :'(

That seems like it may be a different problem, I'm not seeing a 503 (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) error code just the PHP "fatal error" I quoted above.
Title: Re: Unable to access web interface. Fatal error:
Post by: drbob on May 28, 2023, 10:01:06 pm
A reboot of the server fixed things for me. I was on 23.1.7_3 when the error occurred. I've since upgraded to 23.1.8 and all seems well for now.

There were some error messages on the local console but I didn't record them. After the reboot I could see that there were also some errors in the backend log from when I upgraded to 23.1.(http://)7_3 (see attached image)

I was mistaken about ssh not being enabled, whatever crashed the http server also brought down the ssh server.

Title: Re: Unable to access web interface. Fatal error:
Post by: HAD-Online on August 26, 2023, 07:36:45 pm
Hi,
ich dabei bin, meine eigene Cloud aufzubauen und nutze dabei OPNsense 23.7.2 in einer VM. Leider stoße ich auf folgenden Fehler:

Failed opening required '/usr/local/www/interfaces_assign.php' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in Unknown on line 0

Gibt es hier vielleicht jemanden, der einen Tipp für mich hat?
Danke im Voraus!
Title: Re: Unable to access web interface. Fatal error:
Post by: franco on August 26, 2023, 08:42:41 pm
Kurz mal auf Deutsch dann: Datei gibt es nicht mehr? ;)

Auf der Konsole:

# opnsense-revert opnsense


Cheers,
Franco