My YunoHost server
Hardware: VPS
YunoHost version: 11.2.4
I have access to my server : Through SSH | through the webadmin
If your request is related to an app, specify its name and version: Trilium Notes 0.60.4
Description of my issue
The module better_sqlite3 was compiled against a different nodejs version using version 93, this version of nodejs requires version 108.
Trilium Service Log:
-- Journal begins at Thu 2023-05-04 07:47:21 BST, ends at Tue 2023-09-12 14:29:07 BST. --
Sep 12 14:27:44 node[3543921]: was compiled against a different Node.js version using
Sep 12 14:27:44 node[3543921]: NODE_MODULE_VERSION 93. This version of Node.js requires
Sep 12 14:27:44 node[3543921]: NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
Sep 12 14:27:44 node[3543921]: the module (for instance, using `npm rebuild` or `npm install`).
Sep 12 14:27:44 node[3543921]: at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
Sep 12 14:27:44 node[3543921]: at Module.load (node:internal/modules/cjs/loader:1119:32)
Sep 12 14:27:44 node[3543921]: at Module._load (node:internal/modules/cjs/loader:960:12)
Sep 12 14:27:44 node[3543921]: at Module.require (node:internal/modules/cjs/loader:1143:19)
Sep 12 14:27:44 node[3543921]: at require (node:internal/modules/cjs/helpers:121:18)
Sep 12 14:27:44 node[3543921]: at bindings (/var/www/trilium/node_modules/bindings/bindings.js:112:48)
Sep 12 14:27:44 node[3543921]: at Object.<anonymous> (/var/www/trilium/node_modules/better-sqlite3/lib/database.js:9:24)
Sep 12 14:27:44 node[3543921]: at Module._compile (node:internal/modules/cjs/loader:1256:14)
Sep 12 14:27:44 node[3543921]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
Sep 12 14:27:44 node[3543921]: at Module.load (node:internal/modules/cjs/loader:1119:32) {
Sep 12 14:27:44 node[3543921]: code: 'ERR_DLOPEN_FAILED'
Sep 12 14:27:44 node[3543921]: }
Sep 12 14:27:44 node[3543921]: Node.js v18.17.1
Sep 12 14:27:44 systemd[1]: trilium.service: Main process exited, code=exited, status=1/FAILURE
Sep 12 14:27:44 systemd[1]: trilium.service: Failed with result 'exit-code'.
Sep 12 14:27:44 systemd[1]: trilium.service: Scheduled restart job, restart counter is at 4.
Sep 12 14:27:44 systemd[1]: Stopped Trilium: notes server.
Sep 12 14:27:44 systemd[1]: Started Trilium: notes server.
Sep 12 14:27:45 node[3543930]: /var/www/trilium/node_modules/bindings/bindings.js:121
Sep 12 14:27:45 node[3543930]: throw e;
Sep 12 14:27:45 node[3543930]: ^
Sep 12 14:27:45 node[3543930]: Error: The module '/var/www/trilium/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
Sep 12 14:27:45 node[3543930]: was compiled against a different Node.js version using
Sep 12 14:27:45 node[3543930]: NODE_MODULE_VERSION 93. This version of Node.js requires
Sep 12 14:27:45 node[3543930]: NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
Sep 12 14:27:45 node[3543930]: the module (for instance, using `npm rebuild` or `npm install`).
Sep 12 14:27:45 node[3543930]: at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
Sep 12 14:27:45 node[3543930]: at Module.load (node:internal/modules/cjs/loader:1119:32)
Sep 12 14:27:45 node[3543930]: at Module._load (node:internal/modules/cjs/loader:960:12)
Sep 12 14:27:45 node[3543930]: at Module.require (node:internal/modules/cjs/loader:1143:19)
Sep 12 14:27:45 node[3543930]: at require (node:internal/modules/cjs/helpers:121:18)
Sep 12 14:27:45 node[3543930]: at bindings (/var/www/trilium/node_modules/bindings/bindings.js:112:48)
Sep 12 14:27:45 node[3543930]: at Object.<anonymous> (/var/www/trilium/node_modules/better-sqlite3/lib/database.js:9:24)
Sep 12 14:27:45 node[3543930]: at Module._compile (node:internal/modules/cjs/loader:1256:14)
Sep 12 14:27:45 node[3543930]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
Sep 12 14:27:45 node[3543930]: at Module.load (node:internal/modules/cjs/loader:1119:32) {
Sep 12 14:27:45 node[3543930]: code: 'ERR_DLOPEN_FAILED'
Sep 12 14:27:45 node[3543930]: }
Sep 12 14:27:45 node[3543930]: Node.js v18.17.1
Sep 12 14:27:45 systemd[1]: trilium.service: Main process exited, code=exited, status=1/FAILURE
Sep 12 14:27:45 systemd[1]: trilium.service: Failed with result 'exit-code'.
Sep 12 14:27:45 systemd[1]: trilium.service: Scheduled restart job, restart counter is at 5.
Sep 12 14:27:45 systemd[1]: Stopped Trilium: notes server.
Sep 12 14:27:45 systemd[1]: trilium.service: Start request repeated too quickly.
Sep 12 14:27:45 systemd[1]: trilium.service: Failed with result 'exit-code'.
Sep 12 14:27:45 systemd[1]: Failed to start Trilium: notes server.
system
Closed
September 27, 2023, 2:20pm
3
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.