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

Gravity Sync issue - Prompt for user password on every command

Open CiscoKid08 opened this issue 1 year ago โ€ข 3 comments
trafficstars

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

CiscoKid08 avatar Apr 13 '24 19:04 CiscoKid08

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!

CiscoKid08 avatar Apr 13 '24 19:04 CiscoKid08

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.

necromancyr avatar Apr 17 '24 19:04 necromancyr

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.

necromancyr avatar Apr 17 '24 20:04 necromancyr

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.

FastWReX avatar Jul 22 '24 19:07 FastWReX

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