My OPNSense crashed so I reinstalled the same ver. I had, 25.7.2. Installed the plugins I had (Crowsec and Zenarmor)
Did a restore from the backup file (ver. 25.7.2). Rebooted and then I got the following:
Configuring login behavior......
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/etc/inc/auth.inc:260
Stack trace:
#0 /usr/local/etc/inc/system.inc(1214): local_sync_accounts( )
#1 /usr/local/etc/rc.bootup(66): system_login_configure(true)
#2 (main)
thrown in /usr/local/etc/inc/auth.inc on line 260
Enter full pathname of shell or RETURN for /bin/sh:
Can someone please help me?
best regards,
HCV
Could be an empty <user/> tag in the /conf/config.xml -- try to delete it.
Cheers,
Franco
Thanks Franco.
Found error only on the computer where I have OPNSense. Tested with another OPNSense New installation and tried to provoke the error and recovery worked without problems.
So I will not spend any more time on this and close the case.
Quote from: franco on September 09, 2025, 09:04:54 PMCould be an empty <user/> tag in the /conf/config.xml -- try to delete it.
Cheers,
Franco
Thats the cause. Thanks for help.