# Errors: please verify the sha256 hash

**URL:** https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412
**Category:** Support
**Created:** [February 23, 2019, 6:33pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412 "2019-02-23T18:33:07Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![nraygun](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@nraygun](https://forum.duplicati.com/u/nraygun)
#### Post date: [February 23, 2019, 6:33pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/1 "2019-02-23T18:33:07Z")

</div>

New user of Duplicati and former user of CrashPlan. I’m on Xubuntu Linux 18.04 with Duplicati 2.0.4.15\_canary\_2019-02-06.  
After a little adjustment here and there, I got Duplicati backing up my Linux files to a Windows 10 share. Just recently I started getting warnings like this:

- 2019-02-23 12:21:27 -06 - [Warning-Duplicati.Library.Main.Operation.FilelistProcessor-MissingRemoteHash]: remote file duplicati-b471d292a4c20498a9b6504cb85de762e.dblock.zip.aes is listed as Verified with size 10485760 but should be 52364077, please verify the sha256 hash “SlrV6tpAozmL7zKZjfMlI1Ntakoziu/0FLDgIvcdYXo=”

I ran the Commandline “list-broken-files” and it listed them. I then went back and did a “purge-broken-files” but all it did was list them again.

1. What happened to cause these warnings to start appearing?
2. Why doesn’t the “purge-broken-files” commandline remove the files in question? And will a subsequent backup attempt put the purged files back with the correct hash?

I’m hoping this is something simple because this is as close to Crashplan as I could find.

---

<div class="post-metadata">

### Author: ![warwickmm](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/w/5e9695/32.png) [@warwickmm](https://forum.duplicati.com/u/warwickmm)
#### Post date: [February 23, 2019, 7:14pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/2 "2019-02-23T19:14:56Z")

</div>

Is your Windows share mounted via CIFS/Samba? Apparently there are some issues with CIFS mounts and caching/truncation that can cause problems.

If you are using CIFS, can you try disabling caching to see if that helps? I don’t think it will fix the hash mismatch you mentioned, but hopefully it will prevent it from happening again in future backups.

See the below for possibly related issues:

> <https://github.com/duplicati/duplicati/issues/3544>
>
> \- \[x\] I have searched open and closed issues for duplicates.
> 
> \----------------…------------------------
> 
> \## Environment info
> 
> 
> \- \*\*Duplicati version\*\*: 2.0.4.5\_beta\_2018-11-28
> \- \*\*Operating system\*\*: Ubuntu 18.04
> \- \*\*Backend\*\*: S3 Compatible (Minio)
> 
> \## Description
> 
> I did a backup of numerous files/directories and went to restore a number of them to validate restore capability. I started by removing a directory and then attempting to restore but it failed with numerous hash compare issues. Seeking a minimal reproducible sequence I then tried a single file in that directory to restore and it came back good. 
> I then wiped the directory and restored that same file and another, and the other came out fine while the first had a hash issue. I repeated the same restore of the two files again (not changing anything) and this time first file came back hashed correctly. For some reason it appears that only one file is restored successfully at a time, even if multiples are selected.
> 
> It seems to do fine restoring the two files if I direct it to restore to different folder.
> 
> This is pretty basic capability so this seems like a user error of some kind, but I'm not sure where. The setup is quite basic. No special options...just taking defaults on everything when setting up the job. Any ideas on where to look?
> 
> \## Steps to reproduce
> 
> 1. Backup directory with several files (each ~10MB in my case)
> 2. Remove directory that was backed up (prep for restore test)
> 3. Attempt restore of 2 files in that directory
> 4. After hash failure, perform the same restore operation again
> 
> 
> 
> \- \*\*Actual result\*\*:
> hash failures when multiple files need to be restored.
> \- \*\*Expected result\*\*:
> Proper restore the first time.

> <https://github.com/duplicati/duplicati/issues/3382>
>
> \- \[x\] I have searched open and closed issues for duplicates.
> 
> \----------------…------------------------
> 
> \## Environment info
> 
> 
> \- \*\*Duplicati version\*\*: 2.0.3.3\_beta\_2018-04-02
> \- \*\*Operating system\*\*: ubuntu 18.04.1
> \- \*\*Backend\*\*: google drive
> 
> \## Description
> errors are generated and the backup does not complete
> 
> \## Steps to reproduce
> 1. just let duplicati run on a "twice a day" schedule
> 
> 
> 
> \- \*\*Actual result\*\*:
> Duplicati.Library.Interface.UserInformationException: Found 1 files that are missing from the remote storage, please run repair at Duplicati.Library.Main.Operation.FilelistProcessor.VerifyRemoteList (Duplicati.Library.Main.BackendManager backend, Duplicati.Library.Main.Options options, Duplicati.Library.Main.Database.LocalDatabase database, Duplicati.Library.Main.IBackendWriter log, System.String protectedfile) \[0x001aa\] in \<ae134c5a9abb455eb7f06c134d211773\>:0 at Duplicati.Library.Main.Operation.BackupHandler.PreBackupVerify (Duplicati.Library.Main.BackendManager backend, System.String protectedfile) \[0x00066\] in \<ae134c5a9abb455eb7f06c134d211773\>:0 
> \- \*\*Expected result\*\*:
> no errors and a successful backup
> 
> \## Screenshots
> 
> 
> 
> \## Debug log

> <https://github.com/duplicati/duplicati/issues/2232>
>
> I have:
> \- \[x\] searched open and closed issues for duplicates
> 
> \---------------…-------------------------
> 
> \### Version info
> 
> \*\*Duplicati Version:\*\* 2.0.1.35\_experimental\_2016-12-13
> \*\*Operating System:\*\* Kubuntu 16.04.1 LTS (GNU/Linux)
> \*\*Backend:\*\* local folder based on cifs-autofs mount
> 
> \### Bug description
> Installed Duplicati on January 4th (2017). The day after (5th) I directly got some error messages about invalid file size. The latest errors of today (they vary sometimes) were:
> 
> \`\`\`
> Operation Get with file duplicati-b1dfc153c23894fe6b96d2bf2638abc94.dblock.zip.aes attempt 5 of 5 failed with message: The file duplicati-b1dfc153c23894fe6b96d2bf2638abc94.dblock.zip.aes was downloaded and had size 65536 but the size was expected to be 52367709
> System.Exception: The file duplicati-b1dfc153c23894fe6b96d2bf2638abc94.dblock.zip.aes was downloaded and had size 65536 but the size was expected to be 52367709
> at Duplicati.Library.Main.BackendManager.GetForTesting (System.String remotename, Int64 size, System.String hash) \<0x41a18080 + 0x0011f\> in \<filename unknown\>:0 
> at Duplicati.Library.Main.Operation.TestHandler.DoRun (Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) \<0x41a13510 + 0x00f8f\> in \<filename unknown\>:0 
> \`\`\`
> And finally (after 5 retries)
> \`\`\`
> Failed to process file duplicati-b1dfc153c23894fe6b96d2bf2638abc94.dblock.zip.aes
> System.Exception: The file duplicati-b1dfc153c23894fe6b96d2bf2638abc94.dblock.zip.aes was downloaded and had size 65536 but the size was expected to be 52367709
> at Duplicati.Library.Main.BackendManager.GetForTesting (System.String remotename, Int64 size, System.String hash) \<0x41a18080 + 0x0011f\> in \<filename unknown\>:0 
> at Duplicati.Library.Main.Operation.TestHandler.DoRun (Int64 samples, Duplicati.Library.Main.Database.LocalTestDatabase db, Duplicati.Library.Main.BackendManager backend) \<0x41a13510 + 0x00f8f\> in \<filename unknown\>:0 
> \`\`\`
> 
> I have twice "repaired" the database, but after file verification the errors kept. Might be related to #1583, but in that issue so many different bugs are mentioned I thought to open a fresh/clean new one. I am not sure to recreate the database; will I loose some information about my recent backups?
> 
> More relevant information:
> 
> 1. Since the backups only run for a few days, I am happy to delete all backup files and start over when necessary. The current risk is not that large
> 2. The backup files are written to a local folder on my system (\`/mnt/nas/backup\`). This is a mount point for a CIFS share, mounted with autofs. So the underlying file system is not ext4 or something, but is a share over SMB. Volume size is set to the default 50MB.
> 3. Currently is backup up my home directory with various exclude filters. 1,89GB source size with backup 165,31 MB / 3 Versions.
> 
> \### Steps to reproduce
> \- instantiate backups
> \- run them a few days
> \- notice the failure message in the backup log
> 
> \*\*Actual result:\*\* After backup logs contain failure messages
> \*\*Expected result:\*\* No failures should happen during backup process
> 
> \### debug log
> I have not a live log available. Can do that when requested, I have only the stored backup log to my availability.
> 
> \<bountysource-plugin\>
> \---
> Want to back this issue? \*\*\[Post a bounty on it!\](https://www.bountysource.com/issues/40712270-failed-to-process-messages-after-backup-the-file-had-size-x-but-was-expected-to-be-y?utm\_campaign=plugin&utm\_content=tracker%2F4870652&utm\_medium=issues&utm\_source=github)\*\* We accept bounties via \[Bountysource\](https://www.bountysource.com/?utm\_campaign=plugin&utm\_content=tracker%2F4870652&utm\_medium=issues&utm\_source=github).
> \</bountysource-plugin\>

> [@Restore failed 2 files](https://forum.duplicati.com/t/restore-failed-2-files/2859/27):
>
> Important edit: Since I’ve marked this as the solution, I’ve discovered that CIFS with cache=none is extremely slow. I noticed my backups were taking longer than normal. I ran a dd test with one of my shares mounted via NFS and then the same test with CIFS (with cache=none): NFS: (14.3MB/s - not great, but OK): root@home:/media/duplicati\_a# dd if=/mnt/nas/Backup/home-backup.tar.gz of=/media/duplicati\_a/testfile status=progress 816660992 bytes (817 MB, 779 MiB) copied, 57.0038 s, 14.3 MB/s I d…

---

<div class="post-metadata">

### Author: ![nraygun](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@nraygun](https://forum.duplicati.com/u/nraygun)
#### Post date: [February 24, 2019, 4:55am UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/3 "2019-02-24T04:55:11Z")

</div>

Thanks for the suggestion. I am using CIFS/Samba so I added the cache=none to my fstab.  
How do I clean up the hash problems? Should I just delete the backup and start over?

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [February 24, 2019, 2:31pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/4 "2019-02-24T14:31:18Z")

</div>

> [@nraygun](#):
>
> How do I clean up the hash problems?

Though @warwickmm has been handling this well (thanks!), I’ve been having the urge to ask whether the wrong-sized file originally mentioned is the same wrong size when viewed from Windows, and also what it looks like when viewed in a hex editor (if you’re into that sort of thing) on either system. We more often see files get truncated to even binary values, and I suspect file system issues. They like to use binary values… Here, though, you had one seemingly expand from (in hex) 31F032D to A00000 which begs the question of whether you got the start of a good file plus extra stuff at its end (somehow). Extra stuff can be removed…

EDIT: Miscounted digits. Never mind the expansion, yours did the usual binary-even shrink, but it might still be good to look at Windows’s view and to see if at least the start looks right. Read the rest of this lightly…

[AES File Format](https://www.aescrypt.com/aes_file_format.html) describes the file format, and gives a hex-viewer example. If you see AES, look at what’s around hex 31F032D, especially after that, although if done right, that should have already been end-of-file.

You can also see if you can find that file’s original upload size and hash, e.g. Job → Show log → Remote then if you can find the `put` of that file, click on it to find the file size and hash that were originally recorded.

---

<div class="post-metadata">

### Author: ![nraygun](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@nraygun](https://forum.duplicati.com/u/nraygun)
#### Post date: [February 24, 2019, 8:50pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/5 "2019-02-24T20:50:53Z")

</div>

I took one of the flagged files (duplicati-b471d292a4c20498a9b6504cb85de762e.dblock.zip.aes) and found it in the remote server. I tried to jump to 31F032D using a hex editor but there is no such address.  
I also looked in the Remote log and there is no “put” entry for this particular file. My warning log says there are 230 entries, but the Remote log doesn’t show this many - it shows only 5 messages.  
Note that this went from working one day to showing these warnings the next. Nothing changed on either end.  
I’m going to try deleting the whole backup and starting over.

---

<div class="post-metadata">

### Author: ![nraygun](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@nraygun](https://forum.duplicati.com/u/nraygun)
#### Post date: [February 25, 2019, 2:00pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/6 "2019-02-25T14:00:22Z")

</div>

I tried to start over and got some warnings on some directories so I excluded them. Now I’m down to 2 warnings.

I suppose I could also exclude the “gvfs-metadata/home” directory, but what’s up with the SQL file error?

Starting to think Duplicati is not for me, but I’ll work with it a bit longer.

- 2019-02-25 07:46:04 -06 - [Warning-Duplicati.Library.Main.Operation.Backup.FileBlockProcessor.FileEntry-PathProcessingFailed]: Failed to process path: /home/user/.local/share/gvfs-metadata/home
- 2019-02-25 07:47:45 -06 - [Warning-Duplicati.Library.Main.Operation.Backup.FileBlockProcessor.FileEntry-PathProcessingFailed]: Failed to process path: /home/user/.config/Duplicati/71868281878084798189.sqlite-journal

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [February 25, 2019, 6:42pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/7 "2019-02-25T18:42:53Z")

</div>

> [@nraygun](#):
>
> what’s up with the SQL file error?

Please use the [Database](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#database-management) option for your job to see if the `Local database path` is the same as in the warning except for lacking a `-journal` suffix. If so, this is the job’s database [rollback journal](https://www.sqlite.org/tempfiles.html) which is a temporary file which comes and goes and probably tends to be in use (i.e. locked) when it’s there at all.

If you want to see the details of the error (not visible in the summary), you can watch the [server log](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#viewing-the-duplicati-server-logs), i.e. About → Show log → Live → Warning, or set a [–log-file](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#log-file) for the job if you think you might want it again.

Generally, you don’t want a job to back up its own database. Even if not locked, it’s changing, so is stale instantly in terms of content. It tracks the backup which is running. Back it up in a different job, if you like.

For an example of a locked file error in detail, here’s a live log where I click on the warning to see details:

 ![image](https://forum.duplicati.com/uploads/default/original/2X/e/e9547223fd503564927c0e3a24796ced53e1b88e.png)

---

<div class="post-metadata">

### Author: ![nraygun](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@nraygun](https://forum.duplicati.com/u/nraygun)
#### Post date: [February 26, 2019, 3:42am UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/8 "2019-02-26T03:42:08Z")

</div>

Why doesn’t Duplicati skip backing up it’s own database file if it causes problems?

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [February 26, 2019, 2:30pm UTC](https://forum.duplicati.com/t/errors-please-verify-the-sha256-hash/6412/9 "2019-02-26T14:30:33Z")

</div>

> [@nraygun](#):
>
> Why doesn’t Duplicati skip backing up it’s own database file if it causes problems?

I can’t speak for developers. To me this is a rare and new “nuisance” warning, not a technical problem, so my guess is it’s too new, does too little damage, and has a workaround. Many other problem do not. More:

From a philosophy point of view, Duplicati seems to me (and I am just a user) to be one of those programs that does not force a lot of restrictions on the user, but gives them large latitude to do the backup they want. Some other backup programs take an opposite approach, taking responsibility and capability from the user.

From a problem point of view, this appears to have only become a (rare) warning in the recent 2.0.4.5 beta (with some found in [canary](https://forum.duplicati.com/t/2-0-3-7-on-mac-checkingerrorsforissue1400/3847) releases). It’s often near a #1400 error. Both might be [2.0.3.6](https://forum.duplicati.com/t/release-2-0-3-6-canary-2018-04-23/3309) new-code issues.

[New warnings/errors occurring after updating to 2.0.4.5](https://forum.duplicati.com/t/new-warnings-errors-occurring-after-updating-to-2-0-4-5/5602)

Errors are more serious than warnings, and there are enough still lingering that rare new warnings are not likely high on the priority list for scarce developer time. From a technical point of view, removing this could mean making filters more dynamic, because the database name changes. Current filters appear fixed, but do at least customize several paths to the user. Database path varies and can’t be shown in format below:

```plaintext
C:\Program Files\Duplicati 2>Duplicati.CommandLine.exe help filter-groups

Duplicati has several built-in groups of filters, which include commonly
excluded files and folders for different operating systems. These sets can be
specified via the --include/--exclude parameter by putting their name in
{curly brackets}.

    None: Selects no filters.
    DefaultExcludes: A set of default exclude filters, currently evaluates to:
    DefaultIncludes, SystemFiles,DefaultIncludes,
    OperatingSystem,DefaultIncludes, CacheFiles,DefaultIncludes,
    TemporaryFiles,DefaultIncludes, Applications.
    DefaultIncludes: A set of default include filters, currently evaluates to:
    None.

    SystemFiles: Files that are owned by the system or not suited to be backed
    up. This includes any operating system reported protected files. Most
    users should at least apply these filters.
     Aliases: Sys,System
      *UsrClass.dat*
      *\I386*
      *\Internet Explorer\
      *\Microsoft*\RecoveryStore*
      *\Microsoft*\Windows\*.edb
      *\Microsoft*\Windows\*.log
      *\Microsoft*\Windows\Cookies*
      *\MSOCache*
      *\NTUSER*
      *\ntuser.dat*
      *\RECYCLER\
      ?:\hiberfil.sys
      ?:\pagefile.sys
      ?:\swapfile.sys
      ?:\System Volume Information\
      ?:\Windows\Installer*
      ?:\Windows\Temp*
      C:\ProgramData\Microsoft\Network\Downloader\*
      C:\ProgramData\Microsoft\Windows\WER\*
      C:\Users\xxx\AppData\Local\Temp\*
      C:\Users\xxx\index.dat
      C:\WINDOWS\memory.dmp
      C:\WINDOWS\Minidump\*
      C:\WINDOWS\netlogon.chg
      C:\WINDOWS\softwaredistribution\*.*
      C:\WINDOWS\system32\LogFiles\WMI\RtBackup\*.*
      C:\Windows\system32\MSDtc\MSDTC.LOG
      C:\Windows\system32\MSDtc\trace\dtctrace.log

    OperatingSystem: Files that belong to the operating system. These files
    are restored when the operating system is re-installed.
     Aliases: OS
      *\Recent\
      ?:\autoexec.bat
      ?:\Config.Msi*
      C:\Users\xxx\AppData\Roaming\Microsoft\Windows\Recent\
      C:\WINDOWS.old\
      C:\WINDOWS\

    TemporaryFiles: Files and folders that are known to be storage of
    temporary data.
     Aliases: Temp,TempFiles,TempFolders,TemporaryFolders,Tmp
      *.tmp
      *.tmp\
      *\$RECYCLE.BIN\
      *\AppData\Local\Temp*
      *\AppData\Temp*
      *\Local Settings\Temp*
      ?:\Windows\Temp*
      C:\Users\xxx\AppData\Local\Temp\

    CacheFiles: Files and folders that are known cache locations for the
    operating system and various applications
     Aliases: Cache,CacheFolders,Caches
      *\AppData\Local\AMD\DxCache\
      *\AppData\Local\Apple Computer\Mobile Sync\
      *\AppData\Local\Comms\UnistoreDB\
      *\AppData\Local\ElevatedDiagnostics\
      *\AppData\Local\Microsoft\VSCommon\*SQM*
      *\AppData\Local\Microsoft\Windows Store\
      *\AppData\Local\Microsoft\Windows\Explorer\
      *\AppData\Local\Microsoft\Windows\INetCache\
      *\AppData\Local\Microsoft\Windows\UPPS\
      *\AppData\Local\Microsoft\Windows\WebCache*
      *\AppData\Local\Packages\
      *\Application Data\Apple Computer\Mobile Sync\
      *\Application Data\Application Data*
      *\Dropbox\Dropbox.exe.log
      *\Dropbox\QuitReports\
      *\Duplicati\control_dir_v2\
      *\Google\Chrome\*cache*
      *\Google\Chrome\*Current*
      *\Google\Chrome\*LOCK*
      *\Google\Chrome\Safe Browsing*
      *\Google\Chrome\User Data\Default\Cookies
      *\Google\Chrome\User Data\Default\Cookies-journal
      *\iPhoto Library\iPod Photo Cache\
      *\Local Settings\History\
      *\Mozilla\Firefox\*cache*
      *\OneDrive\.849C9593-D756-4E56-8D6E-42412F2A707B
      *\Safari\Library\Caches\
      *\Temporary Internet Files\
      *\Thumbs.db
      C:\Users\xxx\AppData\Local\Microsoft\Windows\History\
      C:\Users\xxx\AppData\Local\Microsoft\Windows\INetCache\
      C:\Users\xxx\AppData\Local\Microsoft\Windows\INetCookies\
      [.*\\(cookies|permissions).sqllite(-.{3})?]

    Applications: Installed programs and their libraries, but not their
    settings.
     Aliases: App,Application,Apps
      C:\Program Files (x86)\
      C:\Program Files\
      C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative
      Tools\
      C:\Users\xxx\AppData\Roaming\Microsoft\Windows\Start
      Menu\Programs\Administrative Tools\

C:\Program Files\Duplicati 2>

```

Filtering has been found to cause quite a large loss of performance, but that’s been improved in [2.0.4.10](https://github.com/duplicati/duplicati/releases/tag/v2.0.4.10-2.0.4.10_canary_2018-12-29):

> Improved performance of filters by around 10x, thanks [@warwickmm](https://github.com/warwickmm)

I’m not sure how much performance loss filtering out the job’s own database would cause. If need be, the removal could perhaps be done by special-casing comparison instead of the usual filtering mechanism…

It seems a reasonable idea to me for new users, but if there are users who now backup their database to the extent that backup is possible, these users might be hugely surprised if Duplicati suddenly stops that.

To me, this has more the flavor of an [issue](https://github.com/duplicati/duplicati/issues) than a new [Feature](https://forum.duplicati.com/c/features), but you can make a case for it either way, or possibly someone will read this discussion. Ultimately, some volunteer has to decide to go off and do it.
