GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

Javasript error after update on Debian #1252

Closed Krotosz6 closed 8 months ago

Krotosz6 commented 9 months ago

Operating system

MX Linux on Debian 11 (bullseye)

Publii version

0.43

Post editor

None

Bug description

After update from 0.42. there is after open:

Error A JavaScript error occurred in the main process Uncaught Exception: Error: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /opt/- Publii/resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/- better_sqlite3.node) at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2131) at Object. (node:internal/modulesMs/loader:1356:18) at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2358) at Module.Ioad (node:internal/modules/cjs/Ioader:1126:32) at node:internal/modules/cjs/Ioader:967:12 at Functionjoad (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/Ioader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at bindings (/opt/Publii/resources/app.asar/node_modules/bindings/bindings.js:112:48) at new Database (/opt/Publii/resources/app.asar/node_modules/better-sqlite3/lib/- database.js:48:64)

Steps to reproduce

No response

Relevant log output

No response

atomGit commented 9 months ago

give your issue a title :)

Krotosz6 commented 9 months ago

I tried appimage and there is the same situation.

dziudek commented 8 months ago

It seems that it is an issue with dependencies on your OS: https://superuser.com/questions/537683/how-to-fix-lib-x86-64-linux-gnu-libc-so-6-version-glibc-2-14-not-found - the native module for SQLite requires at least glibc 2.33 and probably your system has older one

dziudek commented 8 months ago

@Krotosz6 - as it seems to be a bigger issue, we will temporary downgrade better-sqlite3 to v.8.2.0 in Publii v.0.44 and in v.0.45 we will probably migrate to WASM SQLite solution, to avoid issues with native modules in the future.

dziudek commented 7 months ago

FYI - problem finally solved with migrating better-sqlite3 to WASM module: https://github.com/GetPublii/Publii/issues/1294#issuecomment-1817810447