404 errors on sync/backup endpoints (UGOS 1.18.x) — make sensors optional or handle 404 gracefully #256
stefanodeg
started this conversation in
(en/de) General / Allgemeines
Replies: 3 comments 17 replies
|
Thanks for reporting this! Weird - I thought UGOS always comes with a pre-installed backup app. Will have a look at it ... /tom |
3 replies
|
I still get these things. are they related?
|
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
On UGOS 1.18.1.0098 (DXP2800-9B4F), two endpoints return HTTP 404 every 60s, flooding the logs:
Integration version:
v2026.09.1Root cause
These endpoints are not available on UGOS 1.18.x — the sync/backup module is not present in this firmware version. The integration polls them unconditionally:
ALL_NAS_COMMON_CONFIG_ENTITIESinentities.pyincludesshow_connections_of_all_userswhich polls/ugreen/v1/web/sync/general/getevery 60s_get_backup_runtime_data()inapi.pycalls_get_backup_tasks()→/ugreen/v2/web/syncbackup/task/listevery 60s via the config coordinator_get_dynamic_backup_entities()retries with/ugreen/v1/web/sync/general/geton first failureDisabling the entity in the registry does not stop the polling —
config_entitiesis built fromALL_NAS_COMMON_CONFIG_ENTITIESwithout filtering disabled entities, andget_entity_data_from_api()fetches all grouped endpoints regardless.Suggested fix
nas_onlineis handled). A_backup_endpoint_failedflag works well.__init__.py, so disabled sensors don't trigger API calls.Workaround (temporary)
I patched
api.pyandentities.pylocally, but these changes are lost on every integration update:_backup_endpoint_failedflag inapi.py— after first 404 on backup endpoint, skips further callsshow_connections_of_all_usersentity inentities.pyEnvironment
Thanks for the great integration! 🙏
All reactions