[solved] 23.1.1 upgrade problem can't boot anymore

Started by stanlog, February 17, 2023, 11:19:22 AM

Previous topic - Next topic
February 17, 2023, 11:19:22 AM Last Edit: February 20, 2023, 12:15:19 PM by stanlog
Hello,
During upgrade this morning, updater on web UI blocked on kernel update step for a very long time (about one hour). In can't connect through console (login failed).
Message when I try to console :

PHP Warning:  PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/lib/php/20210902/curl.so (Shared object "libunistring.so.5" not found, required by "libpsl.so.5"), /usr/local/lib/php/202100
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'mbstring.so' in Unknown on line 0
PHP Fatal error:  Uncaught Error: Class "OPNsense\Auth\AuthenticationFactory" not found in /usr/local/libexec/opnsense-auth:62
Stack trace:
#0 {main}
  thrown in /usr/local/libexec/opnsense-auth on line 62

Fatal error: Uncaught Error: Class "OPNsense\Auth\AuthenticationFactory" not found in /usr/local/libexec/opnsense-auth:62
Stack trace:
#0 {main}
  thrown in /usr/local/libexec/opnsense-auth on line 62
Login incorrect

I rebooted the appliance DEC2750 (clearly not a good idea :( ).
Now I'm blocked.
How can I do to login in console to try to repair ?
Thank you so much for your help, it's the first time I'm breaking an Opnsense instance.

If you have console access the easiest way is probably a re-install with config import.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Finally, I rebooted in single mode, reset the root password, rebooted, but same error when I try to login in the console :

PHP Warning:  PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/lib/php/20210902/curl.so (Shared object "libunistring.so.5" not found, required by "libpsl.so.5"), /usr/local/lib/php/202100
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'mbstring.so' in Unknown on line 0
PHP Fatal error:  Uncaught Error: Class "OPNsense\Auth\AuthenticationFactory" not found in /usr/local/libexec/opnsense-auth:62
Stack trace:
#0 {main}
  thrown in /usr/local/libexec/opnsense-auth on line 62

Fatal error: Uncaught Error: Class "OPNsense\Auth\AuthenticationFactory" not found in /usr/local/libexec/opnsense-auth:62
Stack trace:
#0 {main}
  thrown in /usr/local/libexec/opnsense-auth on line 62
Login incorrect


I saw an error on boot "Failed to include gfx-opnsense", when I tried several boot options.
The OS seems to be really broken, no ?
If you can tell me how I can do to reinstall OS, or what are broken, it would be great.
Thanks a lot for your help.

February 17, 2023, 11:56:07 AM #3 Last Edit: February 17, 2023, 12:51:40 PM by pmhausen
Download installer image, write image to USB key, boot from key, run installer - as documented:
https://docs.opnsense.org/setup.html

But since you run a Deciso appliance, did you contact support?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thank you so much I will try this at the end of the week-end ('cause travel).
Have a nive day !

Problem solved, I reinstalled OS from USB through serial console.
Thank you for your help. I will wait few days before upgrade from 23.1 to 23.1.1 'cause I'm afraid to break it one more time :)