Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Doesnt detect docker install #176

Closed
PartTimeJS opened this issue Mar 5, 2021 · 13 comments
Closed

Doesnt detect docker install #176

PartTimeJS opened this issue Mar 5, 2021 · 13 comments

Comments

@PartTimeJS
Copy link

Issue Description

When following the instructions, the script does not detect the docker install. The instructions aren't very clear on if there is anything additional to do for installing when running pihole in docker and may be missing a few details?

Configuration Details

@nh-mike
Copy link
Contributor

nh-mike commented Mar 6, 2021

Hi PartTimeJS,

I have been running it with docker for quite some time with no problems.

Please supply the commands you've run, the output you get when running these commands, and any answers you've given during the interactive setup, otherwise troubleshooting will be impossible.

Cheers.

@pochacho99
Copy link

I am having the same problem, secondary Pihole is a docker container in Synology. I enter "export GS_INSTALL=secondary && curl -sSL https://gravity.vmstan.com | bash" via SSH into the Synology and the reply is:

Gravity Sync by @vmstan
https://github.com/vmstan/gravity-sync

[✓] Checking Short Range Sensors
[i] Validating System Authorization
[✓] Sudo Utility Detected
Password:
[✓] Current User (abc123) Has SUDO Powers
[i] Scanning for Required Components
[✓] OpenSSH Binaries Detected
[✓] RSYNC Binaries Detected
[✓] SUDO Binaries Detected
[✗] CRONTAB Binaries Not Installed
[✓] SQLITE3 Binaries Detected
[✗] GIT Binaries Not Installed
[i] Performing Warp Core Diagnostics
[!] No Local Pi-hole Install Detected
[✓] Docker Binaries Detected

@nh-mike
Copy link
Contributor

nh-mike commented Mar 8, 2021

Hi @pochacho99
Can you please start a new thread in Discussions?
without knowing anything about your setup I cannot say what the problem may be, but it would be worth addressing as it's own problem.

Can you also please provide some details on your operating environment (i.e. is your 2nd pihole a local install or a docker image? If a docker image, are you using the official pihole/pihole or something else?)

Look forward to helping in a discussions thread.

@pochacho99
Copy link

I think i found the cause, i am not using the official docker image, so that's probably why the script can't detect the pihole docker install. I am using the cbcrowe/pihole-unbound image.

@vmstan
Copy link
Owner

vmstan commented Mar 8, 2021

That is correct. The installer validates you're using the official image.

@PartTimeJS
Copy link
Author

PartTimeJS commented Mar 8, 2021

That is correct. The installer validates you're using the official image.

I am using the official image. The result I see is equivalent to what pochacho posted: #176 (comment).

@vmstan
Copy link
Owner

vmstan commented Apr 27, 2021

I would suggest using the alternative install method if you're sure you meet all the install requirements.

git clone https://github.com/vmstan/gravity-sync.git

@talondnb
Copy link

talondnb commented Jul 10, 2021

I think i found the cause, i am not using the official docker image, so that's probably why the script can't detect the pihole docker install. I am using the cbcrowe/pihole-unbound image.

Have you done anything to overcome this? I'm using the same unbound image, would prefer not to have to reconfigure everything..

Edit: just found this - #168

@pochacho99
Copy link

pochacho99 commented Jul 10, 2021 via email

@talondnb
Copy link

I managed to get it all going this morning after I posted the last reply. Pretty straight forward, if you're still interested.

@pochacho99
Copy link

Yep definitely interested if you wouldn't mind sharing. My primary pihole is a docker and my secondary is a physical.

@talondnb
Copy link

talondnb commented Jul 10, 2021

Ok i'll try break it down simply but i'm using both docker installs so your milage may vary slightly with your physical host..

  • obviously make sure you have all the required packages installed first
  • set your intended users on each host to allow sudo with no password ('sudo visudo' and add username ALL=(ALL) NOPASSWD:ALL to the end of the file
  • run 'git clone https://github.com/vmstan/gravity-sync.git' installer to your Secondary pihole, cd to the folder and run through the wizard to generate the gravity-sync.conf file into the settings/ folder (ensure your folder paths are spot on; ~/pihole/etc-pihole doesn't work, you have to use full path)
  • after the script has run, modify settings/gravity-sync.conf and uncomment/update the CONTAIMAGE line to say CONTAIMAGE='cbcrowe/pihole-unbound' (make sure you remove trailing comment)
  • try to run ./gravity-sync.sh compare and determine if the setup is working as expected
  • if all is OK, run ./gravity-sync.sh automate to add a cron job onto your secondary host, verify with crontab -l after this has run
  • final check is to make a change onto your primary pihole UI (e.g. add a test DNS record) and verify the sync occurs after your timeframe configured in the prior step

Also, I wanted to reiterate that the setup is all done on the secondary pihole (your physical pihole) and this host does all the hard work, the primary is simply your management UI.

@pochacho99
Copy link

pochacho99 commented Jul 10, 2021 via email

Repository owner locked and limited conversation to collaborators Sep 7, 2021
@vmstan vmstan closed this as completed Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants