Closed rr326 closed 3 months ago
Remote Pi-hole Config Directory: /etc/pihole
This doesn't appear to be correct for how the primary would view the secondary.
That was the clue I needed.
I followed the installation scripts - primary then secondary, and for some reason it didn't fill in the remote info on the primary configuration.
I fixed those manually and it worked.
I'm not sure why, but maybe this:
During the installation at some point it was failing. I realized I didn't have authorized_keys
set up to allow ssh from primary to secondary. I fixed it.
Maybe that was the issue? Perhaps "I can properly ssh to remote" isn't working properly in the requirements validation phase?
My problem is solved. (thanks.) Let me know if you want any more info from me, otherwise I can close this.
# REQUIRED SETTINGS ##########################
REMOTE_HOST='192.168.1.129'
REMOTE_USER='pi'
# CUSTOM VARIABLES ###########################
# Pi-hole Folder/File Customization - Only need to be customized when using containers
LOCAL_PIHOLE_DIRECTORY='/home/pi/dev/docker/pihole/etc-pihole'
# REMOTE_PIHOLE_DIRECTORY='' # Remote Pi-hole data directory
LOCAL_DNSMASQ_DIRECTORY='/home/pi/dev/docker/pihole/etc-dnsmasq.d'
# REMOTE_DNSMASQ_DIRECTORY='' # Remote DNSMASQ/FTL data directory
LOCAL_FILE_OWNER='999:999'
# REMOTE_FILE_OWNER='' # Remote file owner for Pi-hole
# Pi-hole Docker/Podman container name - Docker will pattern match anything set below
LOCAL_DOCKER_CONTAINER='pihole'
# REMOTE_DOCKER_CONTAINER='' # Remote Pi-hole container name
# HIDDEN FIGURES #############################
# See https://github.com/vmstan/gravity-sync/wiki/Hidden-Figures
Effective July 26, 2024, this project has been retired. Thank you for your use and enthusiasm for a project that began as a few lines of bash in a Slack channel and envolved into something far more complex, and used by many thousands of Pi-hole enthusiasts over the last four years.
Issue Description I have a new install. Two docker containers. One will be master. Slave is empty. When I push from master, it fails at "Pushing the local Gravity Database". No explanation why. When I pull from slave, it succeeds. Both are configured.
Push:
You can see four "! xxx" which I assume are not problems, just showing sync needs to happen.
When I run 'gravity-sync compare' from master:
Configuration Details
Master
Slave