autorestic icon indicating copy to clipboard operation
autorestic copied to clipboard

Add more verbose error messages

Open nickelswitte opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

When autorestic fails for some reason, I only get Error: exit status 1 and no additional information. Maybe I am missing some log files, but with just this, it leaves me guessing what the problem is.

Example:

user@host:~$ sudo autorestic check
Using config:    /home/user/.autorestic.yml
Using lock:      /home/user/.autorestic.lock.yml
Initializing backend "backend-name"...
Error: exit status 1

Describe the solution you'd like

I would like autorestic to pass on the error messages directly into the std out / terminal.

nickelswitte avatar Jun 09 '24 21:06 nickelswitte

+1, same exact symptoms here. Would like to know at least where to start diagnosis.

hogcycle avatar Jul 01 '24 16:07 hogcycle

Hey @nickelswitte, try running autorestic exec -av -- check and see if you have a stale lock file. That's what was causing this for me.

hogcycle avatar Jul 03 '24 16:07 hogcycle

That is a good workaround, thank you.

As default behavior, I would like autorestic to forward restic error messages for easy debugging. @cupcakearmy

nickelswitte avatar Jul 04 '24 07:07 nickelswitte

For sure. Took a lot of google fu and trial and error to figure that out.

Sent from Proton Mail Android

-------- Original Message -------- On 7/4/24 3:59 AM, nickelsw wrote:

That is a good workaround, thank you.

As default behavior, I would like autorestic to forward restic error messages for easy debugging. @.***(https://github.com/cupcakearmy)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

hogcycle avatar Jul 04 '24 21:07 hogcycle