mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
[Bug] Cannot read properties of null (reading '_dockerType') #2665
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#2665
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jamess60 on GitHub (Oct 9, 2023).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ 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
👀 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
@chakflying commented on GitHub (Oct 9, 2023):
For the "Docker Host" option in the monitor settings, can you try to select the host again and test that it is working?
Test available when you click on "Edit" under the "Docker Host" option:

@jamess60 commented on GitHub (Oct 9, 2023):
Testing the host works but the issue persists
@chakflying commented on GitHub (Oct 9, 2023):
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.