Joplin: Terminal application cannot find spellfix.so

Created on 21 Sep 2020  ·  10Comments  ·  Source: laurent22/joplin

After updating the joplin terminal application to version 1.1.7, when I try to run it, I get the following error:

❯ joplin
events.js:291
      throw er; // Unhandled 'error' event
      ^

[Error: SQLITE_ERROR: ./build/lib/sql-extensions/spellfix.so: cannot open shared object file: No such file or directory
Emitted 'error' event on Database instance at:
] {
  errno: 1,
  code: 'SQLITE_ERROR'
}

The file actually resides in ~/.joplin-bin/lib/node_modules/joplin/lib/sql-extensions/spellfix.so but that's not the path that gets reported. If I create the folder structure in the current directory with a symlink to the so-file, joplin starts just fine.

Environment

Joplin version: 1.1.7
Platform: terminal
OS specifics: Ubuntu 15.04.5 LTS x86_64
Node version: 14.11.0
Npm version: 6.14.8

Steps to reproduce

  1. Update the joplin terminal app by doing NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin
  2. Run the joplin terminal app

Describe what you expected to happen

Joplin should launch normally.

Logfile

File .config/joplin/log.txt:
2020-09-21 14:29:35: "Profile directory: /home/johan/.config/joplin"

bug

Most helpful comment

Actually, it was commit 6aca233 which fixed it. I already had the latest version of libsqlite3-dev installed.

All 10 comments

I am seeing this as well on Ubuntu 20.04 x86_64 and npm 6.14.4

I updated my post with node/npm versions as well.

On my Raspberry Pi, I get the same error, and the app doesn't start even with a directory structure containing spellfix.so in the current dir. That instance is installed in my home folder using nvm though, so it's installed using:

npm i -g joplin

and ends up in:

/home/johan/.nvm/versions/node/v14.8.0/bin/joplin

The environment for that computer is:

Joplin version: 1.1.7
Platform: terminal
OS specifics: Manjaro ARM Linux aarch64
Node version: 14.8.0
Npm version: 6.14.7

File .config/joplin/log.txt:
2020-09-21 19:24:09: "Profile directory: /home/johan/.config/joplin"

Same here. Pop!_OS 20.04 LTS x64 and npm 6.14.8

same here
Linux pop-os 5.0.0-21-generic #22+system76-Ubuntu
npm 6.13.0

Same on macos

facing the same issue on arch kernel 5.8.10

Fixed with :
$ sudo apt-get install libsqlite3-dev

then reinstalled joplin, and worked.

Actually, it was commit 6aca233 which fixed it. I already had the latest version of libsqlite3-dev installed.

I can confirm that the issue is resolved in version 1.2.1 for both my Ubuntu laptop and my Manjaro raspberry pi.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GuyOlivier picture GuyOlivier  ·  37Comments

gituser94x54102 picture gituser94x54102  ·  38Comments

tessus picture tessus  ·  50Comments

dimyself picture dimyself  ·  308Comments

foxmask picture foxmask  ·  46Comments