mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
Migrating, moving, rustdesk to another dockerhost makes already setup devices not work. #1414
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#1414
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DoTheEvo on GitHub (Feb 21, 2023).
Bug Description
Using S6-overlay image. Rustdesk works very well for few months now.
Before we even started to actually use it, I tested migration to another docker host and it just worked. I just down-ed the container. Copy the directory to another docker host, run it. Changed DNS A-record of rust.example.com to point to a new public IP and set up port forwarding.
It just worked as far as I remember.
But now when we actually do real migration and theres like 30 machines setup with this rustdesk server... and I do the steps above.. and when I run linux client or windows client and try to connect to the PCs in the recent connection section I get notice that that the remote desktop is offline.
The green dot down in status panel is green on all clients(I still have other ways to connect to many of them to check this) so clients are actually able to connect to the server I guess.
Adding new PC works just fine, and after some time even one of the machines started to connect, but one is just not enough and it was hours. Surely heartbeat or something does not take like several hours?
Initially I was sure that issue is on my side, because the new setup where I am migrating it is behind bit complicated opnsense setup... but with that suspicion I tried to move it to another 2 different locations with public ports and setup correctly port forwarding and DNS A record pointing to that public IP and its the same results.
The notice of offline is immediate, there is nothing in rustdesk docker logs, in firewall(mentioned opnsense) I do see traffic happening on port 21115 and 21116.
btw, most clients are installed using the long windows name with host and key set
The moment I up the original container on the old docker host and change port forwarding and or also DNS records(depending where I was testing new deployment) everything works straight away. All machines are instant connected nicely.
Any help on how to investigate this issue further? Deeper logging set somewhere?
Also I noticed that
db_v2.sqlite3being constantly at 4k, whiledb_v2.sqlite3-walgrows in size... shouldnt the stuff from WAL get committed to the database at some point? When I opened the databse to check out whats inside in sqlitebrowser it automatically put them all together. But that did not play role when I tried to re-create container with this database.Thnx.
docker-compose.yml
.env
How to Reproduce
try move rustdesk to a different docker host and see if everything works as it should
Expected Behavior
for rustdesk to work after move
Operating system(s) on local side and remote side
dockerhost - archlinux, clients - windows10; 8.1; archlinux desktop
RustDesk Version(s) on local side and remote side
1.1.9
Screenshots
Additional Context
No response
@rustdesk commented on GitHub (Feb 21, 2023):
#763
@rustdesk commented on GitHub (Feb 21, 2023):
Try restart on controlled side, maybe dns cache not updated there, etc. Appologies, we can not dive in for you, we are busy coding. Let us know please when you figure it out.
@shayaknyc commented on GitHub (May 21, 2023):
having the exact same issue as OP. did you figure out a solution?
@DoTheEvo commented on GitHub (May 21, 2023):
nope, I setup rust2.extemple.com as a new url and uninstall / install clients again, now set to use rust2.example.com
@thejohnha commented on GitHub (Jan 10, 2024):
I'm also having this issue. I created a new rustdesk self-hosted server, copied the old id_ed25519 and id_ed25519.pub keys to the new server, but I cannot connect to any of my endpoints. I saw someone here with the same question: https://www.reddit.com/r/rustdesk/comments/zu55rq/moving_selfhost_to_different_server_how_to_do/