rdedup icon indicating copy to clipboard operation
rdedup copied to clipboard

Panic when storing a Maildir

Open steveej opened this issue 6 years ago • 4 comments

Trying to backup a Maildir I'm seeing quite a few of these lines in the logs:

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', libcore/result.rs:945:5

It would be helpful to include the filename in the panic messages so this gets easier to debug.

I'm using rdup with rdedup like the README example shows. Has someone verified that filenames with spaces and special characters are handled correctly?

EDIT: I just noticed that I'm on a rather old rdedup version: 3.0.1

steveej avatar Feb 10 '19 10:02 steveej

Can you run with RUST_BACKTRACE=1 for a backtrace? If it's not clear enough, you could build it in debug mode for better stacktrace.

This is interesting.

dpc avatar Feb 10 '19 17:02 dpc

What's the name you give to your backup in rdedup?

dpc avatar Feb 10 '19 17:02 dpc

I didn't run into this after I stopped backing up to an rclone mount so I think this isn't a bug in rdedup.

steveej avatar Feb 28 '19 20:02 steveej

It might be that rclone creates a mount that spuriously returns error. It is not clear if rdedup should handle this in more robust way. Right now rdedup expects FS not to return errors for no reason, but in case of network mounts, etc. problems like that might happen, and it would be better if rdedup had some strategy to handle it.

dpc avatar Feb 28 '19 22:02 dpc