henrygd / beszel

Lightweight server monitoring hub with historical data, docker stats, and alerts.
MIT License
2.41k stars 73 forks source link

try install Beszel on Synology , firewall off but agent can not connect to host #67

Open dvnhan91 opened 3 months ago

dvnhan91 commented 3 months ago

version: "3.9" services: beszel: container_name: beszel image: henrygd/beszel:latest volumes:

id | jou20d3g19te3ux -- | -- level | ERROR (8) created | 2024-07-29 02:24:29.711 UTC message | Failed to connect: data.err | dial tcp 192.168.8.202:45876: i/o timeout data.port | 45876 data.server | 192.168.8.202
henrygd commented 3 months ago

A timeout does seem like a firewall or misconfiguration issue.

Someone else had it working on Synology in #58, but they had a separate problem because Synology's docker version is out of date currently.

Are you able to run the hub okay but can't connect to the port?

Can you test using telnet from a remote machine?

telnet <agent-ip> <port>
dvnhan91 commented 3 months ago

image both are running ok

i try the same installation on my dietpi (orangepi3b) and it work right away. im sure nothing block the port 45876 on my synology.

"Can you test using telnet from a remote machine?

telnet "

can you explain further how to do this

Inch-high commented 2 months ago

Hi @dvnhan91,

Limited by what i can see in the screenshot but its interesting that the agent doesn't have an IP address. I've set mine up in bridge mode which seems to be working fine.

Excuse the bright screenshot (HDR fun): image

Granted my host dashboard isn't on Synology, but try putting the agent into bridge mode so its assigned an IP. Also make sure you set the port.

Additional screenshot of mine just in the container manager on my Synology: image

delta-whiplash commented 2 months ago

Hello everyone am facing the same issue image

But telnet is working

image

you can test it by your own by using this repo for a proof of concept : https://github.com/AuxXxilium/arc

henrygd commented 2 months ago

@delta-whiplash Do your error logs in PocketBase say it timed out?

How are you trying to connect? Are you using Docker? If so, what does your docker compose look like?

Are you using the lan address for the agent, or localhost, or something like host.docker.internal?

delta-whiplash commented 2 months ago

OMG am soo dumb, I forgot my ssh public key nevermind all working :)