Java Script error when I installed on Ubuntu
-
October 23, 2023 at 9:38 pm #10807[anonymous]
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 #10919[anonymous]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
November 15, 2023 at 4:12 pm #11028[anonymous]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 #11040[anonymous]@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
November 16, 2023 at 1:31 pm #11048[anonymous]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 #11049[anonymous]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.
November 19, 2023 at 1:49 pm #11095[anonymous]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 ?
November 20, 2023 at 1:25 pm #11102[anonymous]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 #11103[anonymous]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 #11148[anonymous]Please recheck these packages (it has been updated) – it should solve your issues as here: https://github.com/GetPublii/Publii/issues/1294
November 28, 2023 at 1:18 pm #11163[anonymous]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 #11164[anonymous]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[anonymous]@doclet – perfect 🙂
December 16, 2023 at 1:24 am #11322[anonymous]Hello! Having the same problem when upgrading to the latest version, I’ve installed the google-drive version from the link. Unfortunately, it doesn’t fully work for me. I’m attaching for better explanation some screenshots of the issues. In detail, I can’t modify the name of authors and menu, or add any new. I have Ubuntu 20.04. Thanks for any help you could provide.
December 20, 2023 at 12:16 am #11337[anonymous]@benjiworld – these 2 errors occurred after first error about closed DB connection? If yes, the only thing which I can suggest is to restart Publii after such error appearance. If you can reproduce a path when the error about closed DB connection occurs, it can help me to find a reason of this issue
December 23, 2023 at 9:15 pm #11401[anonymous]Thanks a lot for your fast feedback.. In the while I’ve upgraded my system to Ubuntu 22, then no more errors there.. Thank you again for your support! Just for information, restarting Publii after the above errors didn’t solve the issues.. Unfortunately I can’t reproduce it now..