mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-08-17 00:45:02 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
658ae8a368 |
@@ -14,7 +14,10 @@ import asyncio
|
||||
import os
|
||||
import time
|
||||
from pathlib import Path
|
||||
import netstats # #758 — shared collector/reader module
|
||||
try:
|
||||
from . import netstats # uvicorn `api.main:app` / aggregator import
|
||||
except ImportError: # standalone with api/ on sys.path (collector)
|
||||
import netstats # #758 — shared collector/reader module
|
||||
|
||||
app = FastAPI(title="secubox-hub", version="1.7.0", root_path="/api/v1/hub")
|
||||
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
secubox-hub (1.5.1-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* fix(#758): hub crash-loop — `import netstats` could not resolve.
|
||||
netstats.py ships in the api/ package, but the service runs
|
||||
`uvicorn api.main:app` with WorkingDirectory=/usr/lib/secubox/hub,
|
||||
so the bare top-level import failed with ModuleNotFoundError and the
|
||||
unit restarted ~9000 times. main.py now does `from . import netstats`
|
||||
with a fallback to the top-level import (kept for the collector, which
|
||||
adds api/ to sys.path explicitly). No API change.
|
||||
|
||||
-- Gerald KERMA <devel@cybermind.fr> Mon, 29 Jun 2026 10:30:00 +0200
|
||||
|
||||
secubox-hub (1.5.0-1~bookworm1) bookworm; urgency=medium
|
||||
|
||||
* feat(#758): nft-based network-stats collector — root oneshot+timer samples
|
||||
|
||||
Reference in New Issue
Block a user