After upgrade new version getting error

HI
after update new version 0.39 i am getting below error
17-02-25 22:17:42 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
repeating again and again.
any solution.
thanks

Just throwing a “me too” into this thread. Constant:

ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

spamming my log file. I opened up an issue report here: https://github.com/home-assistant/home-assistant/issues/6253

1 Like

Hi, maybe some hint for solving this?

I can trigger this error in the log when i click my browsers reload button while in the history page.

Greetings

I have this a lot too:

17-03-08 10:13:46 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-03-08 10:56:32 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-03-08 11:05:54 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-03-08 11:05:56 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-03-08 11:22:10 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

Running .40-DEV

Same here!

One of your components are probably using too long time to update the state.
Do you see any warning or error just before the “Timer got out of sync” error?
What components are you using?

In my case I have this before the out of sync error

Traceback (most recent call last):
  File "/home/pi/.homeassistant/deps/aiohttp/web_protocol.py", line 430, in start
    yield from resp.write_eof()
  File "/home/pi/.homeassistant/deps/aiohttp/web_response.py", line 574, in write_eof
    yield from super().write_eof(body)
  File "/home/pi/.homeassistant/deps/aiohttp/web_response.py", line 413, in write_eof
    yield from self._payload_writer.write_eof(data)
  File "/home/pi/.homeassistant/deps/aiohttp/http_writer.py", line 281, in write_eof
    yield from self.drain(True)
  File "/home/pi/.homeassistant/deps/aiohttp/http_writer.py", line 294, in drain
    yield from self._stream.drain()
  File "/home/pi/.homeassistant/deps/aiohttp/http_writer.py", line 127, in drain
    yield from self._protocol._drain_helper()
  File "/usr/local/lib/python3.4/asyncio/streams.py", line 197, in _drain_helper
    yield from waiter
  File "/usr/local/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
concurrent.futures._base.CancelledError

Got a lot of those

Anyone found the actual reason for Timer got out of sync?
I still have it running latest DEV (0.42)

I’m having this issue basically everyday.
A new line in log with “Timer got out of sync. Resetting” is filled every time I click on logbook. Probably some components is corrupting the DB file?
I tried to exclude some components without any luck.

I just saw a few of these, clicked on logbook and … yep another one got created. Seems logbook creates too much delay inside the system.

1 Like

I also get these; they seem also to result in the connection to my mqtt broker (mosquitto) being reset. Note that I have my log level set at ‘warn’, but my mqtt log level at ‘debug’:

[…lots of MQTT messages…]
2017-09-06 09:06:45 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on dump/office/sensor.office_temperature_raw: 249
2017-09-06 09:06:45 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on dump/office/sensor.office_mint_moisture: 525
2017-09-06 09:07:16 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on dump/office/sensor.office_mint_moisture: 523
2017-09-06 09:09:10 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
[Errno 104] Connection reset by peer
2017-09-06 09:09:10 INFO (Thread-10) [homeassistant.components.mqtt] Successfully reconnected to the MQTT server
2017-09-06 09:09:12 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on /sonoff/touch1/tele/sonoff/LWT: Offline
2017-09-06 09:09:19 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on /sonoff/touch1/tele/sonoff/LWT: Online
2017-09-06 09:09:29 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-09-06 09:10:20 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-09-06 09:11:24 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-09-06 09:11:45 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-09-06 09:11:45 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on /sonoff/touch1/tele/sonoff/LWT: Offline
2017-09-06 09:11:47 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on /sonoff/touch1/tele/sonoff/LWT: Online
2017-09-06 09:11:49 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-09-06 09:12:02 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

Note that there were lots of MQTT messages after that, but home assistant does not seem to see them anymore, even though it claims to have ‘successfully reconnected’ :frowning:

Is there a bug for this open in the bug tracker?

Hi. First time using the forums. I’m new to Home Assistant but I have had heaps of fun setting things up.

I have a Raspberry Pi Zero W running Hass.io and I’m continually getting ‘Timer got out of sync. Resetting’ error. Seems to be every 5 minutes, but can sometimes be every 3 minutes, every minute and then every hour or so. Confusing. I have tried to turn off as many items as possible thinking it might be a load issue as identified. The memory usage is around 40% on average and CPU is around 19% on average.

I’m not sure if it is related but the iPhones I have keeps being shown as ‘not_home’ even when they are home and even with my tracker being set to 10 minutes before treating as ‘not_home’.

Any assistance is greatly appreciated.