Keep losing settings

Started by ritopn, May 05, 2020, 03:35:56 AM

Previous topic - Next topic
May 05, 2020, 03:35:56 AM Last Edit: May 05, 2020, 04:48:23 AM by ritopn
Hi, I'm a new opnsense user and I've been trying out opnsense for the last 2 days and mostly succesful, however I noticed that opnsense seems to occasionally lose various settings, for instance I made a port forward, several unbound A records (overrides), installed unbound-plus, configured ipsec, dhcpd scopes and static leases and the next day everything was gone??? grepping through /conf/backups also couldn“t find any of my configurations. I noticed this behaviour earlier as well, when I configured the webgui for https and all of the sudden it reverted back to http.

It just happened again, it almost looks like a daily occurence, since it happens at around the same time. It also seems to erase all logfiles and config backups from between april 30th (the last time I made edits in my conf that 'stuck') and the time when it reset everything. WTF????

Here from the opnsense-shell trying to restore a previous config, nothing to restore between apr 30 - 5 may, as if I'm running on a ephemeral filesystem.

Enter an option: 13

    1.   Tue May  5 03:18:14 CEST 2020
    2.   Thu Apr 30 22:06:30 CEST 2020
    3.   Thu Apr 30 22:02:38 CEST 2020
    4.   Thu Apr 30 21:49:48 CEST 2020
    5.   Thu Apr 30 21:36:10 CEST 2020
    6.   Thu Apr 30 21:33:55 CEST 2020
    7.   Thu Apr 30 21:33:11 CEST 2020
    8.   Thu Apr 30 21:14:03 CEST 2020
    9.   Thu Apr 30 20:56:12 CEST 2020
    10.   Thu Apr 30 20:30:11 CEST 2020
    11.   Thu Apr 30 20:12:39 CEST 2020
    12.   Thu Apr 30 20:02:40 CEST 2020
    13.   Thu Apr 30 19:59:16 CEST 2020
    14.   Thu Apr 30 19:52:31 CEST 2020
    15.   Thu Apr 30 19:50:45 CEST 2020
    16.   Thu Apr 30 19:49:40 CEST 2020
    17.   Thu Apr 30 19:47:42 CEST 2020
    18.   Thu Apr 30 19:44:41 CEST 2020

Any ideas what is going on?

EDIT: after a reboot I also lose all settings

Tell us more about how you went on to install. Are you using a live installer image? Do you have DVD still mounted? Etc.

All settings wiped "as a service" is a rather uncommon thing and there is probably a reason for this...


Cheers,
Franco

I used the usb installer image OPNsense-20.1-OpenSSL-vga-amd64.img.bz2 unpacked the img and dd it to a usb key

root@opn:~ # cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/gpt/rootfs / ufs rw,noatime 1 1
root@opn:~ # mount
/dev/gpt/rootfs on / (ufs, local, noatime, soft-updates)
devfs on /dev (devfs, local, multilabel)
devfs on /var/dhcpd/dev (devfs, local, multilabel)
devfs on /var/unbound/dev (devfs, local, multilabel)
   
root@opn:~ # camcontrol devlist
<SATAFIRM S11 SBFMBBW3>            at scbus0 target 0 lun 0 (ada0,pass0)

root@opn:~ # gpart show -l
=>      40  62533216  ada0  GPT  (30G)
        40    409600     1  (null)  (200M)
    409640      1024     2  bootfs  (512K)
    410664  60436136     3  rootfs  (29G)
  60846800   1686456        - free -  (823M)



Yeah I already found https://forum.opnsense.org/index.php?topic=4763.0 but my usb key isn't even connected anymore, it also has attained *some* settings (e.g. my ca, most of my interface settings and my wifi ap settings like wpa + psk), which is what makes it so strange.