Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Settings blown away after restart

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 6 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jdp0418
      last edited by

      Your issue sounds odd.  Are you using Nano images?  Could you be booting into an old nano image?

      As for the upgrade, I am pretty sure there are major revision differences at the BSD level between 1.x.x and 2.0.x.

      https://doc.pfsense.org/index.php/Upgrade_Guide#pfSense_1.2.x_to_2.0_Upgrade_Notes

      Do you have packages installed?

      If downtime is so undesirable for this situation but the upgrade is absolutely necessary, then I would suggest building a new unit side by side, importing the configuration, and then just swinging the cables from old firewall to new.  That might be a good option as the hardware could always be to blame.

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        Yep, check the upgrade log. Also accessible in Diagnostics > NanoBSD (though maybe not in 1.2.3.)
        I would suggest that either your boot media is damaged so that the new image cannot be written to it or that your config cannot be translated correctly to the new format resulting in a bad config file and the box is falling back to a backup file. Check in /conf for backup configs.

        Steve

        1 Reply Last reply Reply Quote 0
        • K Offline
          kejianshi
          last edited by

          Yeah - I expect this was a little bit like trying to update from XP to windows 8 directly and expecting all your programs and settings to be fine.

          1 Reply Last reply Reply Quote 0
          • A Offline
            Art
            last edited by

            @doktornotor:

            1/ There are upgrade logs (/conf/upgrade_log) for a reason.
            2/ Why are you updating to 2.1.5 while we are at 2.2.1?
            3/ Backup the configuration, do a fresh install of latest version and restore the config.

            Thanks for your reply. I am trying to upgrade to 2.1.5 as I tried the upgrade of 1.2.3 to 2.1.5 in a lab environment and it worked fine.

            1 Reply Last reply Reply Quote 0
            • A Offline
              Art
              last edited by

              @jdp0418:

              Your issue sounds odd.  Are you using Nano images?  Could you be booting into an old nano image?

              As for the upgrade, I am pretty sure there are major revision differences at the BSD level between 1.x.x and 2.0.x.

              https://doc.pfsense.org/index.php/Upgrade_Guide#pfSense_1.2.x_to_2.0_Upgrade_Notes

              Do you have packages installed?

              If downtime is so undesirable for this situation but the upgrade is absolutely necessary, then I would suggest building a new unit side by side, importing the configuration, and then just swinging the cables from old firewall to new.  That might be a good option as the hardware could always be to blame.

              Hi. I have ntop installed. I know that I have to remove packages first then to try to upgrade. The problem is after the restart of the system packages and the previous version of pfsense are back.
              Swinging cables is another issue. Believe it or not our ISP fixes the MAC address of the box connected and every time you decide to change the hardware you need to call and inform them of changes. Then if they are free and in a good mood they do something on their side to give an access to a box with a new MAC. Keeping in mind the quality of customer service …
              Probably, I will find out the type of the hdd in the box, then I will get a similar hdd, remove the old one and try to install the latest one on the new hdd. If everything works - OK, if no I will install the old HDD and boot the system and look for another box.
              In regards to upgrade from 1.2.3 to 2.1.5 as I mentioned in my previous post it works (I have tested in the virtual box and it is fine, no issues).

              1 Reply Last reply Reply Quote 0
              • D Offline
                doktornotor Banned
                last edited by

                @Art:

                Believe it or not our ISP fixes the MAC address of the box connected and every time you decide to change the hardware you need to call and inform them of changes.

                That's the least of the problems. You can spoof any MAC address you need.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Art
                  last edited by

                  @doktornotor:

                  @Art:

                  Believe it or not our ISP fixes the MAC address of the box connected and every time you decide to change the hardware you need to call and inform them of changes.

                  That's the least of the problems. You can spoof any MAC address you need.

                  Thanks a lot.

                  I cannot find upgrade_log. I enabled SSH, used Putty to connect to the box  and was able to find config.xml in conf but there was no upgrade_log. I also looked for upgrade_log in var/log. I can find some log files but the upgrade_log is not there.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    doktornotor Banned
                    last edited by

                    I already posted where the log is.

                    
                    $ ls -l /conf/upgrade_log.txt
                    -rw-r--r--  1 root  wheel  769795 Mar 19 17:19 /conf/upgrade_log.txt
                    
                    

                    Same thing, nanobsd or full install.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Art
                      last edited by

                      @doktornotor:

                      I already posted where the log is.

                      
                      $ ls -l /conf/upgrade_log.txt
                      -rw-r--r--  1 root  wheel  769795 Mar 19 17:19 /conf/upgrade_log.txt
                      
                      

                      Same thing, nanobsd or full install.

                      In /conf/ I can find only the "backup" and the config.xml

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        kejianshi
                        last edited by

                        "setting blown away after restart"

                        Well - Thats one way to become expert (-:

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          edwardwong
                          last edited by

                          I have similar issue…..settings didn't go away, but my HAVP will go away.....leaving only a "shell" inside pfSense menu.
                          i.e. Everytime I reboot my machine, the group setting (HAVP group) and some executables are gone, I have no clue at all....

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kejianshi
                            last edited by

                            Have you tried a wipe, reinstall and reconfiguration by hand?

                            1 Reply Last reply Reply Quote 0
                            • E Offline
                              edwardwong
                              last edited by

                              Not yet, but going to do so (since mine is a new box, still testing)
                              But does it matter with nanobsd? I have only 1G ram + 1G CF card, not sure if this is the issue (maybe disk full so that nothing can be sync?)

                              1 Reply Last reply Reply Quote 0
                              • K Offline
                                kejianshi
                                last edited by

                                Maybe - There are some guys here with more experience than me in that department.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S Offline
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Are you able to create a file in /conf at all? Perhaps your boot media is damaged to the extent that it's permanently read-only.
                                  If not that then it's not even starting to upgrade so check the main system logs for errors.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    Art
                                    last edited by

                                    I tried to create a file in /conf and I was able to create it. I will have a look at system log once again.

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Art
                                      last edited by

                                      Here is my solution. Purchased a new 60 GB ssd drive, removed the old one, installed the new drive, installed the latest version of pfsense from USB, restored settings and was ready in 1 hour and 10 minutes.

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kejianshi
                                        last edited by

                                        What you did is very sensible.  Although, you have denied me the entertainment I normally get watching people jump through crazy hoops for weeks trying to save a couple of bucks.  :(

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.