BigBoot / AutoKuma

AutoKuma is a utility that automates the creation of Uptime Kuma monitors based on Docker container labels. With AutoKuma, you can eliminate the need for manual monitor creation in the Uptime Kuma UI.
MIT License
312 stars 15 forks source link

Timeout issue #20

Closed radokristof closed 7 months ago

radokristof commented 7 months ago

The container reports the following:

2024-04-08T22:12:46.795216414Z WARN [kuma_client::util] Error while sending event: The server rejected the login: Too frequently, try again later.
2024-04-08T22:12:55.750538968Z WARN [kuma_client::client] Timeout while waiting for Kuma to get ready...
2024-04-08T22:12:55.750579380Z WARN [autokuma::sync] Encountered error during sync: It looks like the server is expecting a username/password, but none was provided

Usually the monitors does sync after some time, but basically for some reason, sometimes it can not authenticate. No config change in between and sometimes the issues solves itself and syncs.

BigBoot commented 7 months ago

You are running into the rate limit, I think you were running multiple autokuma instances simultaneously right? Otherwise I'm not sure how you would hit that limit.

You can try increasing the delay between syncs by increasing AUTOKUMA__SYNC_INTERVAL (the default is 5.0 seconds)

radokristof commented 7 months ago

Thank you, it seems that indeed that was the problem!