mutagen-io / mutagen

Fast file synchronization and network forwarding for remote development
https://mutagen.io
Other
3.47k stars 153 forks source link

Error creating sync, .mutagen/agents/0.17.6/mutagen-agent: No such file or directory , alpha: Win11 x64, beta: Ubuntu 22.04.5 LTS, stuck at "Probing endpoint (POSIX)..." #511

Closed ChieftainY2k closed 1 month ago

ChieftainY2k commented 1 month ago

I'm getting an error when creating a new sync, followed instructions closely, installed mutagen-agents.tar.gz along with mutagen.exe

Alpha is Win11 x64 Beta is Ubuntu 22.04.5 LTS (VM)

Alpha:

mutagen version
> 0.17.6

$ ssh -V
OpenSSH_9.8p1, OpenSSL 3.0.15 3 Sep 2024

Beta:

ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.11, OpenSSL 1.1.1f  31 Mar 2020

Command:

mutagen sync create --name="code" "c:\code\" "user@host:2224:/code
Probing endpoint (POSIX)...
(...getting stuck until timeout.)

Daemon output:

$ MUTAGEN_LOG_LEVEL=debug  mutagen daemon run
2024-10-08 09:29:34.397432 [I] [forward] Looking for existing sessions
2024-10-08 09:29:34.397986 [I] [forward] Session manager initialized
2024-10-08 09:29:34.397986 [I] [sync] Looking for existing sessions
2024-10-08 09:29:34.397986 [I] [sync] Session manager initialized
2024-10-08 09:29:44.510529 [I] [sync.sync_vlJNjf0s] Connecting to alpha endpoint
2024-10-08 09:29:44.511056 [I] [sync.sync_vlJNjf0s] Connecting to beta endpoint
2024-10-08 09:29:44.511056 [D] [sync.sync_vlJNjf0s.alpha.watching] Attempting to establish recursive watch
2024-10-08 09:29:44.512661 [D] [sync.sync_vlJNjf0s.alpha.watching] Watch successfully established
2024-10-08 09:29:44.512661 [D] [sync.sync_vlJNjf0s.alpha.watching] Attempting to enable accelerated scanning
2024-10-08 09:29:45.474440 [E] [sync.sync_vlJNjf0s.beta] bash: line 1: .mutagen/agents/0.17.6/mutagen-agent: No such file or directory
2024-10-08 09:29:47.036573 [D] [sync.sync_vlJNjf0s.alpha.watching] Accelerated scanning now available
2024-10-08 09:29:47.037124 [D] [sync.sync_vlJNjf0s.alpha] Saving cache to disk
kanevbg commented 1 month ago

"Probing endpoint (POSIX)..." Started happening for me with OpenSSH_9.9p1. Before that I was with 9.8p1 and it worked without issues.

jeremyVignelles commented 1 month ago

Seems related to https://github.com/git-for-windows/git/issues/5199 An update of git for windows had some bug in msys-2.0.dll. Restoring msys-2.0.dll from a previous version of git-for-windows did the trick for me. Just a quick note: don't mv msys-2.0.dll msys-2.0.old.dll from a git bash, for reasons that quickly became obvious 😅

xenoscopic commented 1 month ago

Thanks for identifying the solution @jeremyVignelles, that's a huge help. I'll close this for now then since there's a fix available and it's an upstream issue.

jeremyVignelles commented 1 month ago

Well, shout out to @kanevbg which put me on the right tracks by identifying the culprit. I just came two days later when the issue was already opened on the git for windows repo, with a workaround available 😉

ChieftainY2k commented 1 month ago

Seems related to git-for-windows/git#5199 An update of git for windows had some bug in msys-2.0.dll. Restoring msys-2.0.dll from a previous version of git-for-windows did the trick for me. Just a quick note: don't mv msys-2.0.dll msys-2.0.old.dll from a git bash, for reasons that quickly became obvious 😅

Unlikely in my case, as I don't use git for windows. I'm using newest cygwin for Windows, with the latest updates. The git version is 2.45.1 , and there's no such file as msys-2.0.dll in my filesystem.