signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.68k stars 2.68k forks source link

Database Error prevents Signal-Desktop to start #6970

Open ronidee opened 3 months ago

ronidee commented 3 months ago

Using a supported version?

Overall summary

Seemingly out of the blue Signal always shows a database error popup whenever I attempt to start the application. It prompts me to quit or to delete all data, i.e. I can't use Signal without deleting my data (which I'm trying to avoid).

Steps to reproduce

-

Expected result

-

Actual result

-

Screenshots

I receive this error when trying to start Signal: image

When I click "Copy error and quit", sometimes this second error message appears: Screenshot from 2024-08-08 12-02-56

Signal version

7.19.0 (deb version. Not flatpak, not snap)

Operating system

Ubuntu 23.10

Version of Signal on your phone

7.12.3

Link to debug log

https://pastebin.com/cnikkkFs

wtogami commented 1 month ago

Is there really no way to restore my history? I don't want to lose years of chat.

salim-b commented 1 month ago

Is there really no way to restore my history? I don't want to lose years of chat.

See this comment. You will need to have a backup of your plain-text key to restore your history, though.

wtogami commented 1 month ago

See this comment. You will need to have a backup of your plain-text key to restore your history, though.

Because it encrypted the history with a key that was subsequently lost?

salim-b commented 1 month ago

Because it encrypted the history with a key that was subsequently lost?

Exactly, see my comment.

deeengan commented 1 month ago

If anybody is on NixOS unstable with home manager, I was able to resolve the error by merely:

  1. commenting out Signal pkg
  2. rebuild switch
  3. uncommenting
  4. rebuild switch
  5. I also disconnected my device (with the error) and was able to reattach without issue

my chats were untouched

JulioQc commented 1 month ago

None of the proposed solutions here worked on PopOS 22.04 (6.9.3 kernel); each restart of signal reports a corrupted DB. Switched to their official apt repos and everything working fine now.

How are flatpaks still a thing these days I wonder lol

wiryonolau commented 1 month ago

so this problem has nothing to do with snap version, I've been using and stay in 7.15.0 but as of today it show the version is expired and cannot send any message

salim-b commented 1 month ago

Moving from snap to flatpack worked for you - do you have any idea why? Perhaps it has something to do with how each of those systems mediates access to privileged storage locations used by Electron's safeStorage API?

@scottnonnenberg-signal As you probably noticed, this issue surfaced in the Flatpak version of Signal as well as soon as it started to grant permission to use the OS keystore. Meanwhile we've learned that the underlying problem is Chromium (bundled by Electron) using the libsecret API in a Flatpak/Snap-incompatible way. I've tried to file a bug report for this over at the Chromium bug tracker. Maybe you'd like to have a look and add from your perspective if necessary?

digital-codes commented 1 month ago

@scottnonnenberg-signal As you probably noticed, this issue surfaced in the Flatpak version of Signal as well as soon as it started to grant permission to use the OS keystore. Meanwhile we've learned that the underlying problem is Chromium (bundled by Electron) using the libsecret API in a Flatpak/Snap-incompatible way. I've tried to file a bug report for this over at the Chromium bug tracker. Maybe you'd like to have a look and add from your perspective if necessary?

... Would explain why signal runs when compiled locally. Tried yesterday with 7.26.0 on Fedora 39. Seems to work ...

corsac-s commented 1 month ago

For people experiencing the issue under Firejail, adding dbus-user.talk org.freedesktop.secrets to /etc/firejail/signal-desktop.profile seems to help.

corsac-s commented 1 month ago

Also see https://github.com/netblue30/firejail/pull/6498 for the relevant profile

ShyneTurtle commented 1 month ago

Switching to --password-store=basic prevents me from launching signal, telling me that the auth method changed and i need to launch signal using the old password store (gnome-libsecret) but that means i still have the login issue.

salim-b commented 1 month ago

Switching to --password-store=basic prevents me from launching signal, telling me that the auth method changed

