You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
Describe the Issue
The custom.list only gets pulled from the primary, if it already exists on the secondary server.
Screenshots
[ INFO ] remote has custom.list
[ INFO ] No custom.list Detected on local
[ INFO ] No Replication Required
[ INFO ] Gravity Sync PULL Aborting (4 seconds)
sudo touch custom.list
[ OK ] Analyzing gravity.db on remote
[ OK ] Analyzing gravity.db on local
[ OK ] Analyzing custom.list on remote
[ OK ] Analyzing custom.list on local
[ WARN ] Differenced custom.list Detected
[ WARN ] Replication Required
Configuration:
OS for Primary/Secondary: Raspbian Buster lite
Platform for Primary/Secondary: Raspberry Pi3/Raspberry Pi Zero W
SSH Server/Client: OpenSSH
SSH Authentication: Keypair
Gravity Sync Version: 1.8.1
Pi-hole Versions: v5.0
Additional Context
Add any other context about the problem here. If you have any advanced flags set in your gravity-sync.conf please list them here.
The text was updated successfully, but these errors were encountered:
I think I've been able to reproduce this. It seems like it pulls and creates a new one if the gravity.db has a change, but if it only detects the custom.list doesn't exist, it doesn't proceed to the pull. I wasn't thinking through a situation where that would be the only thing that would need to be replicated, but if you've just made the change to the primary custom.list and nothing else, it wouldn't get there until the other piece of the puzzle was changed. Which you wouldn't know to do.
I've added a HASHMARK=$((HASHMARK+1) to the function that does this detection, basically treating it as a difference in comparison (typically it would do an MD5 hash between the two files, but if the file is just missing, it's still a difference) -- I'll test this and a couple other tweaks and likely roll 1.8.2 out soon.
Describe the Issue
The custom.list only gets pulled from the primary, if it already exists on the secondary server.
Screenshots
[ INFO ] remote has custom.list
[ INFO ] No custom.list Detected on local
[ INFO ] No Replication Required
[ INFO ] Gravity Sync PULL Aborting (4 seconds)
sudo touch custom.list
[ OK ] Analyzing gravity.db on remote
[ OK ] Analyzing gravity.db on local
[ OK ] Analyzing custom.list on remote
[ OK ] Analyzing custom.list on local
[ WARN ] Differenced custom.list Detected
[ WARN ] Replication Required
Configuration:
Additional Context
Add any other context about the problem here. If you have any advanced flags set in your
gravity-sync.conf
please list them here.The text was updated successfully, but these errors were encountered: