fzeli
2025-Sep-11 12:49 UTC
rsync didn't get server startup line (though the server does send a startup line)
I'm new to rsync and want to set up a rsync server and client. The server
runs on termux on Android. The client runs on msys2 on Windows.
Server rsyncd.conf is
```
read only = yes
list = yes
log file = /data/data/com.termux/files/home/wksp/rsyncd.log
pid file = /data/data/com.termux/files/home/wksp/rsyncd.pid
[wksp]
path = /data/data/com.termux/files/home/wksp
```
Server is started with `rsync --daemon --config=./rsyncd.conf --port=8073`
Client uses `rsync -av rsync://192.168.137.110:8073/wksp/ /d/temp/` to
copy remote ~/wksp to local /d/temp
The client reports this error:
> rsync: didn't get server startup line
> rsync error: error starting client-server protocol (code 5) at main.c(1850)
[Receiver=3.4.1]
In server's rsyncd.log, there is this line at the end: `rsync allowed
access on module wksp from PC_NAME (PC ip)`
In Wireshark, both the client and server send `@RSYNCD: 32.0 sha512 sha256
sha1 md5 md4\n`. Then the client sends `wksp\n`, and the server closes
the connection.
What's wrong with the setup? Thanks very much!