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

Auto backup restore hash not matching though it should

Scheduled Pinned Locked Moved pfSense Packages
8 Posts 4 Posters 1.9k 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.
  • G
    grandrivers
    last edited by Apr 11, 2014, 12:01 AM

    SHA256 values do not match, cannot restore.
    d8fd4328f5fbea6cdd98a0311c3949be29830837f60b34e5ebeab33f66384831 <> d8fd4328f5fbea6cdd98a0311c3949be29830837f60b34e5ebeab33f66384831

    pfsense plus 25.03 super micro A1SRM-2558F
    C2558 32gig ECC  60gig SSD

    1 Reply Last reply Reply Quote 0
    • G
      grandrivers
      last edited by Apr 11, 2014, 12:04 AM

      it decrypts can see it decrypted but cant install

      pfsense plus 25.03 super micro A1SRM-2558F
      C2558 32gig ECC  60gig SSD

      1 Reply Last reply Reply Quote 0
      • R
        randybarth
        last edited by Apr 11, 2014, 12:15 AM

        ditto that. My workaround was to show info on the backup and copy the decrypted config file and put into a text file on my local machine. Then restore using Backup/Restore.

        1 Reply Last reply Reply Quote 0
        • G
          grandrivers
          last edited by Apr 11, 2014, 1:01 AM

          yeah mine too but i did pay for this feature

          pfsense plus 25.03 super micro A1SRM-2558F
          C2558 32gig ECC  60gig SSD

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by Apr 11, 2014, 2:11 AM Apr 11, 2014, 1:19 AM

            I just tried by doing a "Backup now" (which successfully made an entry in the list of backups) and then trying to restore. I get the "are you sure" prompt, then it works for a few seconds and gives:

            The following input errors were detected:
            
                SHA256 values do not match, cannot restore. 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4 <> 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4
            
            

            I wonder how long it has been like this?
            I guess this will be related to the PHP floating point number comparison debacle for big numbers, in this case big string that are valid hexadecimal. Now I will go find that again in PHP land and see if my guess is right.

            Edit1: I found that PHP big number comparison here: https://bugs.php.net/bug.php?id=54547
            But that manifests itself as 2 big and unequal numbers being reported as equal.
            This problem is a bit different, 2 apparently equal hex strings test as unequal.
            It's going to be some type conversion thing, 1 of the 2 vars getting interpreted as a number, maybe.

            Edit2: I modified the error message to display the types of the vars, PHP thinks they are both strings, and they look the same to me!

            The following input errors were detected:
            
                SHA256 values do not match, cannot restore. 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4 <> 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4 string string
            
            

            Edit 3: $ondisksha256 is 64 chars long, $sha256 is 65 chars long. There is a null or other non-displaying char in there somewhere:

            The following input errors were detected:
            
                SHA256 values do not match, cannot restore. 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4 string 64 <> 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4 string 65
            
            

            Edit 4: The 65-char string has an ASCII 10 (line feed) at the beginning, this one happens to end with an ASCII 52, which is the char "4" (correct and good):

            The following input errors were detected:
            
                SHA256 values do not match, cannot restore. 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4 string 64 <> 4dac85ab31e9f466c1063bf8935a71a6224e2f79deb9afd7e4d7338b5ffa30e4 string 65 10 52
            
            

            Enough! That data comes back from a curl_exec() call to the AutoConfigBackup server at "https://portal.pfsense.org/pfSconfigbackups/restore.php" Time to submit a bug and let the ESF guys fix it.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • P
              phil.davis
              last edited by Apr 11, 2014, 2:17 AM

              RedMine bug filed: https://redmine.pfsense.org/issues/3598

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by Apr 11, 2014, 6:16 AM

                Thanks for the analysis, much appreciated. I made some (what I thought were) minor changes server-side yesterday or the day before (I've slept 3 hours since Monday morning between release engineering and support, have lost all concept of time) while awaiting 2.1.2 builds and I broke something apparently. I can't make heads or tails of it at this point, need sleep, I'll fix in the morning if someone else doesn't beat me to it.

                Sorry for the trouble. The work around noted above will allow you to retrieve your backups in the mean time if you need them immediately.

                1 Reply Last reply Reply Quote 0
                • C
                  cmb
                  last edited by Apr 11, 2014, 8:01 PM

                  A phantom new line has showed up for some reason out of nowhere, unrelated to anything that's changed recently. We're still looking for the source of it, but in the mean time, a new package v1.23 is out there that fixes the issue. If it's something we can fix only server-side, we will, for now if you upgrade the package it'll work.

                  1 Reply Last reply Reply Quote 0
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received