Timer out of sync?

The error means that the load of your system is to high.
The reason is probably that one or more of your components are using too long time to update.

Do you see any warnings like this?
WARNING (MainThread) [homeassistant.helpers.entity] Update of XXXX is taking over XXX seconds.

Hey Daniel

I am getting these in the log file and HASS is running very sluggish- it’s terrible

Strange thing is this is after a complete rebuild! I was starting to see these errors before the rebuild and it was getting really slow which is why I did a rebuild.

17-04-21 19:00:32 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:00:35 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:00:38 WARNING (MainThread) [homeassistant.components.media_player] Updating kodi media_player took longer than the scheduled update interval 0:00:10
17-04-21 19:00:40 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:00:46 WARNING (MainThread) [homeassistant.setup] Setup of wemo is taking over 10 seconds.
17-04-21 19:00:50 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:10
17-04-21 19:00:50 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:00:55 WARNING (MainThread) [homeassistant.components.sensor] Updating wunderground sensor took longer than the scheduled update interval 0:00:30
17-04-21 19:00:55 WARNING (MainThread) [homeassistant.components.sensor] Updating snmp sensor took longer than the scheduled update interval 0:00:30
17-04-21 19:00:56 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:03 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:07 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:10
17-04-21 19:01:07 WARNING (MainThread) [homeassistant.components.media_player] Updating kodi media_player took longer than the scheduled update interval 0:00:10
17-04-21 19:01:07 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:08 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing.
17-04-21 19:01:08 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing.
17-04-21 19:01:08 WARNING (MainThread) [aiohttp.websocket] websocket connection is closing.
17-04-21 19:01:11 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:15 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:17 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:10
17-04-21 19:01:18 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:20 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:26 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:29 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:39 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:42 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:48 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:01:57 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:02:01 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-04-21 19:02:09 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

after running for a little while…
Could this be a faulty Pi? running out of ideas…

OSError: [Errno 24] Too many open files
17-04-21 19:12:25 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
fd, addr = self._accept()
OSError: [Errno 24] Too many open files
17-04-21 19:12:26 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
fd, addr = self._accept()
OSError: [Errno 24] Too many open files
17-04-21 19:12:27 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
fd, addr = self._accept()
OSError: [Errno 24] Too many open files
17-04-21 19:12:28 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
fd, addr = self._accept()
OSError: [Errno 24] Too many open files
17-04-21 19:12:29 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
fd, addr = self._accept()
OSError: [Errno 24] Too many open files

OK- This is officially doing my head in!
just tried ANOTHER build- this time using AIO (on brand new sd card) and same result even before adding any config.

I think the problem is the hardware. Anyone?

snippet from the new build…

OSError: [Errno 24] Too many open files
17-04-21 22:36:22 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
OSError: [Errno 24] Too many open files
17-04-21 22:36:23 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
OSError: [Errno 24] Too many open files
17-04-21 22:36:24 ERROR (MainThread) [homeassistant.core] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/selector_events.py”, line 137, in _accept_connection
File “/usr/lib/python3.4/socket.py”, line 184, in accept
OSError: [Errno 24] Too many open files

There were (probably still are) a number of components that leaked file descriptors, which leads to this error. Do a search in the forum for this error and you will find some culprits.

Alternatively, just comment out the components in your config file until you find one that makes the problem stop.

Looks like I have found the culprit thanks to this posting. Looks like homebridge was spamming HASS.
Thanks for the help guys

Since it seems quite difficult to fix this issue. Is there some way to truncate the message from the log so it doesn´t spam it.


Yip I’m getting the same error
Timer got out of sync. Resetting
Lots of times system is also sluggish
Automations don’t always run
Lots of log errors
Like
setup of something is taking more than 10 seconds
System very laggy maybe I’m running to much on my Pi but used to be fine on older versions of HASS .
But have recently upgraded to Hassio but had to move to hassbian version so I can run my python scripts also my Pi boots from USB stick not sdcard but have never had issues on prior builds

It could be you are running too much, but possibly one process is taking all the resources. Try running top on your pi to see what is running.

I’m just trying to install system monitor but having issues with getting it to show up in UI
I’ll google top thanks

Lol I’m also wondering if I could be a network issue maybe due to the amount of wifi devices I have in my house like sonoffs maybe 18 25 wifi devices might be to much local traffic .i have also notices or just becoming paranoid other devices are lagging too maybe coincidence or my Pi has a fault

Are you getting timer out of sync when the system is like this, or is it intermittent?

I think there is an issue with a relatively common component in 0.60.

I upgraded (from 0.50.2) and made no changes to my config (except fixing obsolescence which was really minor) and this same problem (timer out of sync) spiked Hass to 100% cpu and everything came to a crawl. Walking into a room it takes a good 30s for the lights to come on.

I removed almost everything from Hass and moved it into node-red and still Hass sat at 100% after running for a short while so I went back to 0.59.2 and my problems seem to be gone. I’m going to try and go back to 0.60 again to confirm my suspicions.

Here same issue even with 0.58, 0.59 or 0.60…
Tried to disable bluetooth, tried to disconnect some unused AVM devices … nothing… same problem.
I’m running HASS.io over a Pi3… now I’ve ordered from Amazon a new SD… a faster, a Samsung Pro Plus UHS-I; in the next days I will try to move to the new SD and to decrease the scan rate of some RESTful sensor.

2017-12-23 15:27:15 ERROR (SyncWorker_11) [homeassistant.components.notify.nma] Wrong API key supplied: Your IP exceeded the maximum number of API calls per hour allowed.
2017-12-23 15:27:15 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service nma
2017-12-23 15:27:19 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-12-23 15:27:24 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2017-12-23 15:27:24 WARNING (MainThread) [homeassistant.setup] Setup of switch is taking over 10 seconds.
2017-12-23 15:27:42 WARNING (MainThread) [homeassistant.components.switch] Setup of platform fritzdect is taking over 10 seconds.
2017-12-23 15:28:00 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:06 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:11 WARNING (SyncWorker_15) [netdisco.ssdp] Error fetching description at http://192.168.0.254:49152/wps_device.xml
2017-12-23 15:28:11 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:14 WARNING (SyncWorker_15) [netdisco.ssdp] Error fetching description at https://192.168.1.40/HNAP1/
2017-12-23 15:28:15 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:23 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:25 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:34 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:44 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:28:44 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
2017-12-23 15:28:54 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:29:03 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:29:13 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:29:23 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:29:28 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:29:33 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:29:42 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:29:52 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:30:01 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:30:11 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:30:15 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:30:21 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:30:31 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:30:41 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:30:51 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:01 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:10 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:20 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:24 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:30 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:34 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:39 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:49 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:31:59 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:08 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:18 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:23 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:28 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:37 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:43 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:47 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:32:57 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:06 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:16 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:22 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:26 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:31 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:35 WARNING (SyncWorker_8) [netdisco.ssdp] Error fetching description at 192.168.1.22
2017-12-23 15:33:35 WARNING (SyncWorker_8) [netdisco.ssdp] Error fetching description at 192.168.1.31
2017-12-23 15:33:36 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:39 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:46 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:48 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:33:58 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:34:07 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:34:17 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:34:27 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:34:36 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:34:46 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:34:56 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:34:57 WARNING (MainThread) [homeassistant.components.switch] Updating fritzdect switch took longer than the scheduled update interval 0:00:30
2017-12-23 15:35:04 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:35:06 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:35:15 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:35:25 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:35:35 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:35:45 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:35:54 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:36:02 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:36:13 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:36:23 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:36:32 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:36:42 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:36:51 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:37:01 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:37:11 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:37:20 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:37:30 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:37:40 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:37:49 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:37:59 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:09 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:14 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:19 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:23 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:28 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:38 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:47 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:38:57 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:39:07 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:39:16 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:39:25 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:39:36 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:39:45 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:39:55 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:04 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:14 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:20 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:24 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:33 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:43 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:52 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:40:58 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:02 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:12 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:21 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:31 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:37 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:40 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:44 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:47 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:53 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:41:56 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:42:03 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2017-12-23 15:42:06 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

I moved to a NUC from a rPI3 and my constant Timer out of sync is now gone. I think this is a sign of just trying to do too much on a rPI.

There is an open github issue about this: https://github.com/home-assistant/home-assistant/issues/7133

I’ve already tryed to disable almost all of not necessary for my config, but the problem still remain, so the last way is to try the new most powerful SD card and even if the last job fails think I will move to an old Atom board that I’ve in the closet!

When I was on a rPI I even tried tmfs for the database and logs but still had the timer out of sync. So I don’t think it is disk IO related. I suspected just too much going on causing things to take longer then expected.

I don’t worry about it. I have a 1 week new install with 6 entities total in HA and 1 automation. Nothing complicated and I still get them. I run 3 different HA on a RPi2, RPi3 and a mac and they all get this error.

I get this every time I load up the webpage or reload it. Even with a configuration with nothing in it but the base.