Settings lost on Reboot

Started by Darkpatch, April 12, 2023, 06:38:28 PM

Previous topic - Next topic
April 12, 2023, 06:38:28 PM Last Edit: April 12, 2023, 06:40:54 PM by Darkpatch
Here goes:   Installed from 22.7 media I made a while back,  was the DVD Media,  installed upgrades it went to 23.1.   Ran it for about a week, until I got a break to do some in depth setup,  decided to upgrade.  The upgrade shows 23.1.5.   It seemed to installed however on reboot,  my configuration changes were gone and it seemes to be back to 23.1.   

Per advice elsewhere,  I started a new install, selecting to delete the partitions during setup.  Not quite sure if it did that, and installed, but noticed that my prior adapter names showed up, so I wasn't certain it was  clean install.    Built new media using the 23.1 vga,  deleted the partitions and then booted up on the new media.   

Install seems to work,  confirmed I did the login as installer.   However,  I am having the same problem, when I try to upgrade to 23.1.5, it goes through the motion, and reboots only to return with 23.1 and without any configurations.

Look around online but only found a few people with similar issues.    I decided to try a few things.  Disabled ip6, made sure that my dns was only using 3rd part not and isp dns and verified it through /etc/resolv.conf.
Did a reinstall of several packages via the package menu,  things like opnsense-update. opnsense-installer, anything ssl related.  I can even go to my status tab and it say 23.1.5.   

Ran an option 12 update from SSH,  everything appears to update, however upon reboot I see this:

Last login: Sat Apr  8 02:17:41 2023 from 192.168.1.21
----------------------------------------------
|      Hello, this is OPNsense 23.1          |         @@@@@@@@@@@@@@@
|                                            |        @@@@         @@@@
| Website:      https://opnsense.org/        |         @@@\\\   ///@@@
| Handbook:     https://docs.opnsense.org/   |       ))))))))   ((((((((
| Forums:       https://forum.opnsense.org/  |         @@@///   \\\@@@
| Code:         https://github.com/opnsense  |        @@@@         @@@@
| Twitter:      https://twitter.com/opnsense |         @@@@@@@@@@@@@@@
----------------------------------------------

*** OPNsense.localdomain: OPNsense 23.1 ***


Am I somehow running a live instance even through it doesn't say so? 
Its not booting of my usb, its booting off the instance I got after I logged in as installer.

The other odd thing is despite it showing all the old information, if I run an audit,  it knows it should have been updated, and is looking for the updated files.
***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 23.1 at Wed Apr 12 16:31:07 UTC 2023
>>> Check installed kernel version
Version 23.1 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 23.1 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
>>> Check installed plugins
No plugins found.
>>> Check locked packages
No locks found.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 66 dependencies to check.
Checking packages: ..
ca_root_nss-3.87 version mismatch, expected 3.89
Checking packages: ....
dnsmasq-2.88_1,1 version mismatch, expected 2.89_1,1
Checking packages: .
dpinger-3.2 version mismatch, expected 3.3
Checking packages: ..
filterlog-0.6 version mismatch, expected 0.7
Checking packages: ........
lighttpd-1.4.67 version mismatch, expected 1.4.69
Checking packages: .
monit-5.32.0 version mismatch, expected 5.33.0
Checking packages: ...
openssh-portable-8.9.p1_4,1 version mismatch, expected 9.2.p1,1
Checking packages: .
openssl-1.1.1s,1 version mismatch, expected 1.1.1t_1,1
Checking packages: ..
opnsense-23.1 version mismatch, expected 23.1.5_4
Checking packages: ...
opnsense-update-23.1 version mismatch, expected 23.1.5
Checking packages: ...
php81-ctype-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-curl-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-dom-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-filter-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-gettext-8.1.14 version mismatch, expected 8.1.17
Checking packages: ..
php81-ldap-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-pdo-8.1.14 version mismatch, expected 8.1.17
Checking packages: ..
php81-phalcon-5.1.4 version mismatch, expected 5.2.1
Checking packages: .
php81-phpseclib-3.0.18 version mismatch, expected 3.0.19
Checking packages: .
php81-session-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-simplexml-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-sockets-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-sqlite3-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-xml-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
php81-zlib-8.1.14 version mismatch, expected 8.1.17
Checking packages: .
pkg-1.18.4 version mismatch, expected 1.19.1_1
Checking packages: .....
py39-numpy-1.23.5_1,1 version mismatch, expected 1.24.1,1
Checking packages: .
py39-pandas-1.5.1,1 version mismatch, expected 1.5.3,1
Checking packages: .
py39-requests-2.28.1_1 version mismatch, expected 2.28.2
Checking packages: ..
py39-ujson-5.0.0 version mismatch, expected 5.7.0
Checking packages: .
py39-vici-5.9.9 version mismatch, expected 5.9.10
Checking packages: .
radvd-2.19_1 version mismatch, expected 2.19_2
Checking packages: ...
squid-5.7 version mismatch, expected 5.8
Checking packages: .
strongswan-5.9.9_1 version mismatch, expected 5.9.10_1
Checking packages: .
sudo-1.9.12p2 version mismatch, expected 1.9.13p3
Checking packages: ...
unbound-1.17.1_1 version mismatch, expected 1.17.1_2
Checking packages: .. done
***DONE***


