Open ericclose opened 4 months ago
I also encountered the same problem
1.23.13
Ubuntu 22.04.4
my docker-compose.yml
name: uptime
services:
uptime-kuma:
image: louislam/uptime-kuma:1.23.13
restart: always
ports:
- 3001:3001
volumes:
- ./data:/app/data
environment:
- https_proxy=http://172.x.x.x:7890
- http_proxy=http://172.x.x.x:7890
2024-07-11T16:43:07+08:00 [MONITOR] WARN: Monitor #1 'server-api': Pending: socket.getPeerCertificate is not a function | Max retries: 10 | Retry: 2 | Retry Interval: 20 seconds | Type: http
2024-07-11T16:43:27+08:00 [MONITOR] WARN: Monitor #1 'server-api': Pending: socket.getPeerCertificate is not a function | Max retries: 10 | Retry: 3 | Retry Interval: 20 seconds | Type: http
same here when used in conjunction with self-signed corporate certificates
This is already happening on 1.23.11 but will not cause the Monitor to go down:
kuma_1 | 2024-08-01T15:26:28+02:00 [MONITOR] ERROR: Caught error
kuma_1 | 2024-08-01T15:26:28+02:00 [MONITOR] ERROR: res.request.res.socket.getPeerCertificate is not a function
kuma_1 | 2024-08-01T15:26:28+02:00 [MONITOR] ERROR: Caught error
kuma_1 | 2024-08-01T15:26:28+02:00 [MONITOR] ERROR: res.request.res.socket.getPeerCertificate is not a function
kuma_1 | 2024-08-01T15:26:29+02:00 [MONITOR] ERROR: Caught error
kuma_1 | 2024-08-01T15:26:29+02:00 [MONITOR] ERROR: res.request.res.socket.getPeerCertificate is not a function
kuma_1 | 2024-08-01T15:26:30+02:00 [MONITOR] ERROR: Caught error
kuma_1 | 2024-08-01T15:26:30+02:00 [MONITOR] ERROR: res.request.res.socket.getPeerCertificate is not a function
kuma_1 | 2024-08-01T15:26:30+02:00 [MONITOR] ERROR: Caught error
kuma_1 | 2024-08-01T15:26:31+02:00 [MONITOR] ERROR: res.request.res.socket.getPeerCertificate is not a function
kuma_1 | 2024-08-01T15:26:31+02:00 [MONITOR] ERROR: Caught error
kuma_1 | 2024-08-01T15:26:31+02:00 [MONITOR] ERROR: res.request.res.socket.getPeerCertificate is not a function
In the newest version 1.23.13 this will cause the monitor to go down:
kuma_1 | 2024-08-01T15:22:31+02:00 [MONITOR] WARN: Monitor #19 'xxxx (xxxx)': Failing: socket.getPeerCertificate is not a function | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0
Also we got another issue which prevents us from using 1.23.12, so we'r sticking to 1.23.11 probably (this may be fixed in 1.23.13 but as we cant use that, we tried 1.23.12 instead):
kuma_1 | 2024-08-01T15:23:46+02:00 [MONITOR] WARN: Monitor #52 'xxxx (xxxx)': Failing: Cannot set properties of undefined (setting 'valid') | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0
We tried upgrading as none of our Monitors is displaying the certificate expiry time. Which we hoped is fixed in 1.23.13 but is probably not. Maybe a issue with the bundled node version in the docker container?
//EDIT: We'r also using a corporate certificate added using "NODE_EXTRA_CA_CERTS"
I have the same problem using corporate certificates.
+1
π I have found these related issues/pull requests
I unable find any related issues
π‘οΈ Security Policy
Description
Uptime Kuma v1.23.13 (podman deployment) always displays the error message "socket.getPeerCertificate is not a function," and all tested websites are down.
π Reproduction steps
Running Uptime Kuma v1.23.13 using docker
π Expected behavior
It should work as normal...
π Actual Behavior
socket.getPeerCertificate is not a function
π» Uptime-Kuma Version
1.23.13
π» Operating System and Arch
Fedora 40
π Browser
Google Chrome 126.0.6478.61
π₯οΈ Deployment Environment
π Relevant log output