Static DHCP Leases not being detected. "0 entries"
What happened?
Environment PiHole 1: Proxmox 8 LXC. OS install PiHole 2: RaspberryPi 2b. OS install PiHole 3: NAS. Docker install
Primary: PiHole 1 Secondary: PiHole 2 + 3
In our environment we're running orbital-sync from a separate Proxmox LXC that runs docker. The LXC only starts when local PCs are on. In that LXC Orbital-Sync is set in the CRON to run at startup and once in the evening.
Everything syncs across except the static DHCP where it thinks there are 0 records. There are 60 to sync across.
Docker CLI to PiHole 3
docker run \
--name=orbital-sync \
--network=localproxy \
-e PUID=1000 \
-e PGID=1000 \
-e PRIMARY_HOST_BASE_URL='http://192.168.10.92' \
-e PRIMARY_HOST_PASSWORD='redacted' \
-e SECONDARY_HOSTS_1_BASE_URL='http://192.168.10.90' \
-e SECONDARY_HOSTS_1_PASSWORD='redacted' \
-e SYNC_V5_STATIC_DHCP_LEASES=true \
-e UPDATE_GRAVITY=false \
-e RUN_ONCE=true \
-e VERBOSE=true \
-e TZ=Europe/London \
--restart=no \
mattwebbio/orbital-sync:1
#mattwebbio/orbital-sync:latest
wc -l /etc/dnsmasq.d/04-pihole-static-dhcp.conf
60 /etc/dnsmasq.d/04-pihole-static-dhcp.conf
Version
1 / latest
Log output
Starting orbital-sync
2/10/2025, 2:05:10 PM: ➡️ Signing in to http://192.168.10.92/admin...
2/10/2025, 2:05:10 PM: ✔️ Successfully signed in to http://192.168.10.92/admin!
2/10/2025, 2:05:10 PM: ➡️ Downloading backup from http://192.168.10.92/admin...
2/10/2025, 2:05:10 PM: ✔️ Backup from http://192.168.10.92/admin completed!
2/10/2025, 2:05:10 PM: ➡️ Signing in to http://192.168.10.91/admin...
2/10/2025, 2:05:10 PM: ✔️ Successfully signed in to http://192.168.10.91/admin!
2/10/2025, 2:05:10 PM: ➡️ Uploading backup to http://192.168.10.91/admin...
2/10/2025, 2:05:32 PM: ✔️ Backup uploaded to http://192.168.10.91/admin!
2/10/2025, 2:05:32 PM: Result:
Start importing...<br>
Processed adlist (45 entries)<br>
Processed adlist group assignments (46 entries)<br>
Processed blacklist (exact) (3 entries)<br>
Processed blacklist (regex) (9 entries)<br>
Processed client (45 entries)<br>
Processed client group assignments (45 entries)<br>
Processed local DNS records (14 entries)<br>
Processed static DHCP leases (0 entries)<br>
Processed local CNAME records (18 entries)<br>
Processed black-/whitelist group assignments (32 entries)<br>
Processed group (5 entries)<br>
Processed whitelist (exact) (16 entries)<br>
Processed whitelist (regex) (4 entries)<br>
Done importing
2/10/2025, 2:05:32 PM: ✔️ Success: 1/1 hosts synced.
I did a manual Teleporter export and it does archive the file.
Addendum. It is working, but there is a bug.
It seems that it only updates non-existent entries by MAC? in the DHCP reservation list. So if the Primary is updated so that an existing entry is assigned a new IP addresses, then this doesn't teleport across to the Secondaries.
e.g. if
AA:AA:AA:AA:AA:AA 192.168.10.11 wap
becomes
AA:AA:AA:AA:AA:AA 192.168.10.12 wap
This shows as 0 updates and the secondaries don't update.
When deleting an entry from the primary then sync, it doesn't remove the entry from the secondary. I'd expect the teleport would expunge the Secondary's Static DHCP list before importing the Primary one.
Yea I see the same problem, when I was redoing the Static reservation. In case of changes of static reservation. Manual purge is needed for the secondary PiHoles