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

Failed to copy in memory database to file [..] near "INTO": syntax error: Error code 1: SQL error or missing database. #41

Open
frans-fuerst opened this issue Mar 21, 2021 · 3 comments

Comments

@frans-fuerst
Copy link

On tag v0.2.1, after building and installing and running

signal-backup-decode --force --password-file pw-2021-03-21  signal-2021-03-21-16-51-07.backup 

I'm getting

[ERROR] Failed to copy in memory database to file: signal-2021-03-21-16-51-07/signal_backup.db: near "INTO": syntax error: Error code 1: SQL error or missing database.

with both - a new backup file I made right now on Signal (Android) 5.4.12 and an older one from 2019-07-24 (I don't know the exact version any more, but I can try to narrow it down if of any help.)

I tried adding --output-type RAW and build from master as well as some prior commits all with the same result.

@pajowu
Copy link
Owner

pajowu commented Mar 21, 2021

Oh, interesting. This seems to be an issue when running VACUUM INTO {OUTPUT_FILENAME}. Which version of sqlite3 is installed on your system? Does the path you're exporting to include any special characters?

@pajowu
Copy link
Owner

pajowu commented Mar 21, 2021

It seems that VACUUM INTO was added in sqlite 3.27 (https://www.sqlite.org/releaselog/3_27_1.html). Could you try upgrading to a sqlite version newer than 3.27 an check if the issue still exists there?

@frans-fuerst
Copy link
Author

On Fedora 30 SQLite is being shipped in version 3.26, so this seems to be the problem. On Fedora 33 version 3.34.1 is installed and the decryption works

Is there a possibility for you to let cargo check for v3.27+? (fyi: on RedHat based systems the packack is called sqlite-devel)?

Maybe in that step you could also add cargo as requirement in your Readme file

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