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

    config.xml corrupting itself

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 679 Views 4 Watching
    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.
    • T Offline
      taylor_wright2022
      last edited by

      I have a standard configuration i want to be loading on to many NG1100 routers.
      I set up one router how i wanted. Took a backup of it. And restored that backup onto the next one. It will boot up fine once. The next time it boots up though and i watch the boot up using 'screen' it says config.xml is corrupted.

      Why does this become corrupt? Can I not just restore a backup with the settings I'd like and be OK? Do i need to replace the config.xml with my config.xml?

      R GertjanG 2 Replies Last reply Reply Quote 0
      • R Offline
        rcoleman-netgate Netgate @taylor_wright2022
        last edited by

        @taylor_wright2022 As we've discussed in our TAC ticket that you filed it's typically caused by shutting the machine down by pulling the power from the back of the device before telling it to halt.
        https://docs.netgate.com/pfsense/en/latest/diagnostics/system-halt.html

        It's possible that running the fsck commands outlined at https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html#manual-filesystem-check may result in your system booting properly without doing these steps.

        But it is highly discouraged for the very experiences you are having to not simply pull the plug from the device.

        Ryan
        Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
        Requesting firmware for your Netgate device? https://go.netgate.com
        Switching: Mikrotik, Netgear, Extreme
        Wireless: Aruba, Ubiquiti

        1 Reply Last reply Reply Quote 0
        • GertjanG Offline
          Gertjan @taylor_wright2022
          last edited by

          @taylor_wright2022 said in config.xml corrupting itself:

          Why does this become corrupt?

          "pfSense" is not like most other "small boxes with a lot of plugs" : it uses a real 'hard disk or comparable SSD", lots of RAM, an OS like what's used on your PC device.
          These system use a complex file systems.
          Take you PC : how do you shut it down ? By ripping out the power ? You shouldn't do that, as it will complain the next time you boot. Do this several time, and you lose all the data on the disk data, and you'll be good for a complete re install.
          Even if pfSense is a small box, treat is seriously, and even give an UPS.
          To shut it down, use the GUI menu option, or a console/SSH command.

          Btw : classic SOHO routers firewall store very few information in non volatile RAM, use no 'drives' and run their code out of ROM. These devices can survive power ripping just fine.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            taylor_wright2022 @Gertjan
            last edited by

            @gertjan This is what the support team informed me as well. Which i understand and can start using halt system prior. However it still seems odd to me. I've been using Edge Routers which, not BSD, but do us their own OS and unpugging the power from them hasn't ever caused an issue.

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

              For it to happen repeatedly like that and damage the config file everytime you would have to be removing the power during the config write. So maybe pulling the power immediately after clicking save on something each time? Is that possible?

              Either way you should always halt the system properly before unplugging it if you can.

              Steve

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