karloygard / hassio-addons

My Hass.io addons
6 stars 2 forks source link

hidapi: unknown failure #9

Closed geeewizzz closed 3 years ago

geeewizzz commented 4 years ago

2020/09/08 06:25:35 hidapi: unknown failure [cmd] /run.sh exited 1 [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal.

My adddon shut down this morning, got the above error msg.

karloygard commented 4 years ago

That error comes from https://github.com/karalabe/hid/blob/master/hid_enabled.go somewhere. How long had the service been running? I assume no one touched the USB stick?

karloygard commented 4 years ago

I've pushed a new build that logs errors better, but this looks like an external issue to the daemon itself. The stick may have disconnected or some service was restarted? A workaround could be that the daemon just restarts, but it would be nice to understand what caused this.

Can you see anything else in HA logs from around that time?

geeewizzz commented 4 years ago

I updated HA to a new version later that evening, so I lost my logs. The xcomfort addon and HA had been running for about 12-16hrs before it crashed, the pi and the stick is in a cabinet and was not touched in the timeframe, no.

I have updated to the newest version of the xcomfort addon now, will keep an eye on it and report back with more logs if it happens again.

karloygard commented 3 years ago

hidapi appears to have stability issues and is only provided for testing purposes. By default, libusb is used and is stable.