louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
55.81k stars 5.02k forks source link

Cannot connect to the socket server. [ Reconnecting ] #5011

Open rajveer-bhati opened 1 month ago

rajveer-bhati commented 1 month ago

โš ๏ธ Please verify that this question has NOT been raised before.

๐Ÿ›ก๏ธ Security Policy

๐Ÿ“ Describe your problem

Hello,

We are encountering a connection timeout issue when attempting to monitor. The system is deployed on a Linux server and managed using PM2. Despite configuring the environment to handle a large number of requests, the monitoring process fails with connection timeouts, leading to incomplete or failed checks for many of the URLs. Using nginx as reverse proxy. Below is the nginx configruation.

nginx.conf ```nginx server { listen 80; listen [::]:80; server_name uptime.codiantdev.com; location /{ return 301 https://uptime.codiantdev.com$request_uri; } } server { listen 443 ssl http2; #listen [::]:443 ssl http2; server_name uptime.codiantdev.com; client_max_body_size 200M; ssl_certificate /etc/nginx/ssl/codiantdev.crt; ssl_certificate_key /etc/nginx/ssl/codiantdev.key; access_log /var/log/nginx/uptime-access.log; error_log /var/log/nginx/uptime-error.log; access_log /var/log/monitoring/uptime-access.log updated_json_combined; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://localhost:3001/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } ```

๐Ÿ“ Error Message(s) or Log

connection

๐Ÿป Uptime-Kuma Version

3.3.17

๐Ÿ’ป Operating System and Arch

Ubuntu 22.04

๐ŸŒ Browser

Chrome

๐Ÿ–ฅ๏ธ Deployment Environment

CommanderStorm commented 1 month ago

image

Seems to work on my end. Could you please provide