Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Java Script error when I installed on Ubuntu

  • #10807
    Avatar photo[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

    #10919
    Avatar photo[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

    #11028
    Avatar photo[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?

    #11040
    Avatar photo[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

    #11048
    Avatar photo[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)
    #11049
    Avatar photo[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.

    #11095
    Avatar photo[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 ?

    #11102
    Avatar photo[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
    
    #11103
    Avatar photo[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

    #11148
    Avatar photo[anonymous]

    Please recheck these packages (it has been updated) – it should solve your issues as here: https://github.com/GetPublii/Publii/issues/1294

    #11163
    Avatar photo[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)
    #11164
    Avatar photo[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.

    #11165
    Avatar photo[anonymous]

    @doclet – perfect 🙂

    #11322
    Avatar photo[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.

    db1
    menu
    author

    #11337
    Avatar photo[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

    #11401
    Avatar photo[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..