Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting remote Pi-hole installationLoad key - Permission denied #425

Open
newbieraf opened this issue Jan 8, 2024 · 2 comments
Open

Comments

@newbieraf
Copy link

Hi there

Linux Newbie here - please bare with me

  • I have a pihole running on my proxmox as a docker container (10.1.1.3)
  • I have a second pihole running on a RPi also as a docker container (10.1.1.4)
  • I want to use Gravity Sync to sync from 10.1.1.3 to 10.1.1.4

Things I've done:

  • Created a dedicated Gravity Sync with sudoless permissions on each of the piholes
  • I ran the Gravity sync install script on each pihole initially with a different sudo account (don't ask why)
  • doing a pull from 10.1.1.4 to 10.1.1.3 works
  • doing a push from 10.1.1.3 to 10.1.1.4 always gives me "Detecting remote Pi-hole installationLoad key "/etc/gravity-sync/gravity-sync.rsa": Permission denied"
  • It also asks me for a remote password which I have tripled checked I have entered correctly however it doesn't recognise it and keeps prompting for a password
  • To verify the password I have logged in with the dedicated gravity account successfully plus I made the it has sudo without having to enter the password

I must be doing something wrong but I don't know what it is. Can you please help?

Thanks

@traxeon
Copy link

traxeon commented Mar 11, 2024

Run the command recommended on the install page. Also make sure you clear out any configurations you performed (e.g. remove /etc/gravity-sync and /usr/local/bin/gravity-sync before running the install script. I ran into this when I originally ran the install under root, it failed, then decided to run it under my non-root account. The files remaining did not have permissions to be written/overwritten since they were originally run as root.

@newbieraf
Copy link
Author

Thanks so much @traxeon and sorry about the late reply. I removed Gravity Sync completely and used the standard script on the site to reinstall. When I now do a compare from 10.1.1.3 (primary) it works, however when I do the same from 10.1.1.4 (secondary) I get “ unable to validate configuration folder for Pi-hole” on the primary. Im doing both compares as the non-root account. What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants