pajowu / signal-backup-decode

Decode Signal Backups
GNU General Public License v3.0
217 stars 18 forks source link

SQLite error: object name reserved for internal use: sqlite_sequence #16

Closed frans-fuerst closed 5 years ago

frans-fuerst commented 5 years ago

Using signal-backup-decode 0.1.3, Signal 4.43.8

I ran

~/.cargo/bin/signal-backup-decode ../import/signal-2019-07-14-11-55-59.backup --password_file pw --sqlite-path signal-2019-07-14-11-55-59.db

and got

Database Version: 21d 1 frames, 0 attachments, 54 bytes into file
thread 'main' panicked at 'Failed to prepare statement: CREATE TABLE sqlite_sequence(name,seq): Error { code: Some(1), message: Some("object name reserved for internal use: sqlite_sequence") }', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

BT:

stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::continue_panic_fmt
   6: rust_begin_unwind
   7: core::panicking::panic_fmt
   8: core::result::unwrap_failed
   9: signal_backup_decode::decode_backup
  10: signal_backup_decode::main
  11: std::rt::lang_start::{{closure}}
  12: std::panicking::try::do_call
  13: __rust_maybe_catch_panic
  14: std::rt::lang_start_internal
  15: main
  16: __libc_start_main
  17: _start

Are there prerequisites I'm missing? I wonder why no one else has this problem :)

btw, when I run signal-backup-decode without --sqlite-path I get

error: The following required arguments were not provided:
    --sqlite-path <sqlite_path>
frans-fuerst commented 5 years ago

My fault - I thought the patch mentioned in https://github.com/pajowu/signal-backup-decode/issues/13 has been applied to the latest version you get via cargo install already. I've checked out and built my first rust project now and everything's fine :)