The easiest way to know for certain is to make sure you have no USB or DVD/CD media connected to your machine.

Everything you're describing sounds like it's not installed.
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

As far as I can tell its installed.   

If I am using ZFS is there something I have to do to make sure that its working?
One thing I noticed that confused me is the msdosfs.gpt/efiboot0 VFS    -  Is that normal?


root@OPNsense:/ # zfs list
NAME                 USED  AVAIL     REFER  MOUNTPOINT
zroot               1.19G   105G       96K  /zroot
zroot/ROOT           933M   105G       96K  none
zroot/ROOT/default   933M   105G      933M  /
zroot/tmp           1.05M   105G     1.05M  /tmp
zroot/usr            384K   105G       96K  /usr
zroot/usr/home        96K   105G       96K  /usr/home
zroot/usr/ports       96K   105G       96K  /usr/ports
zroot/usr/src         96K   105G       96K  /usr/src
zroot/var            230M   105G       96K  /var
zroot/var/audit       96K   105G       96K  /var/audit
zroot/var/crash       96K   105G       96K  /var/crash
zroot/var/log        230M   105G      230M  /var/log
zroot/var/mail        96K   105G       96K  /var/mail
zroot/var/tmp         96K   105G       96K  /var/tmp

root@OPNsense:/ # mount
zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs)
/dev/gpt/efiboot0 on /boot/efi (msdosfs, local)
zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)
zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)
zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)
zroot on /zroot (zfs, local, noatime, nfsv4acls)
zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot/var/mail on /var/mail (zfs, local, nfsv4acls)
devfs on /var/dhcpd/dev (devfs)
devfs on /var/unbound/dev (devfs)
/usr/local/lib/python3.9 on /var/unbound/usr/local/lib/python3.9 (nullfs, local, noatime, read-only, nfsv4acls)

root@OPNsense:/etc # zpool status
  pool: zroot
state: ONLINE
config:

NAME        STATE     READ WRITE CKSUM
zroot       ONLINE       0     0     0
   da0p4     ONLINE       0     0     0

errors: No known data errors
root@OPNsense:/etc # geom -t
Geom                       Class      Provider
da0                        DISK       da0
  da0                      PART       da0p1
    da0p1                  LABEL      gpt/efiboot0
      gpt/efiboot0         DEV
      msdosfs.gpt/efiboot0 VFS
    da0p1                  DEV
  da0                      PART       da0p2
    da0p2                  LABEL      gpt/gptboot0
      gpt/gptboot0         DEV
    da0p2                  DEV
  da0                      PART       da0p3
    da0p3                  DEV
    swap                   SWAP
  da0                      PART       da0p4
    da0p4                  DEV
    zfs::vdev              ZFS::VDEV
  da0                      DEV
cd0                        DISK       cd0
  cd0                      DEV
root@OPNsense:/etc #