You need to delete Signal's data manually in order to be able to switch the auth method, either via flatpak uninstall --delete-data org.signal.Signal or via rm -r ~/.var/app/org.signal.Signal (supposed you're using the default user-config path).

launch signal using the old password store (gnome-libsecret) but that means i still have the login issue.

https://github.com/flathub/org.signal.Signal/pull/756 will fix the issue with gnome-libsecret (at least for me and others). You could give it a try and report back in that issue.

ronidee commented 1 month ago

None of the proposed solutions here worked on PopOS 22.04 (6.9.3 kernel); each restart of signal reports a corrupted DB. Switched to their official apt repos and everything working fine now.

How are flatpaks still a thing these days I wonder lol

I'm actually using the deb version and the error still persists. I didn't try deleting all data however, because I'm trying to avoid that. But seeing this issue is two months old now, maybe I'll have to delete my data anyway.

waynongithub commented 1 month ago

My current understanding is that:

DLa-4 commented 1 month ago

Hello Signal bros and sisters! Windows 11 / Signal Desktop - database error since early August 2024 (since the last update maybe late July). Just like some of the users, I was hit by the "no access" due to database error, I reached out to Signal team, after a correspondence I was advised to wait for a possible fix for future updates. My issue: I don't use my Phone Signal due an issue with my phone, so I don't have access now (no update since 2023 there). So my use for months has been exclusively desktop. I am terrified of trying an uninstall and re-install for fear of using chat history (2 years). My question: ---> Is there a way to update my Signal Desktop version right now without further compromising the account / hist log? I still can't open it just like 2 months ago. Please help me fix this issue bcs it's important for me and my family. Thanks a lot!

Signal Desktop_First error_Database error Signal Desktop_Second error_Unhandled Promise Rejection

architectlin commented 1 month ago

Here under fedora 41 kde a new installation singal via flathub it does not work either

