-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restic 0.10.0 causes read errors on mounted samba share #2968
Comments
That's an EINTR. This is might be the new async preemption in the Go 1.14 runtime. The best way to tell would be to compile restic 0.10.0 with Go 1.13.4 and try again. But before you go installing compilers, maybe try setting $ export GODEBUG=asyncpreemptoff=1
$ restic backup /mnt/nas_hektor --cleanup-cache --exclude-file exclusions.txt |
Related: golang/go#39237, golang/go#40870 (especially this comment). I think we |
This looks like #2659 to me. @Mikescher could you merge your bug report into that issue? |
Hi, go version go1.15.2 linux/amd64 |
Hmm yeah, I guess that pretty much sounds like my problem. You can close this issue in favor of #2659 |
@Mikescher Please add your detailed bug report to #2659, it's pretty useful to have a problem report with the latest restic version there. |
I've copy most comments over to #2659 |
Updates restic#2659. This is one of the cases where the stdlib will not handle EINTR for us, even with Go 1.16. That xattr calls are directly affected can be seen in the report for issue restic#2968.
Updates restic#2659. This is a case where the stdlib will not handle EINTR for us, even with Go 1.16. That xattr calls are directly affected can be seen in the report for issue restic#2968.
can confirm still have this problem with version: restic 0.12.0 compiled with go1.15.5 on linux/amd64ca |
Hi, Result:
|
Updates restic#2659. This is a case where the stdlib will not handle EINTR for us, even with Go 1.16. That xattr calls are directly affected can be seen in the report for issue restic#2968.
Summary
After upgrading to restic 0.10.0 I get read errors when backing up a mounted samba share.
After downgrading to 0.9.6 the errors are once again gone.
Output of
restic version
How did you run restic exactly?
I have a local restic repository and a mounted samba/cifs share (from my NAS) that I want to backup.
I simply run
restic -r {local_repo} backup /mnt/nas_hektor --cleanup-cache --exclude-file {exclusions}.txt
Output:
The
/var/log/syslog
is sprinkled many of the following (seemingly relevant) errors:What backend/server/service did you use to store the repository?
The repository is simply stored on the local filesystem, only the actual to-be-backed-up data is mounted via cifs
Expected behavior
Well, no errors..
Actual behavior
restic displays errors while running, ends with an error message and actually skips these files in the snapshot.
Calling restic again backs the files up without problem (I can also without problem stat/list the files/directories in my terminal).
It seems to just fail at random and after 3 invocations of restic backup I had all files backed up (after that I downgraded for the other backups I wanted to do)
Steps to reproduce the behavior
Not really sure if it's reproducible for everyone who backs up (a lot of) data from a cifs mountpoint.
I tried to eliminate other problem sources (see below) but I don't know how much it depends on my setup/network/whatever
Do you have any idea what may have caused this?
No idea.
I can say that I tried a lot of other things before downgrading restic because it really sounds like a samba problem.
I did a full software update on my machine, restarted my synology nas, multiple times restarted my machine, tried tweaking samba mount options etc.
But because a simple restic downgrade eliminated all problems it seems like restic at least started triggering some cifs bug since 0.10.0
Btw both machines are in the same local network, connected by a Gbit switch and stand only a meter from each other, so teh network should be very stable.
Do you have an idea how to solve the issue?
Nope, sorry.
Did restic help you today? Did it make you happy in any way?
Well not happy but I'm still convinced that you simply managed to trigger some stupid bug in mount.cifs and because I know how annoying such stuff is I feel kinda sorry to report it 😨
The text was updated successfully, but these errors were encountered: