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

password repeat issues in LXC #451

Open
z1haze opened this issue Jun 13, 2024 · 2 comments
Open

password repeat issues in LXC #451

z1haze opened this issue Jun 13, 2024 · 2 comments

Comments

@z1haze
Copy link

z1haze commented Jun 13, 2024

Issue Description
I have my pihole servers install as lxc's (i used proxmox-helper-scripts) which install it using a "automatic login" to the shell. That said, I did go into sshd_config and enable root login and I set a password for the root accounts on both machines. (this is all on a private network, so no risk, please don't lecture). Anyway, after doing so I installed your integration on both containers, provided the password and it generated the ssh keys, etc. I make some changes on instance on and kicked off a dry-run to see how it would work, and it asked me for my password on literally every step before it would move on to the next step. I'm not sure if this is a setup issue, or an issue with the lxc, but I would not expect to have to enter the password a dozen times for this to function. The command I ran was gravity-sync compare Below is the full output, but after each and every line printed, it required me to re-enter the password.

root@pihole:~/.ssh# gravity-sync compare
∞ Initializing Gravity Sync (4.0.7)
✓ Loading gravity-sync.conf
✓ Detecting local Pi-hole installation
root@10.0.1.3's password:  installation
✓ Detecting remote Pi-hole installation
root@10.0.1.3's password: 
✓ Gravity Sync remote peer is configured
✓ Evaluating arguments: COMPARE
» Remote target root@10.0.1.3
✓ Validating pathways to Pi-hole
✓ Validating pathways to DNSMASQ
root@10.0.1.3's password: ty Database
✓ Hashing the remote Gravity Database
✓ Comparing to the local Gravity Database
! Differences detected in the Gravity Database
root@10.0.1.3's password: 
root@10.0.1.3's password: ecords
✓ Hashing the remote DNS Records
✓ Comparing to the local DNS Records
! Differences detected in the DNS Records
root@10.0.1.3's password: 
! DNS CNAMEs not detected on the local Pi-hole
root@10.0.1.3's password: 
! Static DHCP Addresses not detected on the local Pi-hole
! Replication of Pi-hole settings is required
∞ Gravity Sync COMPARE completed after 15 seconds
root@pihole:~/.ssh#
@z1haze
Copy link
Author

z1haze commented Jun 13, 2024

whoops this looks like a duplicate of #418 and #442 ... perhaps update your documentation this seems to be a common issue

@z1haze z1haze changed the title issues with LXC password repeat issues in LXC Jun 13, 2024
@z1haze
Copy link
Author

z1haze commented Jun 13, 2024

Can confirm that adding the lxc user to the sudoers file fixes the issue, however it did require that i reinstall gravity-sync to make it work. e.g. usermod -aG sudo root (in my case)

The documentation for install mentions it will setup a passwordless sudo something or-other during the installation but appears it doesn't work.

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

1 participant