Debug: Using password store: gnome-libsecret Debug: Will run signal with the following arguments: --password-store=gnome-libsecret Debug: Additionally, user gave: --password-store=basic Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' } NODE_ENV production NODE_CONFIG_DIR /app/Signal/resources/app.asar/config NODE_CONFIG {} ALLOW_CONFIG_MUTATIONS undefined HOSTNAME fedora.fritz.box NODE_APP_INSTANCE undefined SUPPRESS_NO_CONFIG_WARNING undefined SIGNAL_ENABLE_HTTP undefined userData: /home/stefan/.var/app/org.signal.Signal/config/Signal config/get: Successfully read user config file config/get: Successfully read ephemeral config file making app single instance LaunchProcess: failed to execvp: xdg-settings LaunchProcess: failed to execvp: xdg-settings {"level":30,"time":"2024-10-10T12:23:24.222Z","msg":"got fast localeOverride setting null"} {"level":30,"time":"2024-10-10T12:23:24.224Z","msg":"app.ready: hour cycle preference: UnknownPreference"} {"level":30,"time":"2024-10-10T12:23:24.224Z","msg":"app.ready: preferred system locales: de-DE, de"} {"level":30,"time":"2024-10-10T12:23:24.224Z","msg":"locale: Supported locales: af-ZA, ar, az-AZ, bg-BG, bn-BD, bs-BA, ca, cs, da, de, el, en, es, et-EE, eu, fa-IR, fi, fr, ga-IE, gl-ES, gu-IN, he, hi-IN, hr-HR, hu, id, it, ja, ka-GE, kk-KZ, km-KH, kn-IN, ko, ky-KG, lt-LT, lv-LV, mk-MK, ml-IN, mr-IN, ms, my, nb, nl, pa-IN, pl, pt-BR, pt-PT, ro-RO, ru, sk-SK, sl-SI, sq-AL, sr, sv, sw, ta-IN, te-IN, th, tl-PH, tr, ug, uk-UA, ur, vi, yue, zh-CN, zh-HK, zh-Hant"} {"level":30,"time":"2024-10-10T12:23:24.224Z","msg":"locale: Preferred locales: de-DE, de"} {"level":30,"time":"2024-10-10T12:23:24.225Z","msg":"locale: Locale Override: null"} {"level":30,"time":"2024-10-10T12:23:24.228Z","msg":"locale: Matched locale: de"} {"level":40,"time":"2024-10-10T12:23:24.292Z","msg":"intl.onWarn [@formatjs/intl] \"defaultRichTextElements\" was specified but \"message\" was not pre-compiled. \nPlease consider using \"@formatjs/cli\" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution"} {"level":30,"time":"2024-10-10T12:23:24.292Z","msg":"locale: Text info direction for de: ltr"} {"level":50,"time":"2024-10-10T12:23:24.293Z","msg":"Detected change in safeStorage backend, can't decrypt DB key (previous: gnome_libsecret, current: basic_text)"} {"level":30,"time":"2024-10-10T12:23:24.293Z","msg":"getSystemTraySetting got value DoNotUseSystemTray"} {"level":30,"time":"2024-10-10T12:23:24.294Z","msg":"getSystemTraySetting returning DoNotUseSystemTray"} {"level":30,"time":"2024-10-10T12:23:24.295Z","msg":"app ready"} {"level":30,"time":"2024-10-10T12:23:24.296Z","msg":"starting version 7.24.1"} {"level":30,"time":"2024-10-10T12:23:24.296Z","msg":"media access status [object Undefined] [object Undefined]"} {"level":30,"time":"2024-10-10T12:23:24.299Z","msg":"got fast theme-setting value system"} {"level":30,"time":"2024-10-10T12:23:24.312Z","msg":"got fast theme-setting value system"} {"level":30,"time":"2024-10-10T12:23:24.312Z","msg":"got fast spellcheck setting true"} {"level":50,"time":"2024-10-10T12:23:24.313Z","msg":"visibleOnAnyScreen: windowOptions didn't have valid bounds fields"} {"level":30,"time":"2024-10-10T12:23:24.313Z","msg":"Location reset needed"} {"level":30,"time":"2024-10-10T12:23:24.313Z","msg":"Initializing BrowserWindow config: {\"show\":false,\"width\":800,\"height\":610,\"minWidth\":300,\"minHeight\":200,\"autoHideMenuBar\":false,\"titleBarStyle\":\"default\",\"backgroundColor\":\"#121212\",\"webPreferences\":{\"devTools\":false,\"spellcheck\":true,\"enableBlinkFeatures\":\"CSSPseudoDir,CSSLogical\",\"enablePreferredSizeMode\":true,\"nodeIntegration\":false,\"nodeIntegrationInWorker\":false,\"sandbox\":false,\"contextIsolation\":true,\"preload\":\"[REDACTED]/preload.bundle.js\",\"backgroundThrottling\":true,\"disableBlinkFeatures\":\"Accelerated2dCanvas,AcceleratedSmallCanvases\"},\"icon\":\"[REDACTED]/images/signal-logo-desktop-linux.png\"}"} {"level":30,"time":"2024-10-10T12:23:24.462Z","msg":"spellcheck: user locales: [\"de-DE\",\"de\"]"} {"level":30,"time":"2024-10-10T12:23:24.462Z","msg":"spellcheck: available spellchecker languages: [\"af\",\"bg\",\"ca\",\"cs\",\"cy\",\"da\",\"de\",\"de-DE\",\"el\",\"en\",\"en-AU\",\"en-CA\",\"en-GB\",\"en-GB-oxendict\",\"en-US\",\"es\",\"es-419\",\"es-AR\",\"es-ES\",\"es-MX\",\"es-US\",\"et\",\"fa\",\"fo\",\"fr\",\"fr-FR\",\"he\",\"hi\",\"hr\",\"hu\",\"hy\",\"id\",\"it\",\"it-IT\",\"ko\",\"lt\",\"lv\",\"nb\",\"nl\",\"pl\",\"pt\",\"pt-BR\",\"pt-PT\",\"ro\",\"ru\",\"sh\",\"sk\",\"sl\",\"sq\",\"sr\",\"sv\",\"ta\",\"tg\",\"tr\",\"uk\",\"vi\"]"} {"level":30,"time":"2024-10-10T12:23:24.462Z","msg":"spellcheck: setting languages to: [\"de-DE\",\"de\"]"} 2024-10-10 14:23:24.978: ERROR CORE sqlcipher_page_cipher: hmac check failed for pgno=1 2024-10-10 14:23:24.978: ERROR CORE sqlite3Codec: error decrypting page 1 data: 1 2024-10-10 14:23:24.978: ERROR CORE sqlcipher_codec_ctx_set_error 1 {"level":40,"time":"2024-10-10T12:23:24.978Z","msg":"MainSQL: Database log code=26: file is not a database in \"PRAGMA journal_mode = WAL\""} {"level":30,"time":"2024-10-10T12:23:24.979Z","msg":"MainSQL: migrateDatabase: Migration without cipher change failed"} 2024-10-10 14:23:25.054: ERROR CORE sqlcipher_page_cipher: hmac check failed for pgno=1 2024-10-10 14:23:25.054: ERROR CORE sqlite3Codec: error decrypting page 1 data: 1 2024-10-10 14:23:25.054: ERROR CORE sqlcipher_codec_ctx_set_error 1 {"level":40,"time":"2024-10-10T12:23:25.055Z","msg":"MainSQL: Database log code=26: statement aborts at 2: [PRAGMA user_version] file is not a database"} {"level":50,"time":"2024-10-10T12:23:25.055Z","msg":"MainSQL: Database startup error: SqliteError: file is not a database\n at Database.pragma ([REDACTED]/node_modules/@signalapp/better-sqlite3/lib/methods/pragma.js:11:31)\n at getUserVersion ([REDACTED]/ts/sql/util.js:132:13)\n at migrateSchemaVersion ([REDACTED]/ts/sql/Server.js:404:54)\n at openAndMigrateDatabase ([REDACTED]/ts/sql/Server.js:436:5)\n at openAndSetUpSQLCipher ([REDACTED]/ts/sql/Server.js:458:14)\n at initialize ([REDACTED]/ts/sql/Server.js:496:10)\n at MessagePort.<anonymous> ([REDACTED]/ts/sql/mainWorker.js:69:41)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)\n at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)"} {"level":50,"time":"2024-10-10T12:23:25.056Z","msg":"Failed to get zoom factor {\"name\":\"SqliteError\"}"} {"level":30,"time":"2024-10-10T12:23:25.535Z","msg":"got fast theme-setting value system"} {"level":50,"time":"2024-10-10T12:23:26.455Z","msg":"sql.initialize was unsuccessful; returning early"} {"level":30,"time":"2024-10-10T12:23:26.456Z","msg":"close event {\"readyForShutdown\":false,\"shouldQuit\":false}"} {"level":30,"time":"2024-10-10T12:23:26.456Z","msg":"maybeRequestCloseConfirmation: Checking to see if close confirmation is needed"} {"level":50,"time":"2024-10-10T12:23:27.893Z","msg":"onDatabaseError: Quitting application"} {"level":30,"time":"2024-10-10T12:23:27.895Z","msg":"main window closed event"} {"level":30,"time":"2024-10-10T12:23:27.896Z","msg":"quit event {\"hasEventBeenPrevented\":false,\"windowCount\":0,\"mainWindowExists\":false}"} {"level":50,"time":"2024-10-10T12:23:27.898Z","msg":"Error occurred in handler for 'sql-channel:read': {\"name\":\"SqliteError\"}"}

