콘텐츠로 이동

Running and status

이 콘텐츠는 아직 번역되지 않았습니다.

Two services make up the appliance. Run these commands on the device, over ssh.

Backend (and the detection pipeline it supervises)Video relay
Is it runningsystemctl is-active edgevision-apidocker ps --filter name=edge-relay
Startsudo systemctl start edgevision-apidocker start edge-relay
Stopsudo systemctl stop edgevision-apidocker stop edge-relay
Log~/backend.logdocker logs edge-relay

The backend log is a file in the login’s home folder. journalctl -u edgevision-api shows nothing, by design.

Two behaviours that look like faults but are not

Section titled “Two behaviours that look like faults but are not”
  • A stopped relay stays stopped. Its restart policy brings it back after a reboot or a Docker restart, but deliberately not after an explicit docker stop. In the same way, the backend being enabled means it starts at boot, not that it is running now.
  • The backend can run with no video. The two are independent. A missing relay shows as camera tiles with no picture, not as a failed service. When the relay is back, the backend restores its camera paths at its next check, which runs every 30 seconds by default, with no restart.
Terminal window
# The appliance answers.
curl -s -o /dev/null -w '%{http_code}\n' http://<address>:5080/health/live # 200
# It starts again after a reboot.
ssh <login>@<address> 'systemctl is-enabled edgevision-api' # enabled
# Which version it runs.
ssh <login>@<address> 'cat ~/edgevision/VERSION'

Then open the console and watch Live View: the boxes should sit on the objects, and the reported rate should hold.

Path on the deviceWhat it is
~/edgevision/EdgeVision.ApiThe backend program
~/edgevision/wwwroot/The operator console
~/edgevision/edgevision.dbThe database (SQLite)
~/edgevision/appliance.jsonSeeds the first camera and the built-in models
~/edgevision/models/Uploaded models and the engines built from them
~/edgevision/install.logEverything the installer printed
~/backend.logThe backend log

After the first start, the database is the authority for cameras and models, not appliance.json.

The installer snapshots the database before each update and keeps three. To take one by hand, stop the service first. A copy taken while the service holds the file is not consistent.

Terminal window
ssh <login>@<address> 'sudo systemctl stop edgevision-api && cd ~/edgevision \
&& cp -p edgevision.db backups/manual-$(date -u +%Y%m%dT%H%M%SZ).db \
&& sudo systemctl start edgevision-api'