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

Error: "Lost connection to the socket server" | It happens on adding a large json file! #2067

Closed
2 tasks done
perpi opened this issue Sep 10, 2022 · 13 comments
Closed
2 tasks done
Labels
area:core issues describing changes to the core of uptime kuma bug Something isn't working

Comments

@perpi
Copy link

perpi commented Sep 10, 2022

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

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

No response

👟 Reproduction steps

Try to add more than 500 items by one json file.

👀 Expected behavior

Adding json files with any size.

😓 Actual Behavior

By importing more than 400 addresses (>50,000 lines in JSON file), Kuma couldn't add them showing this error:

image

🐻 Uptime-Kuma Version

1.18.0

💻 Operating System and Arch

Ubuntu 22.04 64bit

🌐 Browser

Chrome, Edge, Firefox

🐋 Docker Version

Docker version 20.10.12, build 20.10.12-0ubuntu4

🟩 NodeJS Version

v16.16.0

📝 Relevant log output

No response

@perpi perpi added the bug Something isn't working label Sep 10, 2022
@wojcikm

This comment was marked as spam.

@arioch
Copy link

arioch commented Nov 14, 2022

First time user, already ran into this error with a mere 10 items.
What's the current preferred way to bulk import? The usual self-help channels lead me to the JSON import approach.

@jstewart1982
Copy link

We are encountering this issue now, we have just over 1000 sensors and the console seems to be rendered inoperable

@jkrause-Gold
Copy link

Same issue here. Dashboard just keeps cycling through all the endpoints then errors out. "Lost connection to Server Socket Reconnecting......"

Dashboard is almost useless at this point

@JohnnyChiang

This comment was marked as spam.

@PatyYe
Copy link

PatyYe commented Apr 21, 2023

We have 3 instances, 2 of them both with ~300 monitors. These respond without issue but tend to be a bit slow starting up. Our third instance is at 1100 monitors, and we broke down around 800, it keeps loadin and loading.
I cannot use the dashbaord anymore.

If wanted I can provide additional information if it's required to help find the issue.

@nocerainfosec
Copy link

nocerainfosec commented Apr 26, 2023

I am able to add 600 sensors per json file, I have added 1186 sensors to monitor in total, although, server becomes unresponsive after every 2 minutes losing connection with these 1186 sensors. is there anything that can be done to increase performance?

@goksinenki
Copy link

goksinenki commented Oct 19, 2023

I have nearly 600 sensors and same problem. There is nginx proxy before Kuma and configured as told in the articles.

server {
listen 8000;
# Remove '#' in the next line to enable IPv6
# listen [::]:80;
server_name xxxx.xxxxx.local;
location / {
proxy_pass http://localhost:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}

And the nginx log says : "[error] 67395#0: *226 recv() failed (104: Connection reset by peer) while proxying upgraded connection, client: 10.x.y.z, server: xxxx.xxx.local, request: "GET /socket.io/?EIO=4&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3001/socket.io/?EIO=4&transport=websocket", host: "uptime.xxxx.xxx:8000"

Any Updates ?

@CommanderStorm
Copy link
Collaborator

v2 does include a lot of perfomance updates and should allow scaling past ~200-500 monitors.
See https://github.com/louislam/uptime-kuma/milestone/24 for further progress

@CommanderStorm CommanderStorm added the area:core issues describing changes to the core of uptime kuma label Dec 7, 2023
@xyhcode
Copy link

xyhcode commented Dec 9, 2023

I didn't add any monitors, but the actions panel is always like this, refreshes every few seconds, so why
iShot_2023-12-09_10 55 05

@chakflying
Copy link
Collaborator

Obsolete as the backup feature has been dropped in #3892.

@chakflying chakflying closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2023
@hrshv6

This comment was marked as off-topic.

@CommanderStorm

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core issues describing changes to the core of uptime kuma bug Something isn't working
Projects
None yet
Development

No branches or pull requests