Upgrade from 23.7.11 to 23.7.12 failed

Started by tony71, January 17, 2024, 02:23:53 PM

Previous topic - Next topic
January 17, 2024, 02:23:53 PM Last Edit: January 17, 2024, 03:09:23 PM by tony71
Hello,

I try to upgrade to the last version but when extracting opnsense 23.7.12 does not end.
So I perform a reboot (probably first mistake) and then the system doesn't start.
I found a lot of error in file /var/log/configd/latest.log from /bin/sh in "single user mode":

...
<28>1 2024-01-17T11:24:31+01:00 OPNsense.localdomain configd.py - - [meta sequenceId="89"] Stopping daemon.
<11>1 2024-01-17T11:24:39+01:00 OPNsense.localdomain configd.py 11491 - [meta sequenceId="90"] Handler died on Traceback (most recent call last):   File "/usr/local/opnsense/service/modules/processhandler.py", line 104, in run     cmd_thread = HandlerClient(   File "/usr/local/opnsens
e/service/modules/processhandler.py", line 151, in __init__     self.session = get_session_context(connection)   File "/usr/local/opnsense/service/modules/session.py", line 72, in get_session_context     return xucred(connection)   File "/usr/local/opnsense/service/modules/session.py"
, line 55, in __init__     tmp = grp.getgrgid(item) KeyError: 'getgrgid(): gid not found: 0'
<163>1 2024-01-17T11:24:40+01:00 OPNsense.localdomain configd.py 13657 - [meta sequenceId="91"] Configd disconnected while executing : configd actions json
...

Adding line
root:*:0:
in /etc/group helps but doesn't seem to survive if i do another reboot.
It is possible to return to a stable system without reinstalling?
Now the system seems working but I'm afraid to perform a reboot.
Also it seems at the right OS version but not sure:

root@OPNsense:~ # opnsense-version
OPNsense 23.7.12


I have an old VM with opnsense (I was using it for test pourpose) and in this system the group 0 is:
wheel:*:0:root
but in my real router group wheel has different number:
wheel:*:2000:xxx
where xxx is a user from /etc/passwd:
xxx:*:2000:65534:Name Surname:/home/xxx:/bin/sh
(xxx is not the real username).


Best Regards,
Antonio