gravity-sync
gravity-sync copied to clipboard
Initial sync fails on a fresh install of Ubuntu 22.04.x + pi-hole + gravity-sync
Issue Description Initial sync fails on a fresh install of Ubuntu 22.04.x + pi-hole + gravity-sync
Ubuntu version(s): 22.04.3 LTS Pi-Hole Version(s): v5.17.2 Gravity-Sync Version(s): 4.0.5
gcs8@pi-hole-primary:~$ gravity-sync compare โ Initializing Gravity Sync (4.0.5) โ Loading gravity-sync.conf โ Detecting local Pi-hole installation โ Detecting remote Pi-hole installation โ Gravity Sync remote peer is configured โ Evaluating arguments: COMPARE ยป Remote target [email protected] โ Validating pathways to Pi-hole โ Validating pathways to DNSMASQ โ Hashing the remote Gravity Database โ Comparing to the local Gravity Database ! Differences detected in the Gravity Database โ Hashing the remote DNS RecordsConnection reset by 10.13.37.42 port 22 โ Hashing the remote DNS Records
Configuration Details pi-hole-primary: 192.168.127.151 IP-Sec tunnel pi-hole-replica: 10.13.37.42 Full Ubuntu 22.04 LTS VMs on ESXi
10 packets transmitted, 10 received, 0% packet loss, time 9013ms rtt min/avg/max/mdev = 21.356/23.599/27.454/1.972 ms
traceroute to 192.168.127.151 (192.168.127.151), 64 hops max 1 10.13.37.1 0.114ms 0.072ms 0.085ms 2 192.168.1.1 21.544ms 21.680ms 20.965ms 3 192.168.127.151 20.718ms 23.726ms 20.955ms
Connection to 192.168.127.151 22 port [tcp/ssh] succeeded!
pi-hole-primary (192.168.127.151) -> 10.13.37.42 (10.13.37.42) 2023-12-30T00:30:17+0000 Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Host Loss% Snt Last Avg Best Wrst StDev
- 192.168.127.1 0.0% 201 0.2 0.2 0.2 0.4 0.0
- (waiting for reply)
- 10.13.37.42 0.0% 201 22.4 23.2 20.2 32.9 2.6
`gcs8@pi-hole-primary:~$ curl -sSL https://raw.githubusercontent.com/vmstan/gs-install/main/gs-install.sh | bash โ Gravity Sync Installation Script ยป Validating User Permissions โ Sudo utility detected [sudo] password for gcs8: โ gcs8 has sudo powers ยป Validating Install of Required Components โ SSH has been detected โ GIT has been detected โ RSYNC has been detected โ Systemctl has been detected ยป Performing Warp Core Diagnostics โ Local installation of Pi-hole has been detected ยป Executing Gravity Sync Deployment โ Creating sudoers.d permissions file โ Cleaning up bash.bashrc You may need to exit your terminal or reboot before running 'gravity-sync' commands โ Creating Gravity Sync Directories Cloning into '/etc/gravity-sync/.gs'... remote: Enumerating objects: 2791, done. remote: Counting objects: 100% (231/231), done. remote: Compressing objects: 100% (138/138), done. remote: Total 2791 (delta 170), reused 101 (delta 87), pack-reused 2560 Receiving objects: 100% (2791/2791), 613.69 KiB | 5.25 MiB/s, done. Resolving deltas: 100% (1779/1779), done. โ Starting Gravity Sync Configuration โ Initializing Gravity Sync (4.0.5) โ Evaluating arguments: CONFIGURE โ Creating new gravity-sync.conf
Welcome to the Gravity Sync Configuration Wizard Please read through https://github.com/vmstan/gravity-sync/wiki before you continue Make sure that Pi-hole is running on this system before your configure Gravity Sync
ยป Gravity Sync Remote Host Settings โบ Remote Pi-hole host address ? IP: 10.13.37.42 โ Saving 10.13.37.42 host to gravity-sync.conf โบ Remote Pi-hole host username ? User: gcs8 โ Saving [email protected] to gravity-sync.conf ยป Gravity Sync SSH Key Settings โ Generating new SSH key โ Moving private key to /etc/gravity-sync/gravity-sync.rsa โ Moving public key to /etc/gravity-sync/gravity-sync.rsa.pub โ Loading gravity-sync.conf โบ Registering SSH key to 10.13.37.42 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/etc/gravity-sync/gravity-sync.rsa.pub" [email protected]'s password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh -p '22' '[email protected]'" and check to make sure that only the key(s) you wanted were added.
โ SSH key registered to 10.13.37.42 ยป Pi-hole Installation Settings โ Detecting local Pi-hole installation โ Default install of Pi-hole detected โ Detecting remote Pi-hole installation โ Remote install of Pi-hole detected
Configuration has been completed successfully, once Gravity Sync has been installed your other node, your next step is to push all of the of data from the currently authoritative Pi-hole instance to the other. ex: gravity-sync push
If that completes successfully you can automate future sync jobs to run at a regular interval on both of your Gravity Sync peers. ex: gravity-sync auto
โ Gravity Sync CONFIGURE completed after 42 seconds`