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

Migrating the user profile to another computer by copying ~/.config/Signal doesn't work anymore #7060

Closed
2 tasks done
sgmihai opened this issue Oct 19, 2024 · 3 comments
Closed
2 tasks done

Comments

@sgmihai
Copy link

sgmihai commented Oct 19, 2024

Using a supported version?

  • I have searched searched open and closed issues for duplicates.
  • I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.

Overall summary

I used to be able to move my signal profile when switching laptops by simply copying the signal folder from .config and it would work. Now i get a
"Database startup error:

Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
at getSQLKey ([REDACTED]/app/main.js:1274:39)
at initializeSQL ([REDACTED]/app/main.js:1323:11)
at App. ([REDACTED]/app/main.js:1545:20)

App Version: 7.29.0
OS: linux"

I use kdeplasma and I have "safeStorageBackend": "kwallet6" in config.json

I have googled and found out it's some recent change in signal encryption key storage, but couldn't figure out how to fix it. Already wasted 1.5 hours on this. I have my own disk encryption, this kwallet nonsense is driving me nuts, from all the times I had trouble migrating stuff.

Please tell me how to migrate profile, so I can nuke the old install. Maybe write an official guide for this that easily googleable. Thanks.

Steps to reproduce

copy Signal folder from ~/.config to another computer and start Signal

Expected result

To work

Actual result

Doesn't work

Screenshots

No response

Signal version

7.29.0

Operating system

Archlinux

Version of Signal on your phone

No response

Link to debug log

No response

@minosimo
Copy link

You need to migrate the database decryption key as well. Check in the keystore, which I believe is called kwallet on KDE, for a password called "Chromium Safe Storage" and with the attribute "application Signal". There is a chance it doesn't say "Signal" when you click on it, but through process of elimination it should be possible to find the right key.

You can either copy over just that entry, or you can migrate your entire keystore by copying the files in ~/.local/share/keyrings/, just if you go that route be careful you're not overwriting anything you need on the new machine.

@sgmihai
Copy link
Author

sgmihai commented Oct 20, 2024

Thank you, that worked. It says "Chromium Safe Storage" and that's it, no mention of anything about Signal. I just copied the key over the old one there, and it worked. Would have been solved without opening an issue if I knew that was signal's, since I also happen to have chromium installed.

@jamiebuilds-signal
Copy link
Member

I'm not sure why it's being labeled Chromium Safe Storage, but glad it worked. Otherwise we don't officially support manually copying data directories from one device to another, my only guidance would be to never use the original device/data directory again

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

No branches or pull requests

3 participants