gravity-sync icon indicating copy to clipboard operation
gravity-sync copied to clipboard

Initial sync fails on a fresh install of Ubuntu 22.04.x + pi-hole + gravity-sync

Open gcs8 opened this issue 1 year ago โ€ข 0 comments

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

  1. 192.168.127.1 0.0% 201 0.2 0.2 0.2 0.4 0.0
  2. (waiting for reply)
  3. 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`

gcs8 avatar Dec 30 '23 00:12 gcs8