gravity-sync
gravity-sync copied to clipboard
CNAME syncing not pushing properly, pull works
version 4.0.4, everything running properly, but DNS CNAMEs don't push:
โ Initializing Gravity Sync (4.0.4)
โ Loading gravity-sync.conf
โ Detecting local Pi-hole installation
โ Detecting remote Pi-hole installation
โ Gravity Sync remote peer is configured
โ Evaluating arguments: PUSH
ยป Remote target user@ip
โ Validating pathways to Pi-hole
โ Validating pathways to DNSMASQ
โ Hashing the remote Gravity Database
โ Comparing to the local Gravity Database
โ Hashing the remote DNS Records
โ Comparing to the local DNS Records
! DNS CNAMEs not detected on the remote Pi-hole
! Static DHCP Addresses not detected on the local Pi-hole
! No replication is required at this time
โ Gravity Sync PUSH exited after 2 seconds
I manually added INCLUDE_CNAME to the conf:
# grep CNAME /etc/gravity-sync/gravity-sync.conf
INCLUDE_CNAME='1'
Everything else seems to sync fine. Ideas? Thanks.
On a whim, I tried a pull from the other host, and that actually worked:
# gravity-sync pull
โ Initializing Gravity Sync (4.0.4)
โ Loading gravity-sync.conf
โ Detecting local Pi-hole installation
โ Detecting remote Pi-hole installation
โ Gravity Sync remote peer is configured
โ Evaluating arguments: PULL
ยป Remote target user@ip
โ Validating pathways to Pi-hole
โ Validating pathways to DNSMASQ
โ Hashing the remote Gravity Database
โ Comparing to the local Gravity Database
โ Hashing the remote DNS Records
โ Comparing to the local DNS Records
! DNS CNAMEs has been detected on the remote Pi-hole
! DNS CNAMEs not detected on the local Pi-hole
! Static DHCP Addresses not detected on the local Pi-hole
! Replication of Pi-hole settings is required
โ Performing backup of local Gravity Database
โ Performing backup of remote Gravity Database
โ Checking Gravity Database copy integrity
โ Pulling the remote Gravity Database
โ Replacing the local Gravity Database
โ Setting file ownership on Gravity Database
โ Setting file permissions on Gravity Database
โ Performing backup of local DNS Records
โ Performing backup of remote DNS Records
โ Pulling the remote DNS Records
โ Replacing the local DNS Records
โ Setting file ownership on DNS Records
โ Setting file permissions on DNS Records
! No local 05-pihole-custom-cname.conf detected
โ Performing backup of remote DNS CNAMEs
โ Pulling the remote DNS CNAMEs
โ Replacing the local DNS CNAMEs
โ Setting file ownership on DNS CNAMEs
โ Setting file permissions on DNS CNAMEs
โ Updating local FTLDNS configuration
โ Reloading local FTLDNS services
โบ Performing replicator diagnostics
โ Rehashing the remote Gravity Database
โ Recomparing to local Gravity Database
โ Rehashing the remote DNS Records
โ Recomparing to local DNS Records
โ Rehashing the remote DNS CNAMEs
โ Recomparing to local DNS CNAMEs
! Static DHCP Addresses not detected on the local Pi-hole
โ Saving updated data hashes
โ Sending hashes to Gravity Sync peer
โ Setting permissions on remote hashing files
โ Logging successful PULL
โ Gravity Sync PULL completed after 22 seconds
I observed the same behavior with static DHCP addresses: sync didn't work, but pull did. (I too am running version 4.0.4.)
Can confirm on 4.0.4. Push host sees that CNAME is not in sync, but ignores it. Pull works fine. Quite a few possibilities, will take a stab a bit later - could be rsync, permissions, backup file etc.
This PR might contain a fix for this issue. https://github.com/vmstan/gravity-sync/pull/384
I haven't checked any further than reading its description.
Ah, you're right. Missed it because the PR has multiple independent changes. That said, if it only happens on initial push, it should work eventually using smart sync.
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.