Core: 0.35 hangs on shutdown

Created on 22 Dec 2016  Â·  3Comments  Â·  Source: home-assistant/core

Home Assistant release (hass --version):
0.35.0, 0.35.1, 0.35.2

Python release (python3 --version):
Python 3.4.2

Component/platform:

Description of problem:
When I try shutting down home assistant it simply hangs. I need to either SIGKILL it, or hit Ctrl+C to stop it. I've waited for around 10 minutes to see whether it will shut down by itself but it does not.

I cannot reproduce the issue on 0.34.5, but I tried all 0.35.x versions and it's there in all of them.

Expected:
HASS to stop properly.

Problem-relevant configuration.yaml entries and steps to reproduce:
I've commented out everything in my configuration.yaml to pinpoint which component is causing it, but it appears even with a barebones configuration it still hangs.

homeassistant:
  name: Test
  1. Start home assistant from the command line
  2. Hit Ctrl+C once, or go to /dev-service and choose "homeassistant" -> "stop", if frontend is enabled

Traceback (if applicable):
When I launch it from the command line I get the following Traceback when I Ctrl+C

^CException ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1294, in _shutdown
    t.join()
  File "/usr/lib/python3.4/threading.py", line 1060, in join
    self._wait_for_tstate_lock()
  File "/usr/lib/python3.4/threading.py", line 1076, in _wait_for_tstate_lock
    elif lock.acquire(block, timeout):
KeyboardInterrupt

Additional info:
I'm running hass on RPi2.

Most helpful comment

Is fixed in dev and should be release with 0.36

2017-01-02 16:48 GMT+01:00 Tom Matheussen notifications@github.com:

I'm still having this on 0.35.3 (even after disabling everything in my
config, with clean database, clean install etc)
Tried all 0.35.x versions and they all have it, 0.34.5 does work for me.

running on Ubuntu server 14.04

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/5039#issuecomment-269988651,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOoMLFYC4cdHe1-gseFiQBoxJi9FYmQSks5rORxVgaJpZM4LT9TL
.

All 3 comments

Close with 0.35.3

I'm still having this on 0.35.3 (even after disabling everything in my config, with clean database, clean install etc)
Tried all 0.35.x versions and they all have it, 0.34.5 does work for me.

running on Ubuntu server 14.04
python 3.4.3 inside a virtualenv

Is fixed in dev and should be release with 0.36

2017-01-02 16:48 GMT+01:00 Tom Matheussen notifications@github.com:

I'm still having this on 0.35.3 (even after disabling everything in my
config, with clean database, clean install etc)
Tried all 0.35.x versions and they all have it, 0.34.5 does work for me.

running on Ubuntu server 14.04

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/5039#issuecomment-269988651,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOoMLFYC4cdHe1-gseFiQBoxJi9FYmQSks5rORxVgaJpZM4LT9TL
.

Was this page helpful?
0 / 5 - 0 ratings