Zwave - USB stick not detected - Freebox Delta / Docker

I discovered Gladys
I installed Gladys on a VM of my Freebox Delta via Docker (following the documentation)
I have a Z-Wave dongle/stick Aeotec that I plugged into my Freebox
Of course, I started my VM with USB on the Freebox interface

I can see the stick on the VM’s USB

gladys@freebox-vm-4101:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

However, Gladys does not see the dongle in the interface

What should I do?
I have seen/read a lot about USB detection issues, but I have the impression that this is outdated.
Do I need to start Docker with options to recognize the VM’s USB?

Welcome to the community!

You should check the name of the device associated with the key (in the /dev directory) in your VM.

Then, you can check if it exists in the Gladys Docker container:
docker exec -ti gladys ls -als /dev

Thank you, Reno

But in /dev of my VM I have all kinds of files/folders/symbolic links
But how to spot my USB stick?
What tty is it?

Same on the container, I have a long list but I don’t see how to identify my USB stick

Thanks in advance for your help

You unplug your key and list the devices.
You plug it back in and compare.
I think it’s the ttyAMA0.
And that’s exactly what Gladys displays in your first post.
However, I don’t understand why it can’t connect to it.

For information, sometimes it’s ttyACM0 or even ttyUSB0.

Thank you again, Reno.
But no matter how many times I plug and unplug my key, I don’t see any difference in the /dev list
Both on the VM and on the container

On the VM, I can see my key

**gladys@freebox-vm-4101** : $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And in the container it seems to be there too:

gladys@freebox-vm-4101 : ~ $ docker exec -ti gladys lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 0658:0200
Bus 002 Device 001: ID 1d6b:0003

But whether I plug or unplug, the /dev list does not change :frowning:
And I try to select ttyACM0 or 1 to 1 in the list in the Gladys/Zwave interface: nothing works

Have you tried ttyAMA0?

Yes! I did test with ttyAMA0
Actually, I was mistakenly talking about ttyACM0 and I don’t have this tty in the list or when I list /dev on the VM or the container

But nothing guarantees that my key plugged into my Freebox Delta « uses » this ttyAMA0
Whether I plug it in or not, this tty exists on the VM and Docker…
I can’t figure out which tty the key is associated with - I don’t have any ttyUSB that appears or disappears either…

Note: I’m also testing Jeedom on a VM from my box that directly recognizes my key :grimacing:

Hello, and does he recognize it under what name?

ls -l /dev/serial/by-id in your VM should help you

I therefore checked on my Jeedom VM:

freebox-jeedom:~$ ls -l /dev/serial/by-id

lrwxrwxrwx 1 root root 13 Sep 13 21:34 usb-0658_0200-if00 → ../../ttyACM0

freebox-jeedom:~$ ls /dev/tty*
/dev/tty /dev/tty13 /dev/tty19 /dev/tty24 /dev/tty3 /dev/tty35 /dev/tty40 /dev/tty46 /dev/tty51 /dev/tty57 /dev/tty62 /dev/ttyAMA0
/dev/tty0 /dev/tty14 /dev/tty2 /dev/tty25 /dev/tty30 /dev/tty36 /dev/tty41 /dev/tty47 /dev/tty52 /dev/tty58 /dev/tty63 /dev/ttyS0
/dev/tty1 /dev/tty15 /dev/tty20 /dev/tty26 /dev/tty31 /dev/tty37 /dev/tty42 /dev/tty48 /dev/tty53 /dev/tty59 /dev/tty7 /dev/ttyS1
/dev/tty10 /dev/tty16 /dev/tty21 /dev/tty27 /dev/tty32 /dev/tty38 /dev/tty43 /dev/tty49 /dev/tty54 /dev/tty6 /dev/tty8 /dev/ttyS2
/dev/tty11 /dev/tty17 /dev/tty22 /dev/tty28 /dev/tty33 /dev/tty39 /dev/tty44 /dev/tty5 /dev/tty55 /dev/tty60 /dev/tty9 /dev/ttyS3
/dev/tty12 /dev/tty18 /dev/tty23 /dev/tty29 /dev/tty34 /dev/tty4 /dev/tty45 /dev/tty50 /dev/tty56 /dev/tty61 /dev/ttyACM0

You can clearly see on this VM that the USB key seems to be recognized on the ttyACM0
And not on the Gladys VM :frowning:

The VM Gladys? Are you talking about Docker?

Which command did you use to create the container?

Can you return the result of docker inspect gladys

Yes, sorry I meant docker Gladys

For the command, I first used the Gladys documentation command on the Freebox VM
Then, when I had my zwave problems, I added arguments found in another community thread (in which you participate) about a zwave key issue:

The arguments I added: -v dev/udev…, —device, (not sure if I tried with ACM0

But actually, isn’t the problem already present on the Ubuntu VM (and therefore by inheritance on the container)?
Shouldn’t something be done on the VM so that the usb is « better » recognized?
Because if I type the command:
Ls /dev/serial/…
It gives me an error…

Thanks again

Absolutely not. Okay, it’s not the source of your problem, but don’t add anything to the command.

I suggest you destroy the VM and restart the installation by following the tutorial to the letter. From there, we’ll see if your stick is still not detected.

I just noticed you have several VMs (including one with Jeedom) that are using the stick. Stop the Jeedom VM and restart the Gladys one. Hardware access may be exclusive.

Edit:

In fact, the Freebox VM manager does not allow you to start 2 VMs that use USB
So I stop Jeedom every time I test the installation of Gladys

OK! I will try a complete reinstallation by following (again) the installation documentation on the Gladys website for installation
(I did this at the very beginning, then I tried some Docker run options by searching in the forum)

Bon… :frowning:
Back to square one: I reinstalled everything from scratch following the documentation
I still have a long list of tty in the zwave configuration of gladys but not 1 that recognizes the key…

However, I saw this post:

I’m going to try because I have a USB hub that I had unplugged before installing Gladys
I just tried: same thing…

I think we’re more on a Linux problem than a Docker or Gladys problem
The USB is not « as well » recognized on my Gladys Ubuntu VM as on the Jeedom VM
(for example, on one I can do « ls -l /dev/serial/by-id » and on the other it gives me an error)

If you have any ideas?

What is the error?

Well, actually I don’t have any errors…
I test each tty in the zwave interface of Gladys to check if the one from my zwave key but nothing works…
It checks (message on blue background) but it never completes…

I think vonox is referring to your previous message.

I was referring to that, indeed