zwave-js / zwave-js-ui

Full featured Z-Wave Control Panel UI and MQTT gateway. Built using Nodejs, and Vue/Vuetify
https://zwave-js.github.io/zwave-js-ui
MIT License
984 stars 201 forks source link

Issue with Z-Wave JS UI on Ubuntu 24.04 - "zwave-js-ui: command not found" #3966

Open giacomo60 opened 3 weeks ago

giacomo60 commented 3 weeks ago

Checklist

Deploy method

Snap

Z-Wave JS UI version

9.20.0

ZwaveJS version

from package.json :" "zwave-js": "^13.10.1","@zwave-js/log-transport-json": "^3.0.0","@zwave-js/server": "^1.38.0"

Describe the bug

I am experiencing an issue with the Z-Wave JS UI on Ubuntu 24.04. After successfully installing the package via Snap, I receive the following message: "zwave-js-ui (v9.20/stable) v9.20.0 from Giaever.online (giaever-online) installed". However, when I attempt to run the application using the command zwave-js-ui, I receive an error: "bash: /snap/bin/zwave-js-ui: No such file or directory"

To Reproduce

sudo apt-get update sudo apt-get install snapd

installed zwave js ui :

sudo snap install zwave-js-ui "zwave-js-ui (v9.20/stable) v9.20.0 from Giaever.online (giaever-online) installed"

Tried to run Z-Wave JS UI:

/snap/bin/zwave-js-ui

"bash: /snap/bin/zwave-js-ui: No such file or directory"

Expected behavior

run zwavejs ui

Additional context

Additionally, I noticed that in the Snap list, the Z-Wave JS UI package does not have a green check mark next to the source 'giaever-online', unlike other packages.

info about ubuntu 24.04: # Rapporto sui dettagli del sistema

Dettagli del rapporto

Informazioni sull'hardware:

Informazioni sul software:

robertsLando commented 3 weeks ago

cc @jmgiaever

jmgiaever commented 3 weeks ago

Hi,

I think this is an issue with the OS, not this particular snap. /snap/bin directory is maintained by the snapd daemon, so my guess is a faulty setup.

giacomo60 commented 3 weeks ago

Hi,

I have performed a test to ensure that the Snapd daemon is functioning correctly on my system. I successfully installed FreeCAD using Snap without any issues, which indicates that Snapd is working properly. Here are the steps I followed:

sudo apt update sudo apt install snapd

sudo snap install freecad

snap info freecad

The installation was successful, suggesting that the problem is specific to the Z-Wave JS UI package. Additionally, I checked the contents of the /snap/bin directory and found that the symbolic links for Z-Wave JS UI are present but still encountering the command not found issue.

Any further guidance on resolving this would be greatly appreciated. Thank you!

giacomo60 commented 3 weeks ago

Hi @jmgiaever,

Thank you for your initial response. Here is a detailed summary of the checks and steps we have performed to diagnose the issue. I am just a user, and the analysis was done with the help of Microsoft Copilot.

Problem Description:

OS: Ubuntu 24.04

Issue: After installing Z-Wave JS UI via Snap, the command zwave-js-ui returns "command not found".

Steps Taken:

Verified Snapd Status:

sudo systemctl status snapd Snapd is running correctly without errors.

Checked /snap/bin Directory:

Output:

lrwxrwxrwx 1 root root 13 oct 28 11:12 zwave-js-ui.disable -> /usr/bin/snap lrwxrwxrwx 1 root root 13 oct 28 11:12 zwave-js-ui.enable -> /usr/bin/snap lrwxrwxrwx 1 root root 13 oct 28 11:12 zwave-js-ui.exec -> /usr/bin/snap lrwxrwxrwx 1 root root 13 oct 28 11:12 zwave-js-ui.help -> /usr/bin/snap lrwxrwxrwx 1 root root 13 oct 28 11:12 zwave-js-ui.restart -> /usr/bin/snap Attempted to Create Manual Symlink:

Created a symlink manually to the expected executable.

sudo ln -s /snap/zwave-js-ui/current/zwave-js-ui /usr/bin/zwave-js-ui Verified symlink:

ls -l /usr/bin/zwave-js-ui Symlink created correctly, but the command still returns "command not found".

Checked the Contents of /snap/zwave-js-ui/current:

Output:

lrwxrwxrwx 1 root root 3 oct 28 11:12 /snap/zwave-js-ui/current -> 474 Checked directory 474:

ls -l /snap/zwave-js-ui/474 Executed the Found Executable:

Attempted to execute the found executable directly:

node /snap/zwave-js-ui/474/lib/node_modules/zwave-js-ui/server/bin/www.js Error received:

Error: ENOENT: no such file or directory, mkdir '/snap/zwave-js-ui/474/lib/node_modules/zwave-js-ui/store' Snap Connections:

Checked connections:

snap connections zwave-js-ui Output indicates connections are in place correctly.

Conclusion: The problem seems related to the read-only nature of the Snap filesystem, preventing the creation of necessary directories during execution.

Any further guidance or instructions on resolving this specific issue would be greatly appreciated. Thank you!