smarthomefans / ioBroker.miio

ioBroker adapter to controls xiaomi miIO protocol devices
MIT License
12 stars 6 forks source link

It seems this adapter can not exit totally #15

Closed SchumyHao closed 5 years ago

SchumyHao commented 5 years ago

In some situation, this adapter can not exit totally, and this adapter can not run again.

log shows:

instance system.adapter.miio.0 terminated with code 7 (Adapter already running)

enemy2003 commented 5 years ago

I got this, when there is a process running on my server that acts like a zombie. After reinstallation or something like that. Stop the adapter, check if there is still a io.miio.0 process and kill it, then start the adapter again. This works for me. Got the same for other adapters too, so maybe not an adapter bug?

SchumyHao commented 5 years ago

kill process also works for me, but i think this is not best solution:flushed:

SchumyHao commented 5 years ago

js-controller 2.0 will handle this issue