Skip to content
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:

bash
sudo ./setup.sh logs tego-server

The 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:

bash
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-init

This 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:

bash
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:

bash
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 wide

For 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:

bash
./collect-diagnostics.sh --since 30m

The 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 ​

SymptomCheck first
A page or API is unavailabletego-studio and tego-server logs and the external proxy.
Knowledge processing failstego-kb logs and PostgreSQL and Redis connections.
An external tool call failstego-mcp or the relevant plugin backend logs.
A digital employee fails to starttego-server orchestration logs, and runtime container or Pod statuses and events.
File upload or download failstego-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.