Java Script error when I installed on Ubuntu
- This topic has 12 replies, 3 voices, and was last updated 1 week, 4 days ago by .
-
AuthorPosts
-
October 23, 2023 at 9:38 pm #10807
premper
Hello,
After install on Ubuntu (ZorinOS 16 pro) I got an Javascript error when launching the software.. though the application did start, but I was not able to select a proyect, previously created.Here a link to the screenshot. https://owncloud.premper.de/index.php/s/69H0WRy1KcURtWz
The same version runs fine on muy computer as appimage
November 4, 2023 at 8:20 am #10919Tomasz Dziuda
Hi,
It seems that newest version of one of the native modules (better-sqlite) requires glibc in version which is not available in your OS
I will check in v.0.44 if it is possible to fix it somehow
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!November 15, 2023 at 4:12 pm #11028doclet
I got the same error with Publii 0.44 (and now with 0.43.1 after downgrading!) on Debian 11 MX Linux. How can it be fixed?
November 16, 2023 at 1:23 pm #11040Tomasz Dziuda
@doclet @premper – could you check if v.0.44.1 solves your issue? It uses the same version of better-sqlite3 as v.0.42.1 of Publii
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!November 16, 2023 at 1:31 pm #11048doclet
No, sorry, Appimage of 0.44.1 gives the same error as 0.44
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 /tmp/.mount_PubliiwlzeIb/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.<anonymous> (node:internal/modules/cjs/loader:1356:18) at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2358) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function. load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at bindings (/tmp/.mount_PubliiwlzeIb/resources/app.asar/- node_modules/bindings/bindings.js:112:48) at new Database (/tmp/.mount_Publiiwlzelb/resources/app.asar/- node_modules/better-sqlite3/lib/database.js:48:64)
November 16, 2023 at 1:33 pm #11049Tomasz Dziuda
Well – it seems that it is a problem with better-sqlite3 packages for Electron 26. In this case owners of older linux distributions must wait as we will migrate to sqlite3 based on WASM, which not requires native module at all.
We will try to do as soon as possible, but it requires many small changes in the code to adjust use of the module – I do hope that we will release a fix in the nearest 1-2 weeks.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!November 19, 2023 at 1:49 pm #11095Tomasz Dziuda
Hi,
I have prepared build based on WASM SQLite module – could you check if it is working for you: https://drive.google.com/drive/folders/1le87WhiJCc_tJFdNiZE-KZYI1-KzLLFG?usp=drive_link ?
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!November 20, 2023 at 1:25 pm #11102doclet
Hello! When I run the Appimage of this build, it fails to launch with the following output in terminal:
A JavaScript error occurred in the main process Uncaught Exception: Error: Something went wrong installing the "sharp" module libvips-cpp.so.42: cannot open shared object file: No such file or directory Possible solutions: - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp" - Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp" - Consult the installation documentation: https://sharp.pixelplumbing.com/install at Object.<anonymous> (/tmp/.mount_Publii0rpkVd/resources/app.asar/node_modules/sharp/lib/sharp.js:37:9) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/tmp/.mount_Publii0rpkVd/resources/app.asar/node_modules/sharp/lib/constructor.js:11:1) at Module._compile (node:internal/modules/cjs/loader:1271:14) [19732:1120/092359.144525:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.portal.Error.NotFound: Requested setting not found
November 20, 2023 at 1:56 pm #11103premper
I installed on Zorin 16 (ubuntu 20 Lts) the exectuable you provided Publii_0.44.1_amd64.deb and when I try to run, I get the exact same error as doclet mentioned above.
Thank you for your help
November 27, 2023 at 9:59 pm #11148Tomasz Dziuda
Please recheck these packages (it has been updated) – it should solve your issues as here: https://github.com/GetPublii/Publii/issues/1294
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!November 28, 2023 at 1:18 pm #11163doclet
Tomasz Dziuda wrote:Please recheck these packages (it has been updated) – it should solve your issues as here: https://github.com/GetPublii/Publii/issues/1294
Thank you for your help! I downloaded an Appimage file from the official Publii site (v.0.44.1 (build 16519)) and ran it but got the error. Should I download some other build file? Sorry if I’m too slow)
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 /tmp/.mount_PubliiRMVp6y/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.<anonymous> (node:internal/modules/cjs/loader:1356:18) at Object.func [as .node] (node:electron/js2c/asar bundle:2:2358) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at bindings (/tmp/.mount_PubliiRMVp6y/resources/app.asar/- node_modules/bindings/bindings.js:112:48) at new Database (/tmp/.mount_PubliiRMVp6y/resources/app.asar/- node_modules/better-sqlite3/lib/database.js:48:64)
November 28, 2023 at 1:26 pm #11164doclet
Tomasz Dziuda wrote:Please recheck these packages (it has been updated) – it should solve your issues as here: https://github.com/GetPublii/Publii/issues/1294
Sorry, my bad, used wrong file! Now I tried the Appimage from the google drive link you provided earlier in this thread and it worked fine. Then I installed the DEB file from the same google drive folder, it works too. Thank you very much! Problem solved.
November 28, 2023 at 1:34 pm #11165 -
AuthorPosts
- You must be logged in to reply to this topic.