添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

Hi team,

I've been running a MeshCentral server (on a RaspberryPi) on a local network (Network A) with multiple MeshAgents and everything is connecting and working fine on this network. I have another MeshAgent installed on a remote RaspberryPi (Network B). Network B is connected to Network A over a Wireguard VPN.

I have my MeshCentral server running in Hybrid mode, with the MeshAgent on Network B connecting using

MeshServer=wss://{MeshCentral IP Address}:443/agent.ashx

And this was working fine for a few weeks until it suddenly stopped working a few days ago.

I've rebooted both the MeshCentral, VPN Server and remote computer. I've uninstalled and reinstalled the MeshAgent - still the MeshAgent will not connect.

Doing a bit more debugging, when connecting the MeshAgent manually on the remote computer I get this output:

Connecting to: wss://{MeshCentral IP Address}:443/agent.ashx
2022-01-01 08:22:39 PM: Control Channel Idle Timeout = 120 seconds
Connected.
Timeout waiting for Server, launching cached meshcore...
Mesh Server Connection Error [12]
Connecting to: wss://{MeshCentral IP Address}:443/agent.ashx
2022-01-01 08:24:45 PM: Control Channel Idle Timeout = 120 seconds
Connected.
Mesh Server Connection Error [16]
Connecting to: wss://{MeshCentral IP Address}:443/agent.ashx
2022-01-01 08:26:52 PM: Control Channel Idle Timeout = 120 seconds
Connected.

While on the sever trace I get:

20:24:45 - AGENT: New agent at {VPN Server Address}:44563
20:24:45 - WEBREQUEST: ({VPN Server Address}) /agent.ashx/.websocket
20:22:39 - AGENT: New agent at {VPN Server Address}:53863
20:22:39 - WEBREQUEST: ({VPN Server Address}) /agent.ashx/.websocket

Any advise what I could do to get it back up and running?

Thanks!

Weird. I have not seen this before. The agent connects but the server does not do anything. I am going to take a crazy guess and ask you to restore a older version of the database if you can. In "meshcentral-backups" you should have older versions, copy these offsite and restore the "*.db" files in "meshcentral-data" to older versions.

I am going to take a wild guess that your using NeDB and the DB got corrupt.

Thanks for the quick response. I am using NeDB due to the limited number of devices.

I tried the above, but unfortunately it still doesn't seem to work. To recap what I did:

I ran sudo systemctl stop meshcentral on the server, copied the backup "*.db" files in "meshcentral-backup" from a backup prior to the meshagent failing to "meshcentral-data".

Ran sudo systemctl start meshcentral turned on tracing and saw the same output as above with the agent still showing as offline.

I removed the agent from MeshCentral and it doesn't register it again.

Checked the agent output on the remote device and the same output was appearing there as well...

All MeshAgents on the local network (Network A) are working fine still

Hi @Ylianst , would you have any other recommendations for me? Is there anything else I could do to debug this?

Thanks in advance :-)

Have the excat same issue with users over VPN.
Wenn OpenVPN stops, the Agent connects, else the agent is offline.
Ping from the agent over vpn to Mesh host no problem.

PS C:\Program Files\XX\XX> .\XX.exe run
Connecting to: wss://rmm.XX.net:443/agent.ashx
2023-06-22 08:54:32 AM: Control Channel Idle Timeout = 120 seconds
PS C:\Program Files\XX\XX> ping rmm.XX.net
Ping wird ausgeführt für rmm.XX.net [45.XX.XX.210] mit 32 Bytes Daten:
Antwort von 45.XX.XX.210: Bytes=32 Zeit=25ms TTL=58
Antwort von 45.XX.XX.210: Bytes=32 Zeit=24ms TTL=58