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

Performing backup of remote Gravity Database Fails

Open the1wolf opened this issue 2 years ago • 7 comments
trafficstars

I've just done an install of gravity-sync on two pi-holes, one is primary, one is secondary. I've installed gravity-sync with no issues, I ran gravity-sync compare on PH1,which tells me there are differences in the compared databases. I then run gravity-sync push from PH1, and then I see there there are differences detected in the gravity database. I then see performing backup of remote gravity database, and after a few minutes, the first character before "performing backup of remote gravity database" turns red and the operation stops.

I'm new at this and I'm not sure how to fix this error. I'd sure appreciate any help.

the1wolf avatar Dec 13 '22 03:12 the1wolf

This can be removed. Issue resolved. If anyone reads it, that is.................................

the1wolf avatar Dec 21 '22 19:12 the1wolf

I am having this exact issue. Did you do anything in particular to resolve it?

adamgreenberg07 avatar Dec 26 '22 12:12 adamgreenberg07

When I tried it originally, I had dietpi installed, with pi-hole and unbound. After attempting to fix the issue, I found some forums that suggested being on raspbian was a better choice. I then setup my two pi's with raspbain, pi-hole and unbound. I ran this command, apt update && apt install sqlite3 sudo git cron rsync ssh, then this, sudo EDITOR=nano visudo, then in this file, I commented out the sudo line and added a line that looks like this, ##%sudo ALL=(ALL:ALL) ALL, added this, %sudo ALL=(ALL:ALL) NOPASSWD:ALL. After this was done I did, sudo reboot now.

Once that was done, I just followed the gravity-sync install guide and it worked. Hope this will help!!

the1wolf avatar Dec 26 '22 14:12 the1wolf

thanks for responding. I am on dietpi too with pihole and unbound. The primary is on a RPi, the secondary is on a virtual machine. I'd like to avoid redoing both on my piholes. I will try see if a new secondary pihole on a VM using raspbian will work.

adamgreenberg07 avatar Dec 28 '22 13:12 adamgreenberg07

It's a pain to switch, took me less than a hour total. I'd like to tell you it will work if you make the switch, but I have no idea. Keep me posted on your progress.

the1wolf avatar Dec 28 '22 15:12 the1wolf

I am also having a failed remote backup, I am running full pihole as root in a container on both and it also keeps prompting me for a password.

sanegaming avatar Feb 18 '23 06:02 sanegaming

same problem

cesarlaforet avatar Jul 20 '23 00:07 cesarlaforet

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