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

Sync doesn't show any errors, but does not upload to second pi-hole #310

Open
mattkwi opened this issue Apr 25, 2024 · 7 comments
Open

Sync doesn't show any errors, but does not upload to second pi-hole #310

mattkwi opened this issue Apr 25, 2024 · 7 comments
Assignees

Comments

@mattkwi
Copy link

mattkwi commented Apr 25, 2024

What happened?

Logs show it is successfully logging into first pihole, downloading backup, then successfully logging into second backup, but then it never uploads, and process repeats

No other errors in log

Version

Latest Container ID: 47373363f103 (unraid)

Log output

4/25/2024, 4:03:25 PM: ✔️ Successfully signed in to http://192.168.2.2/admin!
4/25/2024, 4:03:25 PM: ➡️ Downloading backup from http://192.168.2.2/admin...
4/25/2024, 4:03:25 PM: ✔️ Backup from http://192.168.2.2/admin completed!
4/25/2024, 4:03:25 PM: ➡️ Signing in to http://192.168.2.4/admin...
4/25/2024, 4:03:25 PM: Waiting 30 minutes...
4/25/2024, 4:33:25 PM: ➡️ Signing in to http://192.168.2.2/admin...
4/25/2024, 4:33:32 PM: ✔️ Successfully signed in to http://192.168.2.2/admin!
4/25/2024, 4:33:32 PM: ➡️ Downloading backup from http://192.168.2.2/admin...
4/25/2024, 4:33:32 PM: ✔️ Backup from http://192.168.2.2/admin completed!
4/25/2024, 4:33:32 PM: ➡️ Signing in to http://192.168.2.4/admin...
4/25/2024, 4:33:32 PM: Waiting 30 minutes...
4/25/2024, 5:03:32 PM: ➡️ Signing in to http://192.168.2.2/admin...
4/25/2024, 5:03:40 PM: ✔️ Successfully signed in to http://192.168.2.2/admin!
4/25/2024, 5:03:40 PM: ➡️ Downloading backup from http://192.168.2.2/admin...
4/25/2024, 5:03:40 PM: ✔️ Backup from http://192.168.2.2/admin completed!
4/25/2024, 5:03:40 PM: ➡️ Signing in to http://192.168.2.4/admin...
4/25/2024, 5:03:40 PM: Waiting 30 minutes...
@RauchenwaldC
Copy link

RauchenwaldC commented Aug 5, 2024

I had the same issue with my primary PiHole running on a separate host at 192.168.178.10 and the secondary PiHole running in Docker on unRAID running on 192.168.178.20.

Initially, OrbitalSync was configured in Bridge mode (sharing the IP with my unRAID machine) and, as such, didn't have access to 192.168.178.20.
Once I changed the OrbitalSync container to also run on the Host Network (br0 in unRAID), it started working, and the log now finally shows the upload.

8/5/2024, 2:12:39 PM: ➡️ Signing in to http://192.168.178.10/admin...
8/5/2024, 2:12:39 PM: ✔️ Successfully signed in to http://192.168.178.10/admin!
8/5/2024, 2:12:39 PM: ➡️ Downloading backup from http://192.168.178.10/admin...
8/5/2024, 2:12:39 PM: ✔️ Backup from http://192.168.178.10/admin completed!
8/5/2024, 2:12:39 PM: ➡️ Signing in to http://192.168.178.20/admin...
8/5/2024, 2:12:39 PM: ✔️ Successfully signed in to http://192.168.178.20/admin!
8/5/2024, 2:12:39 PM: ➡️ Uploading backup to http://192.168.178.20/admin...
8/5/2024, 2:12:40 PM: ✔️ Backup uploaded to http://192.168.178.20/admin!
8/5/2024, 2:12:40 PM: ➡️ Updating gravity on http://192.168.178.20/admin...
8/5/2024, 2:12:45 PM: ✔️ Gravity updated on http://192.168.178.20/admin!
8/5/2024, 2:12:45 PM: ✔️ Success: 1/1 hosts synced.
8/5/2024, 2:12:45 PM: Waiting 30 minutes...

