Page 1 of 1
Docker compose error
Posted: Thursday 04 January 2024 20:28
by Bospieper
Hi,
When I use the command sudo docker compose in the /opt/zwavejs-ui folder I get the following error:
[+] Running 2/2
✔ Network zwavejs-ui_default Created 0.2s
✔ Container zwave-js-ui Created 0.5s
Attaching to zwave-js-ui
Error response from daemon: error gathering device information while adding custom device "/dev/serial/by-id/usb-0658_0200_if00": no such file or directory
Can someone point me in the right direction to look for a solution?
Grz Piet
Re: Docker compose error
Posted: Thursday 04 January 2024 20:32
by solarboy
You need to change that to the correct ID of your USB Stick, assuming you have one. You can find this by getting a shell in the container and going to the directory /dev/serial/by-id/ where your USB devices are nicely listed as files.
Re: Docker compose error
Posted: Thursday 04 January 2024 21:21
by Bospieper
Hi solarboy,
The Zwavejs-ui wiki does not supply this solution. I understand that using ls /dev/serial/by-id is not the correct way.
I'm not so familiar with Docker so can you tell me how perform the steps in getting the right serial/by-id ?
Grz Piet
Re: Docker compose error
Posted: Thursday 04 January 2024 21:26
by solarboy
Bospieper wrote: ↑Thursday 04 January 2024 21:21
Hi solarboy,
The Zwavejs-ui wiki does not supply this solution. I understand that using ls /dev/serial/by-id is not the correct way.
I'm not so familiar with Docker so can you tell me how perform the steps in getting the right serial/by-id ?
Grz Piet
This is not from a wiki, just general instructions to make USB devices available within a Docker container. Have a look in the /dev/serial/by-id/ folder, your answer will be there (or not)
Re: Docker compose error
Posted: Thursday 04 January 2024 21:46
by Bospieper
Thanx for the replay.
To start a shell within a container the container has to be up. Because of the error while starting the container I cannot open a shell with the command:
docker execute -it zwave-js-ui ls /dev/serial/by-id
Grz Piet
Re: Docker compose error
Posted: Thursday 04 January 2024 22:32
by capitalT
It is more simple then that. You don't have to go inside the docker. You look on the main system (probably a Raspbery Pi) in /dev/serial/by-id and there you find your devices. With the help of "lsusb" you can figure out which is which. You are probably looking for a Aeon Z-stick Gen5? That is indeed usb-0658_0200-if00 but with the last separator a dash, not a underscore. If you fix that in your docker compose file, you should be good.
Re: Docker compose error
Posted: Thursday 04 January 2024 22:34
by solarboy
capitalT wrote: ↑Thursday 04 January 2024 22:32
It is more simple then that. You don't have to go inside the docker. You look on the main system (probably a Raspbery Pi) in /dev/serial/by-id and there you find your devices. With the help of "lsusb" you can figure out which is which. You are probably looking for a Aeon Z-stick Gen5? That is indeed usb-0658_0200-if00 but with the last separator a dash, not a underscore. If you fix that in your docker compose file, you should be good.
This.
Re: Docker compose error
Posted: Thursday 04 January 2024 23:56
by Bospieper
Hello,
Youve made me very happy, what can it be simple a simple dash instaed of a underscore.
After weeks living in darkness in my house (all the lightning was OZW) there will be light soon.
Thanx