By default, the CVT container runs the collector as a persistent background service. In this mode CVT can:
-
stay up across logins and reboots of your shell session,
-
reload a topology and resume validation automatically at startup,
-
restart itself if it exits unexpectedly, and
-
rotate its own logs.
No extra steps are needed to enable service mode — the standard container startup (see Install CVT) starts it. The sections below cover the operations you may need day to day.
Automatic Startup Options
Configure these in cvt_env.conf (see CVT configuration reference > Startup behavior); they take effect at service start.
|
Setting |
Effect |
|---|---|
|
|
Reloads the most recently used topology (all formats: |
|
|
Loads a specific topology file at startup |
|
|
Loads a device-credentials file ( |
|
|
Starts validation automatically after a topology loads successfully (uses the validation settings from history) |
Typical unattended-restart configuration:
[application]
STARTUP_TOPOLOGY = last
AUTO_START_VALIDATION = true
With this, a container or host restart brings CVT back to validating without manual steps. Verify afterwards in the web interface that validation is running (see Start and stop validation).
Service Controls
The web interface is the primary way to control the service; see Start and stop validation and Collector Management. From inside the container, the equivalent supported commands are:
|
Task |
Command |
|---|---|
|
Start the CVT service |
|
|
Stop the CVT service |
|
|
Restart (apply configuration changes) |
|
|
Check status |
|
|
View live service log |
|
The service also supports these command-line options (interactive/debug use):
|
Command |
Description |
|---|---|
|
|
Runs in interactive mode — useful for debugging |
|
|
Terminates other running CVT sessions before starting |
|
|
Prints the CVT service version |
The service shuts down gracefully on stop signals; in interactive mode Ctrl-C once cancels the current operation, twice exits.
Service Logs
Logs live under /cable_bringup_root/log/ (persistent if you mapped a data volume — see Install CVT):
|
Log |
Contents |
|---|---|
|
|
CVT service output (startup, topology loading, validation, agent management) |
|
|
Collector operations log |
|
|
Agent-management activity on the collector |
|
|
Per-agent logs, including deployment logs |
|
|
Service-control ( |
|
|
Web access and web-server errors |
|
|
Database (PostgreSQL) output |
|
|
Process supervisor that starts and restarts the CVT services |
|
|
Web-server startup and performance-profile messages (request and error logs are in |
|
|
Scheduled job that compresses and deletes old data directories |
Rotation depends on the log class:
-
cvt-service.log,cv_controller_service.log,postgres.log, andapache2_wrapper.logrotate at 10 MB with 7 backups. -
bringup_collector.log,bringup_agents.log, the per-agent logs, andcv-data-archivist.logrotate at 10 MB with 3 backups, and the backups are gzip-compressed. -
The web-server access and error logs rotate at 50 MB with 10 backups.
The paths above are the same in both deployment modes. In UFM plugin mode, the same files can also be opened at /log/ inside the plugin container, and on the UFM host in /opt/ufm/files/log/, alongside UFM’s own logs. For retention of collected data (not logs), see CVT configuration reference > Data retention. Log retrieval from the web interface and API is documented in Collector Management and Logs APIs.
Useful searches:
grep -i error /cable_bringup_root/log/cvt-service.log
grep -Ei "topology|load" /cable_bringup_root/log/cvt-service.log
grep -i "validation" /cable_bringup_root/log/cvt-service.log
Troubleshooting
Service will not start
-
Check status:
supervisorctl status cvt-service -
Read the log:
tail -f /cable_bringup_root/log/cvt-service.log -
If you recently changed configuration, re-check the values you edited in
cvt_env.conf(a bad value can prevent startup).
Port conflicts — the CVT HTTPS port and internal service ports must be free on the host. Check with netstat -tlnp | grep -E ':(443|8251|8252)' and change the ports if needed (see Service and web ports).
Topology fails to load at startup — confirm the path (visible from inside the container) and format of the file named in STARTUP_TOPOLOGY, and check grep "Loading topology" /cable_bringup_root/log/cvt-service.log.
Slow or memory-constrained collector — reduce worker limits per Cluster sizing and tuning instead of editing process internals.
Running Interactively for Debugging
For focused debugging you can run the collector in the foreground:
-
Stop the service:
supervisorctl stop cvt-service -
Run interactively:
/usr/local/bin/cvt-service(prefix withPYTHONUNBUFFERED=1to see log output immediately) -
When done, exit and restart the service:
supervisorctl start cvt-service
Note that while the service is stopped, automatic features (topology loading and validation start) are disabled; the web interface remains accessible for starting/stopping the service. For the full interactive command shell (topology load, agent deployment, validation commands), see CVT CLI reference.
Last updated: