zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Zigbee2mqtt on ESXi needs to be restarted every 1-2 minutes

Open bart1604 opened this issue 8 years ago • 8 comments

https://pastebin.com/MjcX6eTn

Hi guys,

I've got a problem I can't figure out. I'm running ESXi on an intel NUC. I've created a VM with HASSIO. Downloaded the addon zigbee2mqtt. But I have the same issues when I create a new VM with just Ubuntu and install zigbee2mqtt manually.

I've connected (paired) a tradfri light to zigbee2mqtt. Everything works fine, I can turn it on and off in Home Assistant. After some time (1-2 minutes), it stops working. When I check the log, it says request timeout.

I've installed HASSIO on a raspberry pi and everything works fine, so the cc2531 USB sniffer is working perfectly.

Above you can find the LOG file. After I restart zigbee2mqtt, it works again for about 1-2 minutes. I friend of my said to my he tought it could have something to do with the USB 3.0 (I only have 3.0 ports on my NUC, but I doubt that is the issue, why is it working for a short time then?)

Does anyone have an idea where to look or what the issue is?

Thanks in advance

bart1604 avatar Aug 30 '18 17:08 bart1604

Have you tried leaving it for a bit longer (10-20 minutes)?

matchett808 avatar Aug 30 '18 18:08 matchett808

Yes, when I was done trying yesterday I left everything on. When I came back a few hours later it still had the same issue. Unfortunately

bart1604 avatar Aug 30 '18 18:08 bart1604

I'm also using intel NUC and my CC2531 is plugged to an usb 3.0 port, no issues at all. You could check BIOS and adjust the power settings for usb charging.

AnhDuc85 avatar Aug 30 '18 18:08 AnhDuc85

I have big problem when i run ziggbee2mqtt in host on ESXi with usb pass thow. It was running ok, but stopped randomly. After that i run it on a raspberry pi for test with no problem. I have now moved it to a physical server running Ubuntu 18.04 (No ESXi)

Here is my issue: https://github.com/Koenkk/zigbee2mqtt/issues/309

pixiandreas avatar Aug 31 '18 03:08 pixiandreas

Hi Pixiandras,

Yes, i've read your issue a few days ago. It is very similar to mine. The only difference is that my stick stops working after 1-2 minutes.

@AnhDuc85 I don't think it has anything to do with BIOS settings. Yesterday I've placed a different HDD in my NUC, installed ubuntu on it and installed zigbee2mqtt directly (not he HASSIO addon). In this case everything works fine. So it seems that there is something with ESXi.

bart1604 avatar Aug 31 '18 05:08 bart1604

Hi guys,

I'm getting similar issue over ESXi in RancherOS VM and then docker container. I set the pass-through from ESXi for the usb zigbee device then I forwarded the device to the container. I set udev rule to have the device always mapped to /dev/zigbee.

In zigbee2mqtt I'm getting this error:

4.09.2018 18:47:50 zigbee2mqtt:info 2018-9-4 16:47:50 Starting zigbee-shepherd 4.09.2018 18:47:50 zigbee2mqtt:error 2018-9-4 16:47:50 Error while starting zigbee-shepherd! 4.09.2018 18:47:50 zigbee2mqtt:error 2018-9-4 16:47:50 Press the reset button on the stick (the one closest to the USB) and start again 4.09.2018 18:47:50 zigbee2mqtt:error 2018-9-4 16:47:50 Failed to start 4.09.2018 18:47:50 {"message":"Error: Not a tty setting custom baud rate of 115200","stack":"Error: Error: Not a tty setting custom baud rate of 115200"}

and cannot figure out what's happening. I was trying setting custom baud rate in the configuration.
I was using the same stick earlier in FreeNAS jail (it was bare metal setup) and it was working fine.

I found the info about legacy USB driver in ESXi: https://kb.vmware.com/s/article/2147650 - turned off the new driver but that didn't change anything.

arisonpl avatar Sep 04 '18 16:09 arisonpl

Update: it seems to be RancherOS specific issue.

I did a pass-through to FreeNAS iocage jail, same setup as I had earlier with bare metal FreeNAS and everything works fine.

I will stick to this setup for now till I will figure out how to handle it in RancherOS, but will miss easiness of updates in Docker :)

arisonpl avatar Sep 05 '18 17:09 arisonpl

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 04 '18 18:11 stale[bot]