Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

rsync error: protocol incompatibility (code 2) #21

Open
Drakx opened this issue Jan 2, 2023 · 1 comment
Open

rsync error: protocol incompatibility (code 2) #21

Drakx opened this issue Jan 2, 2023 · 1 comment

Comments

@Drakx
Copy link

Drakx commented Jan 2, 2023

Hi,
I'm getting the following issues on the sender node

rsync error: protocol incompatibility (code 2) at compat.c(610) [sender=3.2.5] Unable to initiate dnsmasq.d rsync. Is the receiver online? tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified protocol version mismatch -- is your shell clean? (see the rsync manpage for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(610) [sender=3.2.5] Unable to initiate dnsmasq.d rsync. Is the receiver online?

The receiver node appears to be fine:
docker logs pihole-sync-receiver, chpasswd: password for 'root' changed Server listening on :: port 22. Server listening on 0.0.0.0 port 22.

This has only recently started to complain about rsync.

@UltherEgo
Copy link

UltherEgo commented Feb 26, 2023

I have the same problem.

ssh: connect to host 192.168.100.11 port 22222: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(231) [sender=3.2.7]
Host key verification failed.
telnet 192.168.100.11 22222
Trying 192.168.100.11...
Connected to 192.168.100.11.
Escape character is '^]'.
SSH-2.0-OpenSSH_9.1
^]^Ce

The author made a mistake in entryPoint.sh

 rsync -a -P --exclude '01-pihole.conf' /mnt/etc-dnsmasq.d/ -e "ssh -p ${REM_SSH_PORT}" root@${REM_HOST}:/mnt/etc-dnsmasq.d/ --delete

rsync -a -P --exclude '01-pihole.conf' /mnt/etc-dnsmasq.d/ -e "ssh -p ${REM_SSH_PORT}" root@${REM_HOST}:/mnt/etc-dnsmasq.d/ --delete

It won't work for /etc/pihole/ and /etc/dnsmasq.d/ and other locations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants