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

Unable to complete garvity-sync config between pi-hole containers on Synology NAS and Raspberry PI 3B+

Open hamah99 opened this issue 1 year ago • 4 comments

Running pi-hole in a container on a Syno NAS running DSM 7.2 and in a container on my rpi 3B+. pi-hole is up and running in both containers and I believe the installation of gravity-sync went well on both as well but I can't successfully run gravity-sync config on either end.

DSM 7.2:

∞ Starting Gravity Sync Configuration

bash: line 278: /usr/local/bin/gravity-sync: Permission denied

rpi 3B+

∞ Detecting remote Pi-hole installationssh: connect to host 192.168.0.200 port 22: Connection refused

✗ Detecting remote Pi-hole installation

! No remote Pi-hole installed detected

Configuration could not be completed successfully, as no instances of Pi-hole could be detected

on one or more of your systems. Please make sure they are running on both peers and try again.

I'm pretty green at this so any assistance would be appreciated.

hamah99 avatar Jan 30 '24 07:01 hamah99

Having the same issue. Managed to get it down to ssh service not running in the pihole container on my NAS. After lots of mucking about, managed to manually install and run ssh, but it obviously needs re doing whenever the container is restarted. Need to explore how to add that to the container start up and I'm pretty green too so any help welcome 😀

Leethal1977 avatar Feb 01 '24 01:02 Leethal1977

I ended up switching to pihole-cloudsync. I encountered problems with my gravity db getting corrupted and then saw this closed issue that mentioned a fork found here. I'm now trying to manually merge the 2 scripts. Pihole-cloudsync works well otherwise but if I can't fix I'll just rip up any plans to automagically sync 2 pihole instances.

hamah99 avatar Feb 23 '24 16:02 hamah99

I ended up switching to pihole-cloudsync. I encountered problems with my gravity db getting corrupted and then saw this closed issue that mentioned a fork found here. I'm now trying to manually merge the 2 scripts. Pihole-cloudsync works well otherwise but if I can't fix I'll just rip up any plans to automagically sync 2 pihole instances.

That issue is one reason why I've resisted ever modifying the SQLite database itself.

vmstan avatar Feb 23 '24 18:02 vmstan

I ended up finding that the pihole-cloudsync script was possibly (probably?) corrupting the Gravity db as mentioned in this thread. I swapped the script for this fork that resolved the corruption issue. I then simply performed a Update Gravity from the tools in pihole. All seems good now.

hamah99 avatar Feb 24 '24 01:02 hamah99

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.

vmstan avatar Jul 26 '24 18:07 vmstan