Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot read properties of null (reading '_dockerType') #3861

Closed
2 tasks done
jamess60 opened this issue Oct 9, 2023 · 3 comments · Fixed by #3864
Closed
2 tasks done

[Bug] Cannot read properties of null (reading '_dockerType') #3861

jamess60 opened this issue Oct 9, 2023 · 3 comments · Fixed by #3864
Labels
bug Something isn't working

Comments

@jamess60
Copy link

jamess60 commented Oct 9, 2023

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

When creating a monitor with type docker container (polls the docker.sock file) and entering the container name, the monitor turns from green to yellow and this notification is sent via telegram:

Cannot read properties of null (reading '_dockerType')

This is in the uptimekuma container log
2023-10-09T15:21:57+02:00 [MONITOR] WARN: Monitor #30 'Overseer (Plex requests)': Failing: Cannot read properties of null (reading '_dockerType') | Interval: 60 seconds | Type: docker | Down Count: 0 | Resend Interval: 0

The only reference I can find is in #2141 but this was linked to a deprecated feature and marked wontfix.

👟 Reproduction steps

  1. Start an uptimekuma:latest container with the docker.sock volume mapped
  2. create a monitor for a container on that host using container name instead of ID

👀 Expected behavior

Monitor should be green as the service is up

😓 Actual Behavior

Service is yellow and error is sent to log

🐻 Uptime-Kuma Version

1.21.3

💻 Operating System and Arch

Debian 12 x64

🌐 Browser

Firefox NA

🐋 Docker Version

Docker 24.0.5

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@jamess60 jamess60 added the bug Something isn't working label Oct 9, 2023
@chakflying
Copy link
Collaborator

For the "Docker Host" option in the monitor settings, can you try to select the host again and test that it is working?

image

Test available when you click on "Edit" under the "Docker Host" option:
image

@jamess60
Copy link
Author

jamess60 commented Oct 9, 2023

Testing the host works but the issue persists

@chakflying
Copy link
Collaborator

You can try to delete and recreate the monitor, which should fix the issue.

The bug here seems to be that the "Docker Host" option is not marked as required, and the data is somehow missing in the monitor config after changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants