Page 1 of 1

error gathering device information no such file or directory

Posted: Sunday 27 August 2023 13:54
by rron
Hi,

i have trouble installing zwavejsui with docker compose. I allways get the error "error gathering dev. information while adding custom device "/dev/serial/by-id/usb-0658_0200_if00"no such file or directory.
My device is zwave Aeotec gen 5 stick. Rpi 4 with 32 bits pi os lite Bullseye.

Code: Select all

sudo apt install docker-compose

Code: Select all

  zwave-js-ui:
    containerversion: "3.7"
services:
  zwave-js-ui:
    container_name: zwave-js-ui
    image: zwavejs/zwave-js-ui:latest
    restart: always
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mysupersecretkey
      - ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db
      # Uncomment if you want log times and dates to match your timezone instead of UTC
      # Available at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
      #- TZ=America/New_York
    networks:
      - zwave
    devices:
      # Do not use /dev/ttyUSBX serial devices, as those mappings can change over time.
      # Instead, use the /dev/serial/by-id/X serial device for your Z-Wave stick.
      - '/dev/serial/by-id/usb-0658_0200-if00:/dev/zwave'
    volumes:
      - zwave-config:/usr/src/app/store
   # Or by using local folder
   # - ./store:/usr/src/app/store
    ports:
      - "8091:8091" # port for web interface
      - "3000:3000" # port for Z-Wave JS websocket server
networks:
  zwave:
volumes:
  zwave-config:
    name: zwave-config
Lsusb will give

Code: Select all

ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen 5 (ZW090) -UZB
What am I doing wrong? I installed the systeem 2 times from scratch, every time the same error.

Re: error gathering device information no such file or dit

Posted: Sunday 27 August 2023 14:11
by Sjonnie2017
First thing that comes to mind is the " before /dev/serial blah blah. There is no closing " so probably won't work. Try without the "

Re: error gathering device information no such file or directory

Posted: Sunday 27 August 2023 14:23
by rron
Hi Sjonnie2017,

That was a typo. I changed that in the compose file. In the original compose I use is that OK.Still the same error.

Re: error gathering device information no such file or directory

Posted: Sunday 27 August 2023 15:46
by rron
Domoticz docker works perfect.
I have also tested de stick with a powered hub on the pi4 but that didn’t make any diference.

Re: error gathering device information no such file or directory

Posted: Monday 28 August 2023 20:59
by rron
Someone an tip how to solve this? I ‘m out of ideas.

Re: error gathering device information no such file or directory

Posted: Monday 28 August 2023 22:36
by waltervl
Also search the discussion topics of Zwave-JS-UI https://github.com/zwave-js/zwave-js-ui/discussions

Edit: check this guide to get the correct port name by-id https://github.com/zwave-js/zwave-js-ui ... sions/2483

Re: error gathering device information no such file or directory

Posted: Tuesday 29 August 2023 17:34
by rron
waltervl wrote: Monday 28 August 2023 22:36 Also search the discussion topics of Zwave-JS-UI https://github.com/zwave-js/zwave-js-ui/discussions


Edit: check this guide to get the correct port name by-id https://github.com/zwave-js/zwave-js-ui ... sions/2483

Code: Select all

ls /dev/serial/by-id/
that shows no such file or directory

Code: Select all

/bin/udevadm info --name=/dev/ttyACM0 | grep SERIAL
that shows

Code: Select all

ID_USB_SERIAL=0658_0200

Re: error gathering device information no such file or directory

Posted: Tuesday 29 August 2023 19:28
by waltervl
Then you cannot use by-id due to some issue with your OS or perhaps outdated?
You can use /dev/ttyACM0 in your docker config as that is the port it is using. Only after a reboot the order can change.

In this post is described how someone else fixed this issue viewtopic.php?t=40536

Re: error gathering device information no such file or directory

Posted: Tuesday 29 August 2023 20:48
by rron

Code: Select all

sudo nano /usr/lib/udev/rules.d/60-serial.rules

Code: Select all

# do not edit this file, it will be overwritten on update

ACTION=="remove", GOTO="serial_end"
SUBSYSTEM!="tty", GOTO="serial_end"

SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
SUBSYSTEMS=="pci", ENV{ID_BUS}=="", ENV{ID_BUS}="pci", \
  ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}", \
  IMPORT{builtin}="hwdb --subsystem=pci"

# /dev/serial/by-path/, /dev/serial/by-id/ for USB devices
KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="serial_end"

SUBSYSTEMS=="usb-serial", ENV{.ID_PORT}="$attr{port_number}"

IMPORT{builtin}="path_id"
ENV{ID_PATH}=="?*",                   ENV{.ID_PORT}=="",   SYMLINK+="serial/by-path/$env{ID_PATH}"
ENV{ID_PATH_WITH_USB_REVISION}=="?*", ENV{.ID_PORT}=="",   SYMLINK+="serial/by-path/$env{ID_PATH_WITH_USB_REVISION}"
ENV{ID_PATH}=="?*",                   ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{.ID_PORT}"
ENV{ID_PATH_WITH_USB_REVISION}=="?*", ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH_WITH_USB_REVISION}-port$env{.ID_PORT}"

ENV{ID_BUS}=="", GOTO="serial_end"
ENV{ID_SERIAL}=="", GOTO="serial_end"
ENV{ID_USB_INTERFACE_NUM}=="", GOTO="serial_end"
ENV{.ID_PORT}=="", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}"
ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}-port$env{.ID_PORT}"

LABEL="serial_end"
Still have the same problem. I use bullseye OS. What version will work without this problem? Should I use Buster OS?

Re: error gathering device information no such file or directory

Posted: Tuesday 29 August 2023 21:24
by waltervl
I have no idea, not using an RPI.

Re: error gathering device information no such file or directory

Posted: Wednesday 30 August 2023 7:42
by rron
Hi Walter,
thanks for the help. It's strange that I don't seen this problem mentioned by other people. I will try a install from scratch with Buster and see what's happening.

Re: error gathering device information no such file or directory

Posted: Friday 01 September 2023 10:07
by rron
With Buster still the same error. I ' m running out of ideas. Can someone give me a help with this please? Aeontec stick will work with openzwave, i have just tested that so it looks that is not the problem.

Re: error gathering device information no such file or directory

Posted: Saturday 02 September 2023 11:59
by rron
Tested the aeontec gen 5 stick on the rpi4 with domoticz installed with

Code: Select all

sudo bash -c "$(curl -sSfL https://install.domoticz.com)"
and there no problem.
But with docker zwavejsui no access to aeontec gen 5 stick. I have also down a kernel update success. :ugeek: :?:

Re: error gathering device information no such file or directory

Posted: Saturday 02 September 2023 16:24
by waltervl
As it is a Zwave-JS-UI issue you could also check the Zwave-JS-UI GitHub issues or forum. Perhaps ask it there.

Re: error gathering device information no such file or directory

Posted: Sunday 03 September 2023 10:25
by rron
waltervl wrote: Saturday 02 September 2023 16:24 As it is a Zwave-JS-UI issue you could also check the Zwave-JS-UI GitHub issues or forum. Perhaps ask it there.
Yes I could but then again I see that a lot of folks have implemented Zwave-JS-UI without the problems that I experienced so I figured out that I’m doing something wrong with every attempt and I cann’t stand that. The forum/wiki makes it looks easy. :|