bermeitinger-b commented 1 month ago

Please report this to the Flatpak repo. Also, you can see that you're using two command line switches.

michael10101 commented 4 weeks ago

What is the situation on this issue? Can I upgrade my signal version on Flatpak? I can't try because I have too many messages...

I lock my Flatpak version locally. It dos not update until I allow it manually. I am checking this task everyday.

al12gamer commented 2 weeks ago

I've been seeing this issue regularly on Fedora 40 and Fedora 41 as well. I ended up completely moving some conversations from Signal to Matrix because it was interfering with productivity.

AronGahagan commented 1 week ago

I encountered this issue on NixOS immediately after enabling wayland and sway. @deeengan 's fix above worked like a charm. Nothing lost.

gantryyork commented 1 week ago

This is a long thread. I don't see the "fix above". Could someone clearly state the fix?

I've installed via FlatPak on Pop_OS+Cosmic.

AronGahagan commented 1 week ago

@gantryyork - the fix was particularly for NixOS, and it is here.

tech42676 commented 4 days ago

I am having this same problem on Fedora 40 Cinnamon. I emailed support.signal.org/error with no response yet. If i click on copy error and quit, nothing copies. Only option is to delete data and restart. If I do, I have to re-connect with singal mobile via the QR code. If I quit the app, same error again. I am using flatpak latest version from 5 days ago.

gantryyork commented 4 days ago

@tech42676 exactly the same for me. For some time @scottnonnenberg-signal was replying. I assume he is a signal developer. @scottnonnenberg-signal is anyone working on this? How about an update.

scottnonnenberg-signal commented 4 days ago

@tech42676 @gantryyork A screenshot of the error dialog would be useful, even if 'copy error' doesn't work. Also please know that the flatpak installer isn't an official maintained way to use Signal Desktop, so you'd need to reach out its maintainer.

tech42676 commented 4 days ago

@scottnonnenberg-signal @gantryyork Screenshot from 2024-11-18 17-15-00
Screenshot from 2024-11-18 17-30-59

here is a screenshot, Also, here is my terminal if I start it that way up until I get the error message

$ flatpak run org.signal.Signal Debug: Using password store: gnome-libsecret Debug: Will run signal with the following arguments: --password-store=gnome-libsecret Debug: Additionally, user gave: Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' } NODE_ENV production NODE_CONFIG_DIR /app/Signal/resources/app.asar/config NODE_CONFIG {} ALLOW_CONFIG_MUTATIONS undefined HOSTNAME fedora NODE_APP_INSTANCE undefined SUPPRESS_NO_CONFIG_WARNING undefined SIGNAL_ENABLE_HTTP undefined userData: /home/jd/.var/app/org.signal.Signal/config/Signal config/get: Successfully read user config file config/get: Successfully read ephemeral config file making app single instance LaunchProcess: failed to execvp: xdg-settings LaunchProcess: failed to execvp: xdg-settings Gtk-Message: 17:18:19.735: Failed to load module "xapp-gtk3-module" {"level":30,"time":"2024-11-18T22:18:19.942Z","msg":"got fast localeOverride setting null"} {"level":30,"time":"2024-11-18T22:18:19.943Z","msg":"app.ready: hour cycle preference: UnknownPreference"} {"level":30,"time":"2024-11-18T22:18:19.943Z","msg":"app.ready: preferred system locales: en-US, en"} {"level":30,"time":"2024-11-18T22:18:19.944Z","msg":"locale: Supported locales: af-ZA, ar, az-AZ, bg-BG, bn-BD, bs-BA, ca, cs, da, de, el, en, es, et-EE, eu, fa-IR, fi, fr, ga-IE, gl-ES, gu-IN, he, hi-IN, hr-HR, hu, id, it, ja, ka-GE, kk-KZ, km-KH, kn-IN, ko, ky-KG, lt-LT, lv-LV, mk-MK, ml-IN, mr-IN, ms, my, nb, nl, pa-IN, pl, pt-BR, pt-PT, ro-RO, ru, sk-SK, sl-SI, sq-AL, sr, sv, sw, ta-IN, te-IN, th, tl-PH, tr, ug, uk-UA, ur, vi, yue, zh-CN, zh-HK, zh-Hant"} {"level":30,"time":"2024-11-18T22:18:19.944Z","msg":"locale: Preferred locales: en-US, en"} {"level":30,"time":"2024-11-18T22:18:19.944Z","msg":"locale: Locale Override: null"} {"level":30,"time":"2024-11-18T22:18:19.946Z","msg":"locale: Matched locale: en"} {"level":40,"time":"2024-11-18T22:18:19.976Z","msg":"intl.onWarn [@formatjs/intl] \"defaultRichTextElements\" was specified but \"message\" was not pre-compiled. \nPlease consider using \"@formatjs/cli\" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution"} {"level":30,"time":"2024-11-18T22:18:19.977Z","msg":"locale: Text info direction for en: ltr"} {"level":30,"time":"2024-11-18T22:18:19.977Z","msg":"getSQLKey: decrypting key"} {"level":30,"time":"2024-11-18T22:18:19.978Z","msg":"getSystemTraySetting got value MinimizeToAndStartInSystemTray"} {"level":30,"time":"2024-11-18T22:18:19.978Z","msg":"getSystemTraySetting returning MinimizeToAndStartInSystemTray"} {"level":30,"time":"2024-11-18T22:18:19.979Z","msg":"app ready"} {"level":30,"time":"2024-11-18T22:18:19.980Z","msg":"starting version 7.33.0"} {"level":30,"time":"2024-11-18T22:18:19.980Z","msg":"media access status [object Undefined] [object Undefined]"} {"level":30,"time":"2024-11-18T22:18:19.982Z","msg":"got fast theme-setting value dark"} {"level":30,"time":"2024-11-18T22:18:19.990Z","msg":"got fast theme-setting value dark"} {"level":30,"time":"2024-11-18T22:18:19.990Z","msg":"got fast spellcheck setting true"} {"level":30,"time":"2024-11-18T22:18:19.990Z","msg":"visibleOnAnyScreen(window): x=68, y=594, width=936, height=610"} {"level":30,"time":"2024-11-18T22:18:19.990Z","msg":"visibleOnAnyScreen(display #21691932258133844): x=2560, y=240, width=1920, height=1200"} {"level":30,"time":"2024-11-18T22:18:19.990Z","msg":"visibleOnAnyScreen(display #1242272056007252): x=0, y=0, width=2560, height=1440"} {"level":30,"time":"2024-11-18T22:18:19.990Z","msg":"Initializing BrowserWindow config: {\"show\":false,\"width\":936,\"height\":610,\"minWidth\":300,\"minHeight\":200,\"autoHideMenuBar\":false,\"titleBarStyle\":\"default\",\"backgroundColor\":\"#121212\",\"webPreferences\":{\"devTools\":false,\"spellcheck\":true,\"enableBlinkFeatures\":\"CSSPseudoDir,CSSLogical\",\"enablePreferredSizeMode\":true,\"nodeIntegration\":false,\"nodeIntegrationInWorker\":false,\"sandbox\":false,\"contextIsolation\":true,\"preload\":\"[REDACTED]/preload.wrapper.js\",\"backgroundThrottling\":true,\"disableBlinkFeatures\":\"Accelerated2dCanvas,AcceleratedSmallCanvases\"},\"icon\":\"[REDACTED]/images/signal-logo-desktop-linux.png\",\"x\":68,\"y\":594}"} {"level":30,"time":"2024-11-18T22:18:20.038Z","msg":"spellcheck: user locales: [\"en-US\",\"en\"]"} {"level":30,"time":"2024-11-18T22:18:20.039Z","msg":"spellcheck: available spellchecker languages: [\"af\",\"bg\",\"ca\",\"cs\",\"cy\",\"da\",\"de\",\"de-DE\",\"el\",\"en\",\"en-AU\",\"en-CA\",\"en-GB\",\"en-GB-oxendict\",\"en-US\",\"es\",\"es-419\",\"es-AR\",\"es-ES\",\"es-MX\",\"es-US\",\"et\",\"fa\",\"fo\",\"fr\",\"fr-FR\",\"he\",\"hi\",\"hr\",\"hu\",\"hy\",\"id\",\"it\",\"it-IT\",\"ko\",\"lt\",\"lv\",\"nb\",\"nl\",\"pl\",\"pt\",\"pt-BR\",\"pt-PT\",\"ro\",\"ru\",\"sh\",\"sk\",\"sl\",\"sq\",\"sr\",\"sv\",\"ta\",\"tg\",\"tr\",\"uk\",\"vi\"]"} {"level":30,"time":"2024-11-18T22:18:20.039Z","msg":"spellcheck: setting languages to: [\"en-US\",\"en\"]"} 2024-11-18 17:18:20.232: ERROR CORE sqlcipher_page_cipher: hmac check failed for pgno=1 2024-11-18 17:18:20.232: ERROR CORE sqlite3Codec: error decrypting page 1 data: 1 2024-11-18 17:18:20.232: ERROR CORE sqlcipher_codec_ctx_set_error 1 {"level":40,"time":"2024-11-18T22:18:20.233Z","msg":"MainSQL: Database log code=26: file is not a database in \"PRAGMA journal_mode = WAL\""} {"level":30,"time":"2024-11-18T22:18:20.233Z","msg":"MainSQL: migrateDatabase: Migration without cipher change failed"} 2024-11-18 17:18:20.233: ERROR CORE sqlcipher_cipher_ctx_key_derive: error occurred from provider kdf generating encryption key 2024-11-18 17:18:20.233: ERROR CORE sqlcipher_codec_key_derive: error occurred deriving read_ctx key 2024-11-18 17:18:20.233: ERROR CORE sqlite3Codec: error occurred during key derivation: 1 2024-11-18 17:18:20.233: ERROR CORE sqlcipher_codec_ctx_set_error 1 {"level":40,"time":"2024-11-18T22:18:20.233Z","msg":"MainSQL: Database log code=7: statement aborts at 2: [PRAGMA user_version] out of memory"} {"level":50,"time":"2024-11-18T22:18:20.234Z","msg":"MainSQL: Database startup error: SqliteError: out of memory\n at Database.pragma ([REDACTED]/node_modules/@signalapp/better-sqlite3/lib/methods/pragma.js:11:31)\n at getUserVersion ([REDACTED]/ts/sql/util.js:142:13)\n at migrateSchemaVersion ([REDACTED]/ts/sql/Server.js:415:54)\n at openAndMigrateDatabase ([REDACTED]/ts/sql/Server.js:447:5)\n at openAndSetUpSQLCipher ([REDACTED]/ts/sql/Server.js:469:14)\n at initialize ([REDACTED]/ts/sql/Server.js:516:10)\n at MessagePort.<anonymous> ([REDACTED]/ts/sql/mainWorker.js:69:41)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)\n at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)"} {"level":50,"time":"2024-11-18T22:18:20.234Z","msg":"Failed to get zoom factor {\"name\":\"SqliteError\"}"} {"level":30,"time":"2024-11-18T22:18:20.571Z","msg":"got fast theme-setting value dark"} {"level":50,"time":"2024-11-18T22:18:21.633Z","msg":"sql.initialize was unsuccessful; returning early"} {"level":30,"time":"2024-11-18T22:18:21.633Z","msg":"close event {\"readyForShutdown\":false,\"shouldQuit\":false}"} {"level":30,"time":"2024-11-18T22:18:21.634Z","msg":"maybeRequestCloseConfirmation: Checking to see if close confirmation is needed"}

Thanks for having a look! Also, what is the official way for Fedora? I only see Debian linux on the website.

gantryyork commented 2 days ago

I'm using Pop_OS+Cosmic. The Cosmic Store only allows for the flatpak install (and it is packaged by the Signal Foundation). I went ahead and installed using apt. Signal Desktop works now.

JS1Dev commented 2 days ago

Same problem (Windows in my case), here's my log. If the DB can't be recovered, this seems like a pretty significant issue!

Database startup error:

Error: Error while decrypting the ciphertext provided to safeStorage.decryptString. at getSQLKey ([REDACTED]\app\main.js:1280:39) at initializeSQL ([REDACTED]\app\main.js:1329:11) at App. ([REDACTED]\app\main.js:1551:20)

App Version: 7.34.0 OS: win32