Skip to content

Routinely get database error and my lists are missing from primary pihole #231

@jedis00

Description

@jedis00

What happened?

I routinely get a database error and my lists are missing from the primary pihole when I try to access the lists section or add a list. I have to run pihole -g in order to get it working again.

Expected Behaviour

Any ideas? This doesn't happen on the secondary pihole that is getting the synced config.

Nebula-sync Version

v0.11.0

Runtime

binary

Operating System

Debian 12

CPU Architecture

x86_64

Configuration

# /etc/default/nebula-sync

# —————————————————————————————————————————————
# Required Settings
# —————————————————————————————————————————————

# Primary Pi-hole (format: URL|API_PASSWORD)
# :contentReference[oaicite:0]{index=0}
PRIMARY="https://pihole1.myhost.net|asdasdasdas32432423"

# Comma-separated list of replicas (each: URL|API_PASSWORD)
# :contentReference[oaicite:1]{index=1}
REPLICAS="https://pihole2.myhost.net|asdasdasdas32432423"

# Perform a full Teleporter import/export? (true/false)
# :contentReference[oaicite:2]{index=2}
FULL_SYNC=true

# Run Pi-hole gravity after syncing? (true/false)
# :contentReference[oaicite:3]{index=3}
RUN_GRAVITY=true


# —————————————————————————————————————————————
# Optional Settings
# —————————————————————————————————————————————

# Cron schedule (standard cron syntax); if omitted, runs once at start
# :contentReference[oaicite:4]{index=4}
#CRON="0 * * * *"
CRON="*/5 * * * *"

# Timezone for cron and log timestamps
# :contentReference[oaicite:5]{index=5}
TZ="America/New_York"

# Skip TLS certificate verification? (true/false)
# :contentReference[oaicite:6]{index=6}
CLIENT_SKIP_TLS_VERIFICATION=false

# Seconds to wait between failed HTTP attempts
# :contentReference[oaicite:7]{index=7}
CLIENT_RETRY_DELAY_SECONDS=5

# HTTP client timeout, in seconds
# :contentReference[oaicite:8]{index=8}
CLIENT_TIMEOUT_SECONDS=30


# —————————————————————————————————————————————
# Selective-Sync Overrides (only if FULL_SYNC=false)
# ————————————————————————————————————————————
#SYNC_CONFIG_DNS=true
#SYNC_CONFIG_DHCP=true
#SYNC_CONFIG_RESOLVER=true
# … etc. see full list in docs :contentReference[oaicite:9]{index=9}


# —————————————————————————————————————————————
# Webhooks (optional)
# —————————————————————————————————————————————
# On success:
#WEBHOOK_SYNC_SUCCESS_URL="https://example.com/webhook-success"
# On failure:
#WEBHOOK_SYNC_FAILURE_URL="https://example.com/webhook-failure"
#METHOD, BODY and HEADERS support via WEBHOOK_SYNC_<OUTCOME>_{METHOD,BODY,HEADERS} :contentReference[oaicite:10]{index=10}

Relevant log output

Don't have any to share at the moment.

Pi-hole Version

Core v6.3FTL v6.4.1Web interface v6.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions