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

Syncs are failing with the latest pihole update #162

Closed
mike12806 opened this issue Mar 23, 2023 · 7 comments · Fixed by #163
Closed

Syncs are failing with the latest pihole update #162

mike12806 opened this issue Mar 23, 2023 · 7 comments · Fixed by #163
Assignees

Comments

@mike12806
Copy link

What happened?

My pihole docker containers auto-upgraded to 2023.3.0 overnight and I noticed this morning that orbital syncs were failing to apply to other instances. It seems like the backup was fine, but the replication to other pihole instances was failing.

I reverted pihole to 2023.2.0 and it started working again.

Version

1.5.1-0

Log output

3/23/2023, 11:16:32 AM: ➡️ Signing in to http://192.168.1.112:90/admin...
3/23/2023, 11:16:32 AM: ➡️ Signing in to http://192.168.1.86:90/admin...
3/23/2023, 11:16:32 AM: ✔️ Successfully signed in to http://192.168.1.112:90/admin!
3/23/2023, 11:16:32 AM: ➡️ Uploading backup to http://192.168.1.112:90/admin...
3/23/2023, 11:16:32 AM: ✔️ Successfully signed in to http://192.168.1.86:90/admin!
3/23/2023, 11:16:32 AM: ➡️ Uploading backup to http://192.168.1.86:90/admin...
3/23/2023, 11:16:37 AM: ⚠ Error: Failed to upload backup to "http://192.168.1.112:90/admin".
3/23/2023, 11:16:40 AM: ⚠ Error: Failed to upload backup to "http://192.168.1.86:90/admin".
3/23/2023, 11:16:40 AM: ⚠ Failure: 0/2 hosts synced.
3/23/2023, 11:16:42 AM: Waiting 15 minutes...
3/23/2023, 11:31:42 AM: ➡️ Signing in to http://192.168.1.166/admin...
3/23/2023, 11:31:42 AM: ✔️ Successfully signed in to http://192.168.1.166/admin!
3/23/2023, 11:31:42 AM: ➡️ Downloading backup from http://192.168.1.166/admin...
3/23/2023, 11:31:42 AM: ✔️ Backup from http://192.168.1.166/admin completed!
3/23/2023, 11:31:42 AM: ➡️ Signing in to http://192.168.1.112:90/admin...
3/23/2023, 11:31:42 AM: ➡️ Signing in to http://192.168.1.86:90/admin...
3/23/2023, 11:31:42 AM: ✔️ Successfully signed in to http://192.168.1.112:90/admin!
3/23/2023, 11:31:42 AM: ➡️ Uploading backup to http://192.168.1.112:90/admin...
3/23/2023, 11:31:42 AM: ✔️ Successfully signed in to http://192.168.1.86:90/admin!
3/23/2023, 11:31:42 AM: ➡️ Uploading backup to http://192.168.1.86:90/admin...
3/23/2023, 11:31:47 AM: ⚠ Error: Failed to upload backup to "http://192.168.1.112:90/admin".
3/23/2023, 11:31:49 AM: ⚠ Error: Failed to upload backup to "http://192.168.1.86:90/admin".
3/23/2023, 11:31:49 AM: ⚠ Failure: 0/2 hosts synced.
3/23/2023, 11:31:50 AM: Waiting 15 minutes...
3/23/2023, 11:46:50 AM: ➡️ Signing in to http://192.168.1.166/admin...
3/23/2023, 11:46:50 AM: ✔️ Successfully signed in to http://192.168.1.166/admin!
3/23/2023, 11:46:50 AM: ➡️ Downloading backup from http://192.168.1.166/admin...
3/23/2023, 11:46:50 AM: ✔️ Backup from http://192.168.1.166/admin completed!
3/23/2023, 11:46:50 AM: ➡️ Signing in to http://192.168.1.112:90/admin...
3/23/2023, 11:46:50 AM: ➡️ Signing in to http://192.168.1.86:90/admin...
3/23/2023, 11:46:50 AM: ✔️ Successfully signed in to http://192.168.1.86:90/admin!
3/23/2023, 11:46:50 AM: ➡️ Uploading backup to http://192.168.1.86:90/admin...
3/23/2023, 11:46:50 AM: ✔️ Successfully signed in to http://192.168.1.112:90/admin!
3/23/2023, 11:46:50 AM: ➡️ Uploading backup to http://192.168.1.112:90/admin...
3/23/2023, 11:46:56 AM: ⚠ Error: Failed to upload backup to "http://192.168.1.112:90/admin".
3/23/2023, 11:46:57 AM: ⚠ Error: Failed to upload backup to "http://192.168.1.86:90/admin".
3/23/2023, 11:46:57 AM: ⚠ Failure: 0/2 hosts synced.
3/23/2023, 11:46:58 AM: Waiting 15 minutes...
3/23/2023, 12:01:58 PM: ➡️ Signing in to http://192.168.1.166/admin...
3/23/2023, 12:01:58 PM: ✔️ Successfully signed in to http://192.168.1.166/admin!
3/23/2023, 12:01:58 PM: ➡️ Downloading backup from http://192.168.1.166/admin...
3/23/2023, 12:01:58 PM: ✔️ Backup from http://192.168.1.166/admin completed!
3/23/2023, 12:01:58 PM: ➡️ Signing in to http://192.168.1.112:90/admin...
3/23/2023, 12:01:58 PM: ➡️ Signing in to http://192.168.1.86:90/admin...
3/23/2023, 12:01:58 PM: ✔️ Successfully signed in to http://192.168.1.86:90/admin!
3/23/2023, 12:01:58 PM: ➡️ Uploading backup to http://192.168.1.86:90/admin...
3/23/2023, 12:01:58 PM: ✔️ Successfully signed in to http://192.168.1.112:90/admin!
3/23/2023, 12:01:58 PM: ➡️ Uploading backup to http://192.168.1.112:90/admin...
3/23/2023, 12:02:04 PM: ⚠ Error: Failed to upload backup to "http://192.168.1.112:90/admin".
3/23/2023, 12:02:05 PM: ⚠ Error: Failed to upload backup to "http://192.168.1.86:90/admin".
3/23/2023, 12:02:05 PM: ⚠ Failure: 0/2 hosts synced.
3/23/2023, 12:02:06 PM: Waiting 15 minutes...
3/23/2023, 12:17:06 PM: ➡️ Signing in to http://192.168.1.166/admin...
3/23/2023, 12:17:06 PM: ✔️ Successfully signed in to http://192.168.1.166/admin!
3/23/2023, 12:17:06 PM: ➡️ Downloading backup from http://192.168.1.166/admin...
3/23/2023, 12:17:06 PM: ✔️ Backup from http://192.168.1.166/admin completed!
3/23/2023, 12:17:06 PM: ➡️ Signing in to http://192.168.1.112:90/admin...
3/23/2023, 12:17:06 PM: ➡️ Signing in to http://192.168.1.86:90/admin...
3/23/2023, 12:17:06 PM: ✔️ Successfully signed in to http://192.168.1.112:90/admin!
3/23/2023, 12:17:06 PM: ➡️ Uploading backup to http://192.168.1.112:90/admin...
3/23/2023, 12:17:06 PM: ✔️ Successfully signed in to http://192.168.1.86:90/admin!
3/23/2023, 12:17:06 PM: ➡️ Uploading backup to http://192.168.1.86:90/admin...
3/23/2023, 12:17:12 PM: ⚠ Error: Failed to upload backup to "http://192.168.1.112:90/admin".
3/23/2023, 12:17:13 PM: ⚠ Error: Failed to upload backup to "http://192.168.1.86:90/admin".
3/23/2023, 12:17:13 PM: ⚠ Failure: 0/2 hosts synced.
3/23/2023, 12:17:14 PM: Waiting 15 minutes...
3/23/2023, 12:32:15 PM: ➡️ Signing in to http://192.168.1.166/admin...
3/23/2023, 12:32:15 PM: ✔️ Successfully signed in to http://192.168.1.166/admin!
3/23/2023, 12:32:15 PM: ➡️ Downloading backup from http://192.168.1.166/admin...
3/23/2023, 12:32:15 PM: ✔️ Backup from http://192.168.1.166/admin completed!
3/23/2023, 12:32:15 PM: ➡️ Signing in to http://192.168.1.112:90/admin...
3/23/2023, 12:32:15 PM: ➡️ Signing in to http://192.168.1.86:90/admin...
3/23/2023, 12:32:15 PM: ✔️ Successfully signed in to http://192.168.1.86:90/admin!
3/23/2023, 12:32:15 PM: ➡️ Uploading backup to http://192.168.1.86:90/admin...
3/23/2023, 12:32:15 PM: ✔️ Successfully signed in to http://192.168.1.112:90/admin!
3/23/2023, 12:32:15 PM: ➡️ Uploading backup to http://192.168.1.112:90/admin...
3/23/2023, 12:32:20 PM: ✔️ Backup uploaded to http://192.168.1.112:90/admin!
3/23/2023, 12:32:20 PM: ➡️ Updating gravity on http://192.168.1.112:90/admin...
3/23/2023, 12:32:23 PM: ⚠ Error: Failed to upload backup to "http://192.168.1.86:90/admin".
3/23/2023, 12:32:27 PM: ✔️ Gravity updated on http://192.168.1.112:90/admin!
3/23/2023, 12:32:27 PM: ⚠ Failure: 1/2 hosts synced.
3/23/2023, 12:32:29 PM: Waiting 15 minutes...
3/23/2023, 12:47:29 PM: ➡️ Signing in to http://192.168.1.166/admin...
3/23/2023, 12:47:29 PM: ✔️ Successfully signed in to http://192.168.1.166/admin!
3/23/2023, 12:47:29 PM: ➡️ Downloading backup from http://192.168.1.166/admin...
3/23/2023, 12:47:30 PM: ✔️ Backup from http://192.168.1.166/admin completed!
3/23/2023, 12:47:30 PM: ➡️ Signing in to http://192.168.1.112:90/admin...
3/23/2023, 12:47:30 PM: ➡️ Signing in to http://192.168.1.86:90/admin...
3/23/2023, 12:47:30 PM: ✔️ Successfully signed in to http://192.168.1.112:90/admin!
3/23/2023, 12:47:30 PM: ➡️ Uploading backup to http://192.168.1.112:90/admin...
3/23/2023, 12:47:30 PM: ✔️ Successfully signed in to http://192.168.1.86:90/admin!
3/23/2023, 12:47:30 PM: ➡️ Uploading backup to http://192.168.1.86:90/admin...
3/23/2023, 12:47:35 PM: ✔️ Backup uploaded to http://192.168.1.112:90/admin!
3/23/2023, 12:47:35 PM: ➡️ Updating gravity on http://192.168.1.112:90/admin...
3/23/2023, 12:47:37 PM: ✔️ Backup uploaded to http://192.168.1.86:90/admin!
3/23/2023, 12:47:37 PM: ➡️ Updating gravity on http://192.168.1.86:90/admin...
3/23/2023, 12:47:42 PM: ✔️ Gravity updated on http://192.168.1.112:90/admin!
3/23/2023, 12:47:44 PM: ✔️ Gravity updated on http://192.168.1.86:90/admin!
3/23/2023, 12:47:44 PM: ✔️ Success: 2/2 hosts synced.
3/23/2023, 12:47:44 PM: Waiting 15 minutes...
@mattwebbio
Copy link
Owner

Yeah, mine too. If someone else reading this figures out what's changed: please let me know! Otherwise I'll investigate as soon as I have time

@mike12806
Copy link
Author

@mattwebbio i'll try to turn on verbose logging and see if I can get any more deets from orbitalsync

@mike12806
Copy link
Author

3/23/2023, 3:22:55 PM: {"host":"http://192.168.1.112:90","path":"/admin","status":200,"responseBody":"Start importing...<br>\nProcessed adlist (5 entries)<br>\nProcessed adlist group assignments (5 entries)<br>\nProcessed blacklist (exact) (0 entries)<br>\nProcessed blacklist (regex) (0 entries)<br>\nProcessed client (0 entries)<br>\nProcessed client group assignments (0 entries)<br>\nProcessed local DNS records (20 entries)<br>\nProcessed local CNAME records (0 entries)<br>\nProcessed black-/whitelist group assignments (217 entries)<br>\nProcessed group (1 entry)<br>\nProcessed whitelist (exact) (206 entries)<br>\nProcessed whitelist (regex) (11 entries)<br>\nDone importing"}
3/23/2023, 3:22:55 PM: ⚠ Error: Failed to upload backup to "http://192.168.1.112:90/admin".

@mike12806
Copy link
Author

@mattwebbio - weird - either error'ing silently or it's working but failing to respond, properly? Not really sure

@mattwebbio
Copy link
Owner

mattwebbio commented Mar 23, 2023

Looks like they updated the message that a successful 'restore' completes with. Currently, Orbital is expecting it to end with 'OK':

if (uploadResponse.status !== 200 || !uploadText.endsWith('OK'))

@mattwebbio
Copy link
Owner

Fixed with version v1.5.2! Let me know if you continue to see this :)

@mike12806
Copy link
Author

Thx for the quick fix!

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

Successfully merging a pull request may close this issue.

2 participants