Skip to content
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

Exit Codes of Borg backup on Network Error #3939

Closed
engelant opened this issue Jun 30, 2018 · 4 comments
Closed

Exit Codes of Borg backup on Network Error #3939

engelant opened this issue Jun 30, 2018 · 4 comments

Comments

@engelant
Copy link

Due to the remote nature of Borg Backup I would find it usefull, if we would get an Exit code back, that indicates the network connection broke down, since this is not really an error in Borg. Therefor inside the script one could just sleep a few seconds and then retry connectiong to the remote a few times before really giving up and throwing an error (or just continuing with the backup). This is especially affecting DialUP with DynDNS.

@ThomasWaldmann
Copy link
Member

borg uses ssh to set up and deal with the connection. from ssh man page:

EXIT STATUS
     ssh exits with the exit status of the remote command
     or with 255 if an error occurred.

So, we (maybe) have that and also borg's RemoteRepository code notices that the pipes to the local ssh process stopped working.

Not much information (and not very precise information), but needs more research whether we can make something from that.

@engelant
Copy link
Author

engelant commented Jul 3, 2018

As far as I understood the SSH error code is not passed trough, just the error code of the command run on the remote end. Would there be any reason not to introduce an 2 < error code < 128, that represents a "transport error"?

@ThomasWaldmann
Copy link
Member

That would be possible at a bigger release step I guess. Main problem is getting to know what happened and defining additional error codes (which reminds me that we likely have another ticket about this).

@ThomasWaldmann
Copy link
Member

see #6756

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants