-
Notifications
You must be signed in to change notification settings - Fork 2
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
nebula-sync Invalidating sessions resets the webui password #44
Comments
i updated both to the latest versions but the same occurs |
From my own tests manually doing it via the interface, in v6 the teleporter (Full sync) function of Pihole not only moves all of your settings and changes but also your password. This means that it will copy your password from the primary to the replicas. This is just how Pihole teleporter works now and isn't something this project could control. Edit: btw I could be wrong, I just know our issues stopped once we did the above workaround. |
yes, i think you are right. i will use the same on both - thanks! |
On another thread, I posted this same issue. The primary overwrites the secondary's api password and then the script doesn't work and it isn't obvious why. The pihole 6 ui does not allow a person to manually set the api password so they match. |
Hi I face this same issue too. My 1st instance is running on a Pi 4 and 2nd on Synology as container. I set the password for the 2nd instance docker with FTLCONF_webserver_api_password envronment and make it the same as my 1st Pihole instance. I am still getting the error:
It is complaining about the 2nd Pihole instance running on docker. Anything I can do on my end to fix this? I am running the lateste version 6 of Pihole: Edited: I found the culprit on my end: I was using FTLCONF_misc_check_load on the 2nd PiHole instance and it caused issue with the sync. Removing this environment variable and everthing gets synced successfully now. Thank you for this great tool! ;-) |
As a note if you chose the Manual Sync option and enter all available options in his documentation it will not sync the web server / api settings, which will prevent it from messing with your passwords and other web server / api settings. I assume the Full Sync option is something provided by the Teleporter API, and its intent may be different than what most folks want. For me I only really want to sync DNS, Adlists, Clients, etc. I don't want web server or API settings to be sync'd. |
Just came here to see if this was a me thing. I have the same issue here where the primary API password overwrites the Replicas API password - which in itself is not the end of the world, however it goes against having unique API passwords for security :-) |
Good clarification. It looks like the documentation mentions a manual sync which really means a selective sync. I assumed a manual sync meant I had to run it manually rather than cron. |
@janusloo came here for the same. So, what variable do I need to declare on both Pi instances and the value? Any help is appreciated. |
Hi @BBT-nZ are both Pihole instances running on docker? And are you using full sync or partial sync? As long as you do not specify any environment variables for the components that you want to sync you should be okay. The configurations set by the environment variable are readonly. I found the culprit in the pihole log so you can take a look there and see what causes the sync to fail. |
The doc example yml uses FULL_SYNC=true which is likely not the right solution for most people. I'm now trying the following (I have an rpi and a synology as my two pi-hole setups).
|
Here is my compose.yaml for my nebula-sync container. I run Pihole on two Raspberry Pi 4's. The below does not sync or change the website or API passwords. services: |
I have been having issues syncing two pi holes both primary and replica versions:
pihole -v
Core version is v6.0.1 (Latest: v6.0.4)
Web version is v6.0 (Latest: v6.0.1)
FTL version is v6.0 (Latest: v6.0.2)
Primary is in a VM, replica is a proxmox LXC
The nebula-sync container logs:
2025-02-27T22:19:58+11:00 INF Starting nebula-sync v0.3.0
2025-02-27T22:19:58+11:00 INF Running full sync replicas=1
2025-02-27T22:19:58+11:00 INF Authenticating clients...
2025-02-27T22:19:58+11:00 INF Syncing Teleporters...
2025-02-27T22:19:58+11:00 INF Invalidating sessions...
2025-02-27T22:19:58+11:00 INF Sync complete
after this i get the error below and am unable to login to the web ui on the replica pi hole.
FTL Sync failed error="sync teleporters: http://192.168.10.20/api/teleporter: unexpected status code: 400"
I use the command sudo pihole setpassword to set the password again and it works until the next sync.
The text was updated successfully, but these errors were encountered: