question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

binary_sensor.snapshots_stale Error

See original GitHub issue

I’m seeing a lot of these errors in the logs:

2019-04-25 10:39:49,394 ERROR 
Traceback (most recent call last):
  File "/app/backup/hassio.py", line 277, in _postHaData
    requests.post(self.config.haBaseUrl() + path, headers=self.config.getHaHeaders(), json=data).raise_for_status()
  File "/usr/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http://hassio/homeassistant/api/states/binary_sensor.snapshots_stale

It’s using the wrong URL (http://hassio/homeassistant/) for my HA as I use my own domain. Is there a way to change this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tjorimcommented, May 9, 2019

It’s actually pretty annoying to see this ammount of errors when you’re doing an upgrade of Home Assistant. This makes it almost impossible to see why an upgrade failed because the logs are just flooded. Would it be possible to set a time-out if it fails? On subsequent fails just time-out a bit longer each time… 19-05-09 07:49:34 ERROR (MainThread) [hassio.homeassistant] Error on call http://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused] 19-05-09 07:49:34 ERROR (MainThread) [hassio.api.proxy] Error on API for request states/binary_sensor.snapshots_stale

0reactions
danielsjfcommented, Apr 11, 2020

I’m doing an upgrade to a newer version and this issue eventually seems to trigger a rollback.

20-04-11 00:49:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup repository 20-04-11 00:49:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository 20-04-11 00:49:47 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository 20-04-11 00:49:49 INFO (MainThread) [supervisor.store] Load add-ons from store: 66 all - 0 new - 0 remove 20-04-11 00:51:25 ERROR (MainThread) [supervisor.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused] 20-04-11 00:51:25 ERROR (MainThread) [supervisor.api.proxy] Error on API for request states/binary_sensor.snapshots_stale 20-04-11 00:54:18 WARNING (MainThread) [supervisor.homeassistant] Don't wait anymore of Home Assistant startup! 20-04-11 00:54:18 CRITICAL (MainThread) [supervisor.homeassistant] HomeAssistant update fails -> rollback! 20-04-11 00:54:18 INFO (MainThread) [supervisor.homeassistant] Update Home Assistant to version 0.107.0 20-04-11 00:54:18 INFO (SyncWorker_19) [supervisor.docker.interface] Update image homeassistant/raspberrypi4-64-homeassistant:0.108.2 to homeassistant/raspberrypi4-64-homeassistant:0.107.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snapshot.stale errors in log · Issue #132 - GitHub
I get the following errors in the hass.io system log at reboot: 19-11-25 ... Error on API for request states/binary_sensor.snapshots_stale.
Read more >
Add-on: Home Assistant Google Drive Backup
- type: conditional conditions: - entity: binary_sensor.snapshots_stale state_not: 'False' card: type: markdown content: >- Snapshots are stale!
Read more >
Hass.io Google Drive Backup
- alias: Snapshots went stale id: 'snapshots_went_stale' trigger: - platform: state entity_id: binary_sensor.snapshots_stale from: 'False' to: 'True' condition: ...
Read more >
Fibaro FGBS001 Universal Binary Sensor not working in ...
Z-wave binding: binding-zwave - 2.0.0.SNAPSHOT. here my .items: /* Auge */ Number Flur_Auge_Lux {channel="zwave:device:5b97d7f6:node6: ...
Read more >
Compare Packages Between Distributions - DistroWatch.com
aj-snapshot-0.9.9 akira-0.0.16 akkadian-13.00 akku-1.1.0 ... android-studio-stable-2021.3.1.17 android-tools-33.0.3p1 ... assertion-error-20191227-git
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found