-
Notifications
You must be signed in to change notification settings - Fork 91
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] Runtime error when trying to save notification URL #216
Comments
No worries. Can you please go to the Export Collections page ( Or download the JSON file and attach it. |
Here is the export: |
Are you sure this is triggered when trying to save notification settings, or could the timing be coincidence? The trace is not directly related to that. I was able to replicate the error by changing the name of the This is also the first I've heard of systems sometimes not showing up. Regardless, I'll refactor that section of code for the next release to prevent the panic from happening. Can you let me know if you see any errors in the browser devtools console besides "ClientResponseError 0: The request was autocancelled"? That one is expected and harmless. |
* adds error handling for collection lookup (#216)
While I was trying to get the collection export for you I had a lot of crashes in Beszel. I also noticed that other services I had running on Docker were unstable. Tonight I had another look at it. I shut down some of the services and everything became stable again. I assume that my NAS (which hosts the NFS volumes for my Docker services) isn't able to provide fast enough I/O for the Docker services. This is probably also why Beszel is behaving a bit odd. I am going to replace some of the disks in my NAS with SSDs to see if that fixes the issue. |
Sounds good. The specific error you ran into should be impossible now in 0.6.2, but let me know if any other weirdness continues. |
I added the SSDs, but the problem still remains. Sometime when I load Beszel no systems appear and I see the following in the browser's error logs: Then after a while the systems finally show up. Not sure if it is a problem with collecting info from the agents or not. I also see the following errors: Not sure if they're relevant or not. |
Merging your other issue #221 here. I think these are all connected to an underlying issue on your system, probably with Docker. In regard to "Something went wrong while processing your request," please go to the logs page For the concurrent map write - the most likely cause is the agent getting stuck somehow in the Docker related code for so long that the hub re-requests the stats while the previous call is still running. I'll try to add a check for this, but it seems like a symptom of a larger issue. Here are some things that would be helpful to know:
Please put the agent in debug log level and let it run for a few minutes so it fields some requests from the hub. Attach or paste the output here. Thanks |
For context: I have been running Beszel on Docker Swarm. I have replicated the agent to all nodes in the Swarm and was running the App on one of the nodes. The volumes are being served by NFS, which SQLite is not very happy about, but I haven't had too many issues with it in the past. It seems however, that PocketBase and/or Beszel seem to be very sensitive to I/O speed. I have changed to volume of Beszel to use the node's filesystem instead of my NFS share and it is much more stable now. But, of course, I lose the advantages of the Swarm doing it this way. |
Gotcha. This definitely sounds like a compatibility or configuration issue with swarm. I don't use it myself so I haven't done any testing on it. There's related issue you can check out here: #17 From your logs screenshot it looks like your agents may be handling two simultaneous calls from the hub. This would explain your concurrent map write error. Not sure if this is because there are two instances of the hub, or swarm is just grabbing the first node to respond, like the issue above. I do want to add an option for agent -> hub data flow at some point which should fix this. But for now you probably need to use the same workaround that's explained in the linked issue. |
Hi, I am also getting this similar issue, not sure what is triggerring it, I was just going though the data after updating the beszel to 0.8.0. I am attaching both export and logs. |
@saket1999 Thanks, I'll fix that in the next release. |
Hi,
Every time I try to add a notification URL the Beszel container crashes with the following error:
The URL I'm trying to save has the following format: ntfy://user:passw@hostname/topic
Also, sometimes when I refresh the browser it doesn't show me my systems anymore, but I guess that is another problem since no errors are logged for that.
PS: THANK YOU (!) for this project. I have been looking for a long time for a simple monitoring tool with centralized management for alerts. This tool is just perfect.
The text was updated successfully, but these errors were encountered: