Log viewer
Companion Hub includes a built-in log viewer in the dashboard under Settings → Logs. It shows the Hub’s own log, which is where installs, starts, and other app operations record why they failed. To read what a single app prints, use the CLI or Docker.
There are four places to read logs. Pick the narrowest one that covers what you’re debugging:
| You want | Where | How |
|---|---|---|
| Why an install, start, or update failed | Dashboard | Settings → Logs |
| One app’s output | CLI | cihub app logs <container-name> |
| The Hub stack’s own logs | CLI | cihub logs |
| Raw output from one container | Docker | docker logs -f <container-name> |
Viewing logs in the dashboard
Go to Settings → Logs to see the Hub’s log stream in real time. The viewer follows new lines as they arrive and keeps the last 1,000 lines. Use the controls above the log:
- Follow logs keeps the view scrolled to the newest line
- Wrap lines wraps long lines instead of scrolling sideways
- Max lines changes how many lines the viewer keeps
- Download full logs saves the complete Hub log as
ci-hub-logs.log— attach it when you ask for help
The viewer has no service filter or search box. To search, download the log and use your editor, or use the CLI with grep.
When an operation fails, the error message in the dashboard includes a see logs link that opens this page.
Viewing logs from the CLI
For a specific app — this is the one you want most of the time. First find the container name:
cihub app listThen read its last 50 lines with timestamps, or pass --tail for more:
cihub app logs <container-name> --tail 200cihub app logs takes a Docker container name, which can differ from the app’s name in the App Store when an app runs more than one container.
For the Hub stack itself, stream the logs of all its containers:
cihub logsAdd a service name to follow one container, for example cihub logs ci-hub.
Viewing logs via Docker
If you need raw Docker output, list the containers first:
docker ps --format '{{.Names}}'Then follow one of them:
docker logs -f <container-name>The Hub stack’s own containers, and what each one does:
| Container | Role |
|---|---|
ci-hub | Backend API + frontend (NestJS + React) |
ci-hub-db | PostgreSQL database |
ci-hub-queue | RabbitMQ message queue |
traefik | Reverse proxy and TLS |
cloudflared | Cloudflare tunnel; runs only on a Hub that is paired with a CI Account |
hub-tailscale | Tailscale sidecar for the Private VPN; runs only while the Private VPN is on |
Hub installs that were upgraded from an earlier release may still use the older container names ci-os-hub, ci-os-hub-queue, or ci-hub-reverse-proxy.
Log files on disk
Hub also writes its log to files under your data root, in <ROOT_FOLDER_HOST>/logs/:
| File | Contents |
|---|---|
app.log | Everything the Hub backend logs |
error.log | Errors only |
hub-stack-update.log | One block per Hub stack update attempt, ending in result=ok or result=failed |
desktop.log | What the desktop app did to start the Hub stack: the Docker versions it found, port choices, and failed desktop updates. View logs on the startup screen shows it |
Docker keeps each container’s own output separately, capped at five 10 MB files per container.
Since 0.3.0, Hub replaces passwords, secrets, API keys, tokens, and similar values in its own log with [REDACTED] before it writes them. That covers app.log, error.log, the container’s console output, and the download from Settings → Logs. It doesn’t rewrite lines an earlier release wrote, and it doesn’t filter your apps’ own logs (cihub app logs, docker logs). A log from an earlier release can still hold secrets, because at debug level it recorded Hub’s startup configuration. Read a log before you share it.
Getting more detail
The log level defaults to info. To capture more detail while you reproduce a problem, raise it to debug in Settings:
- On the Settings tab, switch on Advanced settings in the General settings card, select Enable, and select Update settings. If the card already shows an Advanced settings section, skip this step.
- In the Advanced settings section, set Log level to
debugand select Update settings. - Restart the Hub, which reads the log level only when it starts. In the desktop app, choose Stop Hub and then Start Hub in the tray menu. Quitting and reopening the app leaves the Hub running at the old level. From a terminal, run
cihub down, thencihub up --detached.
Set it back to info the same way when you’re done, because debug logs grow quickly.
On a Hub you start with cihub up, you can instead set LOG_LEVEL=debug in the Hub env file and restart the Hub, but only while state/settings.json has no logLevel. Every Update settings writes one, set to the level the form shows, even when that level came from LOG_LEVEL. After that, Hub ignores LOG_LEVEL and logs this at startup:
LOG_LEVEL=debug from the environment is ignored because Settings has Log level info. Change Log level in Settings, or remove logLevel from state/settings.json and restart the Hub.The desktop app rewrites the env file on every launch, so on a desktop install use Settings.
See Docker and Companion Hub for what each container in the Hub stack does.