Skip to content

Bug - AutoKuma stop working when unknown monitor type exist in UptimeKuma "Failed to deserialize MonitorList" #167

@arsenicks

Description

@arsenicks

I wanted to add few external monitor in Uptime Kuma, so I created a GlobalPing monitor. AutoKuma instantly started to freak out because kuma-client doesn't know what "globalping" is. I got the errors in the logs but thing seems to still work, untill I restarted Uptime Kuma. After that it looks like AutoKuma is now unable to authenticate. If I delete the globalping probe, AutoKuma doesn't complain anymore and it just work.

I understand kuma-client or autokuma might not support adding and managing all the different monitor type but I expect it to at least ignore them.

Could you adjust client.rs or monitor.rs to ignore unknown value and only managed variant type it does support ?

This is the log I have after a restart of Uptime Kuma, it probably cleared the Autokuma session and because of the globalping monitor issue, it break the auth process for AutoKuma.

autokuma  | called `Result::unwrap()` on an `Err` value: Error("unknown variant `globalping`, expected one of `group`, `http`, `port`, `ping`, `keyword`, `json-query`, `grpc-keyword`, `dns`, `docker`, `real-browser`, `push`, `steam`, `gamedig`, `mqtt`, `kafka-producer`, `sqlserver`, `postgres`, `mysql`, `mongodb`, `radius`, `redis`, `tailscale-ping`, `snmp`, `rabbitmq`", line: 0, column: 0)
autokuma  | 2026-02-26 22:12:04.154 [kuma_client::client] ERROR: Failed to deserialize MonitorList
autokuma  | 
autokuma  | thread 'tokio-runtime-worker' panicked at /usr/src/autokuma/kuma-client/src/client.rs:254:26:
autokuma  | called `Result::unwrap()` on an `Err` value: Error("unknown variant `globalping`, expected one of `group`, `http`, `port`, `ping`, `keyword`, `json-query`, `grpc-keyword`, `dns`, `docker`, `real-browser`, `push`, `steam`, `gamedig`, `mqtt`, `kafka-producer`, `sqlserver`, `postgres`, `mysql`, `mongodb`, `radius`, `redis`, `tailscale-ping`, `snmp`, `rabbitmq`", line: 0, column: 0)
autokuma  | 2026-02-26 22:12:12.521 [kuma_client::client] WARN: Timeout while waiting for Kuma to get ready...
autokuma  | 2026-02-26 22:12:12.522 [autokuma::sync] WARN: Encountered error during sync: It looks like the server is expecting a username/password, but none was provided

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions