Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
giacomo60 opened this issue Oct 28, 2024 · 4 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@giacomo60
Copy link

Checklist

  • I am not using Home Assistant. Or: a developer has told me to come here.
  • I have checked the troubleshooting section and my problem is not described there.
  • I have read the changelog and my problem is not mentioned there.

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

  • Generato in data: 2024-10-28 13:14:24

Informazioni sull'hardware:

  • Modello hardware: ASUSTeK COMPUTER INC. ZenBook UX363EA_UX363EA
  • Memoria: 8,0 GiB
  • Processore: 11th Gen Intel® Core™ i5-1135G7 × 8
  • Scheda grafica: Intel® Xe Graphics (TGL GT2)
  • Capacità del disco: (null)

Informazioni sul software:

  • Versione del firmware: UX363EA.326
  • Nome del sistema operativo Ubuntu 24.04.1 LTS
  • Build del sistema operativo: (null)
  • Tipo di sistema operativo: 64-bit
  • Versione di GNOME: 46
  • Gestore grafico: Wayland
  • Versione del kernel: Linux 6.8.0-45-generic
@giacomo60 giacomo60 added the bug Something isn't working label Oct 28, 2024
@robertsLando
Copy link
Member

cc @jmgiaever

@jmgiaever
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants