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
295 stars 15 forks source link

AutoKuma is not adding monitors to Uptime-Kuma #85

Open masterchief324 opened 1 month ago

masterchief324 commented 1 month ago

image image

Preceding are my docker-composes for Uptime-Kuma, AutoKuma, and an example docker I'm trying to get added to Uptime Kuma. As you can see below, I can see where the tags are being generated, but AutoKuma is still not adding any monitors to Uptime-Kuma.

image

BigBoot commented 1 month ago

Hi, are the any messages in the AutoKuma log?

The first thing that comes to mind is that you are using container_name as id, which might include characters that are not valid, you should probably first slugify them like in the example:

{# Generate an autokuma id by slugifying the "container_name" #}
{% set id = container_name | slugify %}

Besides that it's hard to say anything without logs.

masterchief324 commented 1 month ago

image

I don't get logs.

BigBoot commented 1 month ago

Hmm this is weird, are you sure the jellyseer container actually exists and is on the same docker host as autokuma?

masterchief324 commented 1 month ago

I can absolutely confirm that the jellyseerr container exists and responds. image

image

papirov commented 1 month ago

I have the same issue. No errors, no logs besides the pretty logo.. I'm running a docker swarm cluster, here is an example of a service i want to monitor:

`
duplicati: image: lscr.io/linuxserver/duplicati:latest environment:

Here is kuma and autokuma composes: ` uptime-kuma: image: louislam/uptime-kuma volumes:

networks: docker_network: external: true name: "containerNetwork" `

Have tried with and without docker-socket-proxy (when I did without, I had it running on the manager)

Any suggestions?

masterchief324 commented 1 month ago

papirov, out of curiosity, what platform are you running docker on?

papirov commented 1 month ago

4 nodes in the cluster are running on raspbian, and 1 node is on the latest Ubuntu. Autokuma is definitely talking to Uptime-Kuma, because at the two times that UptimeKuma had to be restarted/upgraded, AutoKuma logged its unhappiness image

masterchief324 commented 1 month ago

Any chance Docker is installed as a Snap package for you, as opposed to a apt?

papirov commented 1 month ago

0 chance. All have been installed through apt.

masterchief324 commented 1 month ago

Perfect. I had a prior issue with a friend who couldn't do GPU passthrough because of snap, and I was concerned this issue was related.

BigBoot commented 1 month ago

Here are some things I can think of:

papirov commented 1 month ago

Here are some things I can think of:

  • Make sure you're using the stable/latest version, not master, at least for testing
  • if you're using swarm, make sure the labels end up on the containers, not the services. Alternatively enable support for services in AutoKuma. Though swarm support definitely is less tested than plain Docker.

My labels are definitely on services. But I am dumb! I needed this variable: AUTOKUMA__DOCKER__SOURCE: "both" Restarted and it's working on swarm. Woohoo!!