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

Installing: Passwordless Sudo #438

Open
rr326 opened this issue Jan 29, 2024 · 0 comments
Open

Installing: Passwordless Sudo #438

rr326 opened this issue Jan 29, 2024 · 0 comments

Comments

@rr326
Copy link

rr326 commented Jan 29, 2024

Issue Description
The gravity-sync install script requires a sudo password, even when you properly have passwordless sudo set up.

Why it matters: I have scripts to install my system (ansible, actually). But I can't install gravity-sync that way since it blocks on "enter password".

It's particularly weird because passwordless sudo is definitely working for my install user.

Configuration Details
(Ignore the 'no route to host' - I've got different issues on this particular install. But the passwordless issue has happened on 3 different new installs.)

 gravity-sync info
∞ Initializing Gravity Sync (4.0.7)
✓ Loading gravity-sync.conf
✓ Detecting local Pi-hole installation
∞ Detecting remote Pi-hole installationssh: connect to host 192.168.1.135 port 22: No route to host
✗ Detecting remote Pi-hole installation
∞ Checking on peerssh: connect to host 192.168.1.135 port 22: No route to host
✓ Gravity Sync falling back to peerless mode
! Please configure Gravity Sync on remote host
✓ Evaluating arguments: INFO
Local Software Versions
Pi-hole
  Pi-hole version is v5.17.3 (Latest: v5.17.3)
  web version is v5.21 (Latest: v5.21)
  FTL version is v5.24 (Latest: v5.24)
Debian GNU/Linux 12
Linux 6.1.0-rpi7-rpi-v8 aarch64
bash 5.2.15(1)-release
OpenSSH_9.2p1 Debian-2+deb12u1, OpenSSL 3.0.11 19 Sep 2023
rsync  version 3.2.7  protocol version 31
Sudo version 1.9.13p3
git version 2.39.2
Docker version 25.0.1, build 29cf629

Global Instance Settings
SSH Port: 22 (default)
SSH Key: /etc/gravity-sync/gravity-sync.rsa
Automated Replication: Disabled

Local Instance Settings
Local Hostname: pi-haven
Local Pi-hole Type: docker
Local Pi-hole Config Directory: /home/pi/dev/docker/pihole/etc-pihole
Local DNSMASQ Config Directory: /home/pi/dev/docker/pihole/etc-dnsmasq.d
Local Gravity Sync Binary: /usr/local/bin/gravity-sync
Local Gravity Sync Config Directory: /etc/gravity-sync
Local Pi-hole Container Name: pihole
Local Docker Binary Directory: /usr/bin/docker
Local File Owner Settings: 999:999

Remote Instance Settings
Remote Hostname/IP: 192.168.1.135
Remote Username: pi
Remote Pi-hole Type: none
Remote Pi-hole Config Directory: /etc/pihole
Remote DNSMASQ Config Directory: /etc/dnsmasq.d
Remote File Owner Settings: pihole:pihole
∞ Gravity Sync INFO exited after 13 seconds

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