-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
borg crashes when backing up to gvfs volume #8120
Comments
Your filesystem doesn't work correctly. borg does a file "open" and the fs responds with:
|
#7937 also had this issue. |
Indeed it looks very similar. However, it needs to be noted that: a) it happens only with |
You can try to reproduce this on a local filesystem to see whether it only happens on cifs. "not supported" as error response to "open()" is weird. |
Oh, and try without that "gvfs" and just do a normal cifs mount and try with that also. |
On kernel-based cifs volume EDIT: EVEN MORE EDIT: Even weirder is that the exception happens on the second attempt to open |
I played with EDIT: No, it's not at random.
consequent fail:
|
OK, so guess this is a gvfs bug? Or is borg doing something wrong or unusual? |
It looks like a gvfs bug to me, but this is just like, my opinion. I will find out. |
Guess this is a gvfs bug. |
Indeed, I still haven't found out why it occurs but at least borg stopped triggering for me. |
Even if it was a bug in gvfs, the debug information that borg gave it made it near impossible to root cause. Thanks to @steelman for the debug info, I could reproduce locally and file a bug with a reproducer: |
@hadess Thanks for analysing this and filing the bug with reproducer at gvfs! The problem here is that borg just does an "open()", everything more detailed happens inside CPython, so that "OSError: [Errno 95] Operation not supported" is all we have. For such unexpected errors, we WANT to see the traceback (in case borg is the problem, so we can see what led to the exception). So the goal here (in general) is not a "nice" error msg, but an error msg with all the information we have. I agree that it is sometimes a bit hard to analyse, especially if there are exceptions within the exception handler or within context managers trying to clean up, but I don't think we can easily improve this. |
For me a "nice" error message is something that can be acted upon. Like the value of
I'd fine with either 2 or 3. |
True, but even that could be seen as a bug in Python: it could include the file path or file fd when raising that exception rather than having |
Can you please take care of filing that bug against Python then? There are already a number of work-arounds that exist for Python (I found https://pypi.org/project/friendly-traceback/ after 5 minutes of searching), but I don't know whether this sort of changes would ever get merged into Python upstream, whether it is at all suitable to Python upstream, or even whether the timeframe for it being fixed is anywhere near "short-term" enough for a work-around not to be implemented now. Is there anything wrong with wrapping that call with a |
We have a lot of such calls, not only that one - and I don't feel like "decorating" them all. In the end, I guess you had to use IIRC, there were some improvements to tracebacks in recent python versions, but not sure if any of these would have helped here. friendly-traceback is rather to help python beginners with their first coding steps and I don't think it is suitable here. Yes, I can check the python issue tracker and file a bug if they don't have one already. |
No, I didn't manage to root cause anything a year ago, because of the hurdles I mentioned above (using a front-end that wasn't giving me much more info, and sandboxed at that). I was just lucky today, as I revisited the problem, to find that the OP had root-caused it. So I took the opportunity to file an upstream bug, and I'll probably try and fix it too, time permitting. I would just want the next person to not spend days of time trying to root cause the problem when the problem is hit next, whether it's on another FUSE implementation, or something else, when we could "just" have better debug. |
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
BUG
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.2.4
Operating system (distribution) and version.
Debian 12.5
Hardware / network configuration, and filesystems used.
Source: local ext4
Destination: CIFS mounted via FUSE (gvfs) with
gio mount smb://…
.How much data is handled by borg?
(The question isn't clear)
Full borg commandline that lead to the problem (leave away excludes and passwords)
borg check ::2024-W08-1
Describe the problem you're observing.
borg crashes
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
Yes, it happens every time.
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: