What installation are you running?
Production (netalertx) 📦
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
On the latest version, Hub Sync does not work. All devices from the remote site are marked as down.
In the log file, this error was found:
09:30:25 [SYNC] Inserting Devices VALUES: "[('internet', 'Internet', 'House', 'Router', 'Huawei H122-373 5G CPE Pro 2', 0, 'Always on', '', '2021-01-01 00:00:00', '2026-03-16 08:25:59', `', '', '', '', '', 0, 1, 1, 1, 1, 0, 0, '2026-03-14 11:36:17', 1, 0, '', 0, 'undefined', '', 'PGkgY2xhc3M9ImZhIGZhLWxpbmsiPjwvaT4=', '681c004c-4d10-4c5c-b8f0-5bb7ce6bb0e6', '', '', 'Wladek_Site', '', '', '', '', '', '', '', '', 'INTRNT', '', '', '', '', '', '')]"
Traceback (most recent call last):
File "/app/front/plugins/sync/sync.py", line 349, in
main()
File "/app/front/plugins/sync/sync.py", line 254, in main
cursor.executemany(sql, values)
sqlite3.IntegrityError: UNIQUE constraint failed: Devices.devMac
Log files from
Master:
log-master.txt
Remote:
log-remote.txt
Expected Behavior
Hub sync working.
Steps To Reproduce
No response
Relevant app.conf settings
docker-compose.yml
version: "3"
services:
netalertx_fresh:
container_name: NetAlertX-Warsaw
image: "ghcr.io/netalertx/netalertx:26.3.15"
hostname: Warsaw
network_mode: "host"
cap_drop: # Drop all capabilities for enhanced security
- ALL
cap_add: # Add only the necessary capabilities
- NET_ADMIN # Required for scanning with arp-scan, nmap, nbtscan, traceroute, and zero-conf
- NET_RAW # Required for raw socket operations with arp-scan, nmap, nbtscan, traceroute and zero-conf
- NET_BIND_SERVICE # Required to bind to privileged ports with nbtscan
- CHOWN # Required for root-entrypoint to chown /data + /tmp before dropping privileges
- SETUID # Required for root-entrypoint to switch to non-root user
- SETGID # Required for root-entrypoint to switch to non-root group
restart: unless-stopped
volumes:
- /volume1/docker/netalertx/data:/data
- /volume1/docker/netalertx/logs:/app/logs
# Ensuring the timezone is the same as on the server - make sure also the TIMEZONE setting is configured
- /etc/localtime:/etc/localtime:ro # 🆕 New line
environment:
- PORT=20211
# 🆕 New "tmpfs" section START 🔽
tmpfs:
# All writable runtime state resides under /tmp; comment out to persist logs between restarts
- "/tmp:uid=20211,gid=20211,mode=1700,rw,noexec,nosuid,nodev,async,noatime,nodiratime"
# 🆕 New "tmpfs" section END
Debug or Trace enabled
Relevant app.log section
PASTE LOG HERE. Using the triple backticks preserves format.
Docker Logs
PASTE DOCKER LOG HERE. Using the triple backticks preserves format.
What installation are you running?
Production (netalertx) 📦
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
On the latest version, Hub Sync does not work. All devices from the remote site are marked as down.
In the log file, this error was found:
09:30:25 [SYNC] Inserting Devices VALUES: "[('internet', 'Internet', 'House', 'Router', 'Huawei H122-373 5G CPE Pro 2', 0, 'Always on', '', '2021-01-01 00:00:00', '2026-03-16 08:25:59', `', '', '', '', '', 0, 1, 1, 1, 1, 0, 0, '2026-03-14 11:36:17', 1, 0, '', 0, 'undefined', '', 'PGkgY2xhc3M9ImZhIGZhLWxpbmsiPjwvaT4=', '681c004c-4d10-4c5c-b8f0-5bb7ce6bb0e6', '', '', 'Wladek_Site', '', '', '', '', '', '', '', '', 'INTRNT', '', '', '', '', '', '')]"
Traceback (most recent call last):
File "/app/front/plugins/sync/sync.py", line 349, in
main()
File "/app/front/plugins/sync/sync.py", line 254, in main
cursor.executemany(sql, values)
sqlite3.IntegrityError: UNIQUE constraint failed: Devices.devMac
Log files from
Master:
log-master.txt
Remote:
log-remote.txt
Expected Behavior
Hub sync working.
Steps To Reproduce
No response
Relevant
app.confsettingsdocker-compose.yml
Debug or Trace enabled
Relevant
app.logsectionDocker Logs