# B2 backup crashing

**URL:** <https://forum.duplicati.com/t/b2-backup-crashing/535>\
**Category:** Support\
**Tags:** hosting-services\
**Created:** [September 9, 2017, 1:15pm UTC](https://forum.duplicati.com/t/b2-backup-crashing/535 "2017-09-09T13:15:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kahomono](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kahomono](https://forum.duplicati.com/u/Kahomono)\
**Post date:** [September 9, 2017, 1:15pm UTC](https://forum.duplicati.com/t/b2-backup-crashing/535/1 "2017-09-09T13:15:00Z")

</div>

Trying to check out a backup to B2, and it crashes on me three days running now.  
Error messages, from log:

```
Sep 8, 2017 8:19 PM: Failed while executing "Backup" with id: 2
System.Exception: 500 - internal_error: Unexpected exception
  at Duplicati.Library.Main.Operation.BackupHandler.HandleFilesystemEntry (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend, System.String path, FileAttributes attributes) <0x423ea760 + 0x01fff> in <filename unknown>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend) <0x423e9dc0 + 0x00647> in <filename unknown>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, IFilter filter) <0x423b6150 + 0x0182f> in <filename unknown>:0 

Sep 7, 2017 5:23 PM: Failed while executing "Backup" with id: 2
System.Exception: 500 - internal_error: Connect to api001.backblazeb2.com:443 [api001.backblazeb2.com/162.244.62.198] failed: connect timed out
  at Duplicati.Library.Main.Operation.BackupHandler.HandleFilesystemEntry (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend, System.String path, FileAttributes attributes) <0x423ea760 + 0x01fff> in <filename unknown>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend) <0x423e9dc0 + 0x00647> in <filename unknown>:0 
  at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, IFilter filter) <0x423b6150 + 0x0182f> in <filename unknown>:0 

Sep 6, 2017 5:59 AM: Failed while executing "Backup" with id: 1
System.Threading.ThreadAbortException: 
  at Duplicati.Library.Main.Controller.RunAction[T] (Duplicati.Library.Main.T result, System.String[]& paths, IFilter& filter, System.Action`1 method) <0x423ab590 + 0x00493> in <filename unknown>:0 
  at Duplicati.Library.Main.Controller.Backup (System.String[] inputsources, IFilter filter) <0x423aa440 + 0x002eb> in <filename unknown>:0 
  at Duplicati.Server.Runner.Run (IRunnerData data, Boolean fromQueue) <0x423a3000 + 0x01847> in <filename unknown>:0 

```

My main questions is, is this primarily a Duplicati issue or a B2 issue?

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [September 11, 2017, 12:24pm UTC](https://forum.duplicati.com/t/b2-backup-crashing/535/2 "2017-09-11T12:24:45Z")

</div>

> [@Kahomono](#):
>
> ```plaintext
> Sep 7, 2017 5:23 PM: Failed while executing "Backup" with id: 2
> System.Exception: 500 - internal_error: Connect to api001.backblazeb2.com:443 [api001.backblazeb2.com/162.244.62.198] failed: connect timed out
> at Duplicati.Library.Main.Operation.BackupHandler.HandleFilesystemEntry (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend, System.String path, FileAttributes attributes) &lt;0x423ea760 + 0x01fff&gt; in &lt;filename unknown&gt;:0 
> at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend) &lt;0x423e9dc0 + 0x00647&gt; in &lt;filename unknown&gt;:0 
> at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, IFilter filter) &lt;0x423b6150 + 0x0182f&gt; in &lt;filename unknown&gt;:0
> 
> ```

I think there was a B2 server maintenance, maybe that explains this part.

> [@Kahomono](#):
>
> ```plaintext
> Sep 8, 2017 8:19 PM: Failed while executing "Backup" with id: 2
> System.Exception: 500 - internal_error: Unexpected exception
> at Duplicati.Library.Main.Operation.BackupHandler.HandleFilesystemEntry (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend, System.String path, FileAttributes attributes) &lt;0x423ea760 + 0x01fff&gt; in &lt;filename unknown&gt;:0 
> at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend) &lt;0x423e9dc0 + 0x00647&gt; in &lt;filename unknown&gt;:0 
> at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, IFilter filter) &lt;0x423b6150 + 0x0182f&gt; in &lt;filename unknown&gt;:0
> 
> ```

That is a Duplicati problem, there is some file/folder that triggers a crash. I am not sure what the best way to debug it is, but maybe you can go to the “Log” area (from the menu to the right) and view the “Live” log with “Profiling” enabled.

> [@Kahomono](#):
>
> ```plaintext
> Sep 6, 2017 5:59 AM: Failed while executing "Backup" with id: 1
> System.Threading.ThreadAbortException: 
> at Duplicati.Library.Main.Controller.RunAction[T] (Duplicati.Library.Main.T result, System.String[]& paths, IFilter& filter, System.Action`1 method) &lt;0x423ab590 + 0x00493&gt; in &lt;filename unknown&gt;:0 
> at Duplicati.Library.Main.Controller.Backup (System.String[] inputsources, IFilter filter) &lt;0x423aa440 + 0x002eb&gt; in &lt;filename unknown&gt;:0 
> at Duplicati.Server.Runner.Run (IRunnerData data, Boolean fromQueue) &lt;0x423a3000 + 0x01847&gt; in &lt;filename unknown&gt;:0
> 
> ```

That sounds like you have manually aborted the operation?

---

<div class="post-metadata">

**Author:** ![Kahomono](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kahomono](https://forum.duplicati.com/u/Kahomono)\
**Post date:** [September 13, 2017, 6:40am UTC](https://forum.duplicati.com/t/b2-backup-crashing/535/3 "2017-09-13T06:40:18Z")

</div>

Thanks for these responses. I am currently running another backup to B2. It’s going now for four days (~430GB so that seems OK).

I will let you know if I get the Sep 8 type failure again.

---

<div class="post-metadata">

**Author:** ![Kahomono](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kahomono](https://forum.duplicati.com/u/Kahomono)\
**Post date:** [September 14, 2017, 8:14am UTC](https://forum.duplicati.com/t/b2-backup-crashing/535/4 "2017-09-14T08:14:29Z")

</div>

Got the same failure again as Sep. 8.

> ```
> Sep 13, 2017 11:08 PM: Failed while executing "Backup" with id: 2
> System.Exception: 500 - internal_error: Unexpected exception
> at Duplicati.Library.Main.Operation.BackupHandler.HandleFilesystemEntry (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend, System.String path, FileAttributes attributes) <0x423ea760 + 0x01fff> in <filename unknown>:0 
> at Duplicati.Library.Main.Operation.BackupHandler.RunMainOperation (ISnapshotService snapshot, Duplicati.Library.Main.BackendManager backend) <0x423e9dc0 + 0x00647> in <filename unknown>:0 
> at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, IFilter filter) <0x423b6150 + 0x0182f> in <filename unknown>:0 
> 
> ```

Unfortunately I was sound asleep at the time, and another (local) backup started. Can you tell me where to find the “profiling” type logs around the failure?

This is a Linux install.

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [September 14, 2017, 8:45am UTC](https://forum.duplicati.com/t/b2-backup-crashing/535/5 "2017-09-14T08:45:17Z")

</div>

> [@Kahomono](#):
>
> Unfortunately I was sound asleep at the time, and another (local) backup started. Can you tell me where to find the “profiling” type logs around the failure?

Unfortunately, these logs are quite large so they are not normally stored.  
You can set the advanced options `--log-level=profiling --log-file=/path/to/file` and it will store the logs in that file (too late for that now…)

But I think this is perhaps related to this post:

> [@"Unexpected number of remote volumes detected: 0!"-error](https://forum.duplicati.com/t/unexpected-number-of-remote-volumes-detected-0-error/406/10):
>
> Hmm, also that backup (no exclusions, just my home folder, other destination-folder) finished with errors unfortunately: 
> 
> > **disk i/o error**
> >
> > Fatal error System.Data.SQLite.SQLiteException (0x80004005): disk I/O error disk I/O error at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt) at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) at System.Data.SQLite.SQLiteDataReader.NextResult() at System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave) at System.Da…

It seems that the “500” error does not have anything to do with the files being processed, but the error is detected during the file processing, which causes a strange behaviour.
