gravity-sync
gravity-sync copied to clipboard
Gravity Sync issue - Prompt for user password on every command
Hi All,
Sorry for the idiot question but I'm sure there's something very simple I'm missing here... From both my primary and secondary dietpi's, I'm getting prompted for a password on each and every command that gravity-sync runs. This happens irrespective if I push or pull and ultimately, the whole process just times out and I'm not able to complete either action.
I can SSH successfully between both Pi's so I assume host key verification isn't the issue here.
Any suggestions?
root@Pihole1:~# gravity-sync pull
โ Initializing Gravity Sync (4.0.7)
โ Loading gravity-sync.conf
โ Detecting local Pi-hole installation
[email protected]'s password: tallation
โ Detecting remote Pi-hole installation
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
โ Gravity Sync remote peer is configured
โ Evaluating arguments: PULL
ยป Remote target [email protected]
โ Validating pathways to Pi-hole
โ Validating pathways to DNSMASQ
[email protected]'s password: atabase
โ Hashing the remote Gravity Database
โ Comparing to the local Gravity Database
[email protected]'s password:
[email protected]'s password: ds
โ Hashing the remote DNS Records
โ Comparing to the local DNS Records
[email protected]'s password:
! DNS CNAMEs not detected on the local Pi-hole
[email protected]'s password:
^C^X^C^V^Z
[2]+ Stopped gravity-sync pull
I wiped the /gravity-sync/ dir and re-ran gravity-sync config and everything is working again. Though if someone has some insight on what caused the issue, I'd love to know. - Thanks!
This is happening to me as well - can't figure out how to fix it and deleting the gravity-sync dir isn't fixing it.
Solved it. DietPi has Dropbear as it's SSH by default. Installing OpenSSH isn't sufficient, you need to change to use OpenSSH as your SSH setup as well (in the software menu of DietPi's config app). Once that's done, remove the old keys/config, redo, and you're good to go.
I just had that problem on my secondary PiHole. I used "gravity-sync purge", rebooted my Raspberry Pi Zero 2 W, and then reinstalled it on just that one.
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.