bupstash icon indicating copy to clipboard operation
bupstash copied to clipboard

Panic unwrap SqliteFailure Err

Open jesselucas opened this issue 2 years ago • 2 comments

Using bupstash for the first time so could be an error on my part. While backing up data I run into this error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("cannot rollback - no transaction is active"))', src/sendlog.rs:361:55
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::ptr::drop_in_place<bupstash::sendlog::SendLogSession>
   4: bupstash::put_main
   5: bupstash::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Abort trap

using this cmd:

RUST_BACKTRACE=1 bupstash put \
   --send-log /backups/backup.sendlog \
   hostname=$(hostname) \
   name=backup.tar \
   /src_folder/

jesselucas avatar Jul 26 '22 20:07 jesselucas

To add more context it seems the error was happening when the disk I was backing up to ran out of space.

jesselucas avatar Jul 26 '22 21:07 jesselucas

Thanks for the report - this should definitely be a nicer error message, I will look into improving it.

andrewchambers avatar Jul 26 '22 23:07 andrewchambers

The error message has been improved and will be in the next release.

andrewchambers avatar Sep 27 '22 00:09 andrewchambers

@andrewchambers thank you!

jesselucas avatar Sep 27 '22 00:09 jesselucas