On this page
Log troubleshooting
Reading logs requires access to the target host or cluster. Before checking the relevant service, record the incident time and time zone, package version, affected digital employees, and the error shown in the interface.
Compose logs
From the root of the installed Compose package, run:
sudo ./setup.sh logs tego-serverThe command displays the last 200 lines and follows new output. Press Ctrl+C to exit. Replace the service name with tego-kb, tego-mcp, or tego-studio as needed. Omit the name to show application logs for all services.
Infrastructure uses a separate Compose configuration:
sudo docker compose -f infrastructure/master/docker-compose.yml \
--env-file infrastructure/master/.env \
logs --since 30m --tail 200 postgres-master redis openldap garage garage-initThis command applies to bundled infrastructure. For external databases, Redis, S3, or LDAP, read logs through the actual service.
Digital employee runtime containers and plugin backends are not fixed Compose services. List platform-managed containers first, then use the relevant container ID:
sudo docker ps -a --filter label=tego.managed=true \
--format 'table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Label "tego.type"}}'The tego.type values digital-avatar and plugin-backend identify digital employee runtime containers and plugin backends, respectively. Older environments may still contain retired browser-pool containers. If a host runs multiple products, check the container network and digital employee record as well.
After identifying the target container, run sudo docker logs --since 30m --tail 200 followed by the container ID.
Kubernetes logs
On Node1, check platform service logs, Pods, and events:
kubectl -n tego-avatar logs deployment/tego-avatar-server --since=30m --tail=200
kubectl -n tego-avatar get pods -o wide
kubectl -n tego-avatar get events --sort-by=.lastTimestamp
kubectl -n tego-avatar-runtime get pods -o wideFor a repeatedly restarting container, use its Pod name with kubectl logs --previous. In tego-avatar-runtime, choose the Pod for the affected digital employee.
To collect diagnostic evidence, run this from the Kubernetes package root:
./collect-diagnostics.sh --since 30mThe script creates tego-diagnostics-时间戳.tar.gz with host, cluster, Helm, infrastructure, and recent log data. --no-logs collects status only. If no time window is specified, the script collects the last two hours.
The diagnostics script filters known credential fields, but business text and deployment addresses may remain. Review the archive before sharing it. Do not attach raw config.env, .env, .secrets, or customer materials.
Find the affected service
| Symptom | Check first |
|---|---|
| A page or API is unavailable | tego-studio and tego-server logs and the external proxy. |
| Knowledge processing fails | tego-kb logs and PostgreSQL and Redis connections. |
| An external tool call fails | tego-mcp or the relevant plugin backend logs. |
| A digital employee fails to start | tego-server orchestration logs, and runtime container or Pod statuses and events. |
| File upload or download fails | tego-server and object storage logs. For bundled Garage, also check garage-init. |
Retain any request ID, task ID, or error code unchanged. See Report an issue for what to include.
View administration operation logs
The operation log records human administrative actions. Container logs help diagnose running services. See View and export operation logs to filter, refresh, or export the operation log.