@mattkwi
Copy link
Author

mattkwi commented Aug 8, 2024

I had the same issue with my primary PiHole running on a separate host at 192.168.178.10 and the secondary PiHole running in Docker on unRAID running on 192.168.178.20.

Initially, OrbitalSync was configured in Bridge mode (sharing the IP with my unRAID machine) and, as such, didn't have access to 192.168.178.20. Once I changed the OrbitalSync container to also run on the Host Network (br0 in unRAID), it started working, and the log now finally shows the upload.

8/5/2024, 2:12:39 PM: ➡️ Signing in to http://192.168.178.10/admin...
8/5/2024, 2:12:39 PM: ✔️ Successfully signed in to http://192.168.178.10/admin!
8/5/2024, 2:12:39 PM: ➡️ Downloading backup from http://192.168.178.10/admin...
8/5/2024, 2:12:39 PM: ✔️ Backup from http://192.168.178.10/admin completed!
8/5/2024, 2:12:39 PM: ➡️ Signing in to http://192.168.178.20/admin...
8/5/2024, 2:12:39 PM: ✔️ Successfully signed in to http://192.168.178.20/admin!
8/5/2024, 2:12:39 PM: ➡️ Uploading backup to http://192.168.178.20/admin...
8/5/2024, 2:12:40 PM: ✔️ Backup uploaded to http://192.168.178.20/admin!
8/5/2024, 2:12:40 PM: ➡️ Updating gravity on http://192.168.178.20/admin...
8/5/2024, 2:12:45 PM: ✔️ Gravity updated on http://192.168.178.20/admin!
8/5/2024, 2:12:45 PM: ✔️ Success: 1/1 hosts synced.
8/5/2024, 2:12:45 PM: Waiting 30 minutes...

I really appreciate the response. So I did this this (and I think I did previously as well) and this is what I get in the logs on repeat.

8/7/2024, 8:34:29 PM: ⚠ Failure: An unexpected error was thrown:

Any suggestions?

@RauchenwaldC
Copy link

It looks like whatever setup you had first was at least able to connect to your primary server, but now that's not working anymore. Are both your PiHole instances running on unRAID? If not, which one is running on another device?

@mattkwi
Copy link
Author

mattkwi commented Aug 8, 2024

So pi-hole 1 is unraid docker container and pi-hole 2 runs on a small nuc running ubuntu. OrbitalSync is also unraid docker container. Both pi-hole 1 and OrbitalSync are using network br0 at the moment. Both IPs and passwords are correct.

@RauchenwaldC
Copy link

I have it the other way around. My primary PiHole is running on a Raspberry Pi (since I'd like my primary DNS server to be online when unRAID is offline for whatever reason) using the IP address 192.168.178.10.
OrbitalSync and PiHole on unRAID are both on br0.
OrbitalSync has the fixed IP 192.168.178.3 assigned (although I doubt that matters since it doesn't have any ports mapped to it), and PiHole 192.168.178.20.

Technically it should work the way you have it right now as well, since OrbitalSync should be able to access both PiHole servers.

How about your Docker settings in Settings > Docker?
Screenshot 2024-08-08 at 12 17 28

@mattkwi
Copy link
Author

mattkwi commented Aug 8, 2024

That is my reason for the 2 pi-holes as well, so I can pull down the unraid server or tinker without losing internet. All my devices transfer over automatically since router gives out both addresses. This seems to work well and I really don't have any issues with the pi-holes themselves. Anyhow, yes I am not sure why it is not working, but I do appreciate the assistance. I do not have an IP assigned to OrbitalSync, but like you said, no ports are mapped.

image

@mattkwi
Copy link
Author

mattkwi commented Aug 8, 2024

8/8/2024, 6:09:38 AM: ⚠ Failure: An unexpected error was thrown:

image

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

3 participants