error gathering device information no such file or directory

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

error gathering device information no such file or directory

Post 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.
Last edited by rron on Sunday 27 August 2023 14:28, edited 3 times in total.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: error gathering device information no such file or dit

Post 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 "
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post by rron »

Someone an tip how to solve this? I ‘m out of ideas.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
waltervl
Posts: 5844
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: error gathering device information no such file or directory

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
waltervl
Posts: 5844
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: error gathering device information no such file or directory

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
waltervl
Posts: 5844
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: error gathering device information no such file or directory

Post by waltervl »

I have no idea, not using an RPI.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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: :?:
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
waltervl
Posts: 5844
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: error gathering device information no such file or directory

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: error gathering device information no such file or directory

Post 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. :|
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest