Signal Desktop doesn't start anymore

Signal Desktop doesn’t start anymore, probably after recent updates.


~> signal-desktop 
Set Windows Application User Model ID (AUMID) { appUserModelId: 'org.whispersystems.signal-desktop' } 
NODE_ENV production 
NODE_CONFIG_DIR /usr/lib64/signal-desktop/resources/app.asar/config 
NODE_CONFIG {} 
ALLOW_CONFIG_MUTATIONS undefined 
HOSTNAME localhost 
NODE_APP_INSTANCE undefined 
SUPPRESS_NO_CONFIG_WARNING undefined 
SIGNAL_ENABLE_HTTP undefined 
userData: /home/giorgio/.config/Signal 
config/get: Successfully read user config file 
config/get: Successfully read ephemeral config file 
making app single instance 
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyUnhandled Error: Error: The module '/usr/lib64/signal-desktop/resources/app.asar.unpacked/node_modules/better-sql
ite3/build/Release/better_sqlite3.node' 
was compiled against a different Node.js version using 
NODE_MODULE_VERSION 89. This version of Node.js requires 
NODE_MODULE_VERSION 99. Please try re-compiling or re-installing 
the module (for instance, using `npm rebuild` or `npm install`). 
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18) 
    at Module.load (node:internal/modules/cjs/loader:988:32) 
    at Function.Module._load (node:internal/modules/cjs/loader:829:12) 
    at Module.require (node:internal/modules/cjs/loader:1012:19) 
    at require (node:internal/modules/cjs/helpers:94:18) 
    at Object.better_sqlite3.node (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28778:18) 
    at __webpack_require__ (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28890:42) 
    at module.exports (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:25558:16) 
    at Object../node_modules/better-sqlite3/lib/database.js (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:148:74) 
    at __webpack_require__ (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28890:42) 
Unhandled Error: Error: The module '/usr/lib64/signal-desktop/resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node' 
was compiled against a different Node.js version using 
NODE_MODULE_VERSION 89. This version of Node.js requires 
NODE_MODULE_VERSION 99. Please try re-compiling or re-installing 
the module (for instance, using `npm rebuild` or `npm install`). 
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18) 
    at Module.load (node:internal/modules/cjs/loader:988:32) 
    at Function.Module._load (node:internal/modules/cjs/loader:829:12) 
    at Module.require (node:internal/modules/cjs/loader:1012:19) 
    at require (node:internal/modules/cjs/helpers:94:18) 
    at Object.better_sqlite3.node (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28778:18) 
    at __webpack_require__ (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28890:42) 
    at module.exports (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:25558:16) 
    at Object../node_modules/better-sqlite3/lib/database.js (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:148:74) 
    at __webpack_require__ (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28890:42) 
**Unhandled Error**
**Error: The module '/usr/lib64/signal-desktop/resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node'**
**was compiled against a different Node.js version using**
**NODE_MODULE_VERSION 89. This version of Node.js requires**
**NODE_MODULE_VERSION 99. Please try re-compiling or re-installing**
**the module (for instance, using `npm rebuild` or `npm install`).**
**    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)**
**    at Module.load (node:internal/modules/cjs/loader:988:32)**
**    at Function.Module._load (node:internal/modules/cjs/loader:829:12)**
**    at Module.require (node:internal/modules/cjs/loader:1012:19)**
**    at require (node:internal/modules/cjs/helpers:94:18)**
**    at Object.better_sqlite3.node (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28778:18)**
**    at __webpack_require__ (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28890:42)**
**    at module.exports (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:25558:16)**
**    at Object../node_modules/better-sqlite3/lib/database.js (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:148:74)**
**    at __webpack_require__ (/usr/lib64/signal-desktop/resources/app.asar.unpacked/ts/sql/mainWorker.bundle.js:28890:42)**
giorgio@localhost:~> Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key[9355:0100/000000.973713:ERROR:sandbox_linux.cc(376)] Initiali
zeSandbox() called with multiple threads in process gpu-process. 






Hi Giorgio_os,

Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyUnhandled Error: Error: The module '/usr/lib64/signal-desktop/resources/app.asar.unpacked/node_modules/better-sql
ite3/build/Release/better_sqlite3.node' 
was compiled against a different Node.js version using 
NODE_MODULE_VERSION 89. This version of Node.js requires 
NODE_MODULE_VERSION 99. Please try re-compiling or re-installing 
the module (for instance, using `npm rebuild` or `npm install`). 

Interestingly, I wasn’t able to install signal-desktop after upgrade to 15.3. It was a missing dependency. I don’t remember what it was. Then I didn’t bother.
Now I tried again and it worked well immediated. I have noted it has pulled the following dependency:

**:~ #** zypper if nodejs-electron 
Loading repository data... 
Reading installed packages... 


Information for package nodejs-electron: 
---------------------------------------- 
Repository     : Signal 
Name           : nodejs-electron 
Version        : 16.0.9-lp153.56.1 
Arch           : x86_64 
Vendor         : obs://build.opensuse.org/network 
Installed Size : 287.4 MiB 
Installed      : Yes (automatically) 
Status         : up-to-date 
Source package : nodejs-electron-16.0.9-lp153.56.1.src 
Summary        : Build cross platform desktop apps with JavaScript, HTML, and CSS 
Description    :  
    Nodejs application: Build cross platform desktop apps with JavaScript, HTML, and CSS 

There’s a lot of other packages “nodejs…” of which I haven’t got any other installed. Maybe you have installed a conflicting version?
My signal version:

**~ #** zypper if signal-desktop 
Loading repository data... 
Reading installed packages... 


Information for package signal-desktop: 
--------------------------------------- 
Repository     : Signal 
Name           : signal-desktop 
Version        : 5.33.0-lp153.7.2 
Arch           : x86_64 
Vendor         : obs://build.opensuse.org/network 
Installed Size : 231.5 MiB 
Installed      : Yes 
Status         : up-to-date 
Source package : signal-desktop-5.33.0-lp153.7.2.src 
Summary        : Fast, simple and secure messaging app from your desktop 
Description    :  
    Signal Desktop is an Electron application that links with your Signal Android 
    or Signal iOS app.

You might check the versions and (force) reinstall them. Maybe remove other “nodejs…” packages if you don’t need them.

Strange things happens.
My version is 5.24 but it seems there isn’t updates available. Removed 5.24 and tried to install again version 5.33 is available!
Anyway there is a conflict:


#### YaST2 conflicts list - generated 2022-03-02 11:13:05 ####

the to be installed signal-desktop-5.33.0-lp153.7.2.x86_64 requires 'libvips42 >= 8.11.3', but this requirement cannot be provided
not installable providers: libvips42-8.12.1-lp153.85.1.x86_64[openSUSE_Leap_15.3]
     ] install libvips42-8.12.1-lp153.85.1.x86_64 from vendor obs://build.opensuse.org/graphics
  replacing libvips42-8.10.5-bp153.1.1.x86_64 from vendor openSUSE

     ] do not install signal-desktop-5.33.0-lp153.7.2.x86_64

     ] break signal-desktop-5.33.0-lp153.7.2.x86_64 by ignoring some of its dependencies

#### YaST2 conflicts list END ###

For sure! :wink:

As a standard YaST software management doesn’t allow vendor change unless you tell it to do so. That’s why the conflict is show, and there’s also a solution:

 ] install libvips42-8.12.1-lp153.85.1.x86_64 from vendor obs://build.opensuse.org/graphics
  replacing libvips42-8.10.5-bp153.1.1.x86_64 from vendor openSUSE

Click on this solution and let YaST check again. Unless there’s anothere application desperately needing the older version of this library you should be fine. Otherwise you can post results here again.

Installed Signal-desktop and libvips42-8.12.1-lp153.85.1.x86_64.rpm.
Signal desktop works. Hope all other software too. We’ll see.

Glad it worked! :slight_smile: