Home Assistant release with the issue:
Last working Home Assistant release (if known):
0.102.x
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io on Docker, Armbian on Arm64
Integration:
Description of problem:
Suddenly, shell_command does not work as it used to. Calling a shell_command will hangs HA until manually restart it with docker restart homeassistant
.
Log shows many warnings :
_You are using UVLoop with stream and shell_command. This is known to cause issues. Please uninstall uvloop._
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
shell_command.yaml:
my_command: ssh -p 22 -i /config/.ssh/id_rsa remote.domain 'get_youtube {{ states.input_text.living_room_player_youtube_url.state }}'
Traceback (if applicable):
Additional information:
https://community.home-assistant.io/t/new-message-in-log-uvloop/152097
@wolverinevn have you tried to uninstall uvloop
by running the command pip uninstall uvloop
inside of your virtual environment?
@wolverinevn have you tried to uninstall
uvloop
by running the commandpip uninstall uvloop
inside of your virtual environment?
No yet because I'm not sure what uvloop is doing. Will try.
uvloop
is a python package, see here for more details :)
Hey there @home-assistant/core, mind taking a look at this issue as its been labeled with a integration (shell_command
) you are listed as a codeowner for? Thanks!
@springstan have you tried to uninstall
uvloop
by running the commandpip uninstall uvloop
inside of your virtual environment?
Shell_command works well after uninstalling uvloop. In my case, with:
docker exec homeassistant pip3 uninstall -y uvloop
I appreciate your assistant so much.
I'm keeping this issue opening cause it still be a bug.
Great to hear that this solved your problem!
No problem at all.
Sure thing, I am curious too why uvloop is not a requirements for home-assistant/home-assistant but is a requirement for home-assistant/hassio-homeassistant.
@pvizeli can you explain this difference to us? Thank you 馃槉
Here is the explanation: https://github.com/home-assistant/home-assistant/pull/29835#issue-351790257
Close this due to new update release (0.103). Thanks you all for your support!
Most helpful comment
Great to hear that this solved your problem!
No problem at all.
Sure thing, I am curious too why uvloop is not a requirements for home-assistant/home-assistant but is a requirement for home-assistant/hassio-homeassistant.
@pvizeli can you explain this difference to us? Thank you 馃槉