-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Signal won't start after upgrade to 1.15.0 #2609
Comments
I believe this question suits here aswell:
|
@2-4601 @scottnonnenberg-signal How may I check whether it had already started migrating messages over? I will note that around this time I ran out of disk space on my machine, so maybe that had something to do with it. |
I just had this happen on my ubuntu 16.04 machine with lots of old messages to transfer over
I can't tell what my version is, but I just got here from apt-get update.
|
The configuration directories listed here are where Signal Desktop stores its data: https://github.com/signalapp/Signal-Desktop/blob/development/CONTRIBUTING.md#the-staging-environment In that folder, there is a Anyone running into this should probably contact support@signal.org. If you have backups of that config directory, maybe that will have the decryption key, or maybe it's something simple and we can recover things. But the worst case might be loss of everything in that encrypted database. |
I've got a single Nothing interesting in the logs past what I've already posted |
@scottnonnenberg-signal My
|
Just happened to me as well, but on beta, the database migrated days (weeks?) ago and everything worked okay. I'm on 1.15.3-beta1, updated the day it came out.
|
@kpuljek That error means that your SQLCipher decryption key, stored in You are the fourth report of this issue that we've seen, and we still don't understand why it's happening. Perhaps that I've looked at the codepath to load and save this key bit of data, and every time we write to disk we read from it immediately beforehand. If we ever try to write a value other than the key, and the previous file isn't found, we would write a file without the key. The question is: when might this happen? |
My computer lost power around the time of the update (I can't confirm it was actually during since I didn't notice right away) and it sounds like Jason's filled up his hard drive. Maybe we got unlucky and interrupted the migration in the middle. |
Last night I was using Signal on my computer, had dinner, then turned off my PC. No updates were happening, I didn't install any new applications, I only watched local video files. Signal was running when I powered off the PC, but it almost always is. I have around 60gb of free space on my disk. The mentioned config.json says it was last modified today when I tried to run Signal again, so something did happen. It contains a key, but I can't say if it was changed. |
@kpuljek If you could provide your full log, that might help us track it down. It sounds like it might be some sort of interesting race condition on close of the app in your case. If you don't want to post it here, you can always send it to support@signal.org or directly to me. |
as a work-around, removing the Signal profile seems to work; though that does require re-configuring the app etc etc. On linux this is .config/Signal. {
"key": "1234abc<redacted>123abc"
} 'file' thought that at least Database.db was an sqlite v3 database. As for the error log in my log, it's as in the OP where it just said SQLite file is not a database. On the new version I see 'window' is added as a new json key, but that's about it. P.S. the json is missing an end-of-line at the end of the file after the last curly brace. Highly annoying as I was looking for the closing bracket but couldn't see it. |
@oliv3r Usually you also see this in that file:
Can you talk about what happened with your machine, and with your filesystem around the time of the error? Or, better, the last time Signal Desktop ran successfully before starting up with an error? |
yeah, exactly that key, sorry for not writing it out, I figured the mention of the window in the new file was enough. as for the broken file, i pasted the entire content :) so no, the window key was missing entirely, only the key key was in there. I think the disk was full during the update, while signal was still running. What IS surprising however is that a) the json IS valid, only the window key was missing, so its not like it failed to write the file. As for other signal profile file-corruption, I don't know. I did save the profile (mv rather then rm) so I can look into things if needed. |
@oliv3r What you're seeing if you're getting the 'not a database' error is what is written to that file on startup, not what was written when the migration happened. So the key in your config.json is a newly-generated one, not the original one that will decrypt your SQLCipher database. If your disk was full, then maybe we tried to write to disk and the file became corrupt or empty, and so we generated a new key on the next startup? |
I suppose so; anyway, just wanted to report and pitch in :) the situation is resolved as freeing space and wiping the profile fixed it. ideally however the program should prevent this from happening of course |
Just noting that this also happened to me on a Windows 10 install a couple of days ago, but I didn't have time to look into it until now. I honestly can't remember if it coincided with a version update or not. Other desktop installs on other machines remain fine. I tried reinstalling the app (without uninstalling or wiping the profile), with no luck. I have the same messages as above in the log file. My config.json also is 4 lines with just the "key" entry. Note that when I run it, two "Signal" processes remain running indefinitely (unless I kill them)--see image at end. They generally don't use any CPU. Let me know if there's something I can do to help track this down. If I can avoid wiping the db on this machine, it would be nice, though it will be fine if I have to do so. Thanks! |
@jef-pearlman Thanks for providing your experience. Your only way out of this decryption key problem is if you have a backup of that config.json file with the original decryption key in it. Otherwise you'll have to wipe the configuration and start over. |
Got it--thanks! Is there a known cause, or anything I can do to help track it down before I reset it? |
@jef-pearlman Before your delete the config directory, you could send us its logs subdirectory. That might help us track it down. Feel free to reach out to support@signal.org or directly to me with that. |
I encountered the same problem-but it was after windows 10 crashed and not during a migration. Restoring config.json from backup fixed it. |
v1.16.x should resolve this; we've changed how we handle user configuration files. Future readers: Please enter a new bug if you encounter this again. |
Bug description
I can no longer launch Signal Desktop after upgrading to 1.15.0
Steps to reproduce
Actual result:
See this
See this in logs
Expected result:
Expect to see a window and messages.
Screenshots
Platform info
Signal version:
1.15.0
Operating System:
Linked device version:
iPhone SE, iOS version 1.3.3
Link to debug log
Can send
log.log
files privately by request.The text was updated successfully, but these errors were encountered: