2.6 KiB
2.6 KiB
Argus Server Offline Installation
Prerequisites
- Linux x86_64 (Ubuntu 22.04 recommended; see OS compatibility for NixOS)
- Docker & Docker Compose installed
- Open ports: 32300, 9200, 5601, 9090, 9093, 8080..8085, 21, 20, 21100–21110 (or auto-fallback to high ports)
Quick Start
- Extract to a target dir, e.g.
/opt/argus-deploy/versions/<YYYYMMDD> ./server-install.sh(non‑root is supported: it will precreate minimal dirs and auto-fix Kibana/ES/Bind in containers)./server-status.sh./server-selfcheck.sh(on failure it auto-runs diagnose and writes logs underlogs/)./server-uninstall.shto tear down
What the Installer Does
- Loads local images (
images/all-images.tar.gz) - Generates OS-compat override (
security_opt: ["label=disable"],userns_mode: host, bindtmpfs:/run/named) - Starts server-only services: bind/master/es/kibana/ftp/prometheus/grafana/alertmanager/web-frontend/web-proxy
- DNS Bootstrap:
- Ensure
/private/argus/etc/dns.confexists (write172.31.0.2if missing); - Run
/private/argus/etc/update-dns.shin dependent containers so/etc/resolv.confpoints to bind; - Wait for
*.argus.comhint files, then reload bind; - Restart web‑proxy to re-render nginx resolver from
dns.conf;
- Ensure
- Writes
logs/selfcheck.jsonas final summary
OS Compatibility
- NixOS / non-xattr FS: containers run with
security_opt: ["label=disable"]anduserns_mode: host. - If you cannot use sudo, the installer will:
- create minimal data dirs (incl.
private/argus/log/{elasticsearch,kibana}) with permissive perms when possible; - ensure inside containers: Kibana
data→/private/argus/log/kibana, Elasticsearchdata→/private/argus/log/elasticsearch, and Bindrndc.keyis generated. (Manual pre-creation scripts are no longer required.)
- create minimal data dirs (incl.
Files & Layout
compose/(docker-compose.yml, .env)private/(data mounts)scripts/(install/uninstall/status/selfcheck/diagnose)logs/(selfcheck + diagnose outputs)
Troubleshooting (Quick)
- Run
./server-selfcheck.sh→ seelogs/selfcheck.json - Run
./server-diagnose.sh→ produces timestamped logs:logs/diagnose_details_YYYYMMDD-HHMMSSZ.loglogs/diagnose_error_YYYYMMDD-HHMMSSZ.logAnd updatesdiagnose_details.log/diagnose_error.logto the latest
- Error lines are tagged
[service][source], e.g.[kibana][http] /api/status=503
Common issues:
- Kibana 503: wait cold start or fix DNS so
es.log.argus.comresolves - web‑proxy 504: check nginx
resolverincludes172.31.0.2 127.0.0.11 - EACCES/locks: ensure
sudo ./server-prepare-dirs.shran and ownership matches UID:GID