wtree Cloud instance
Get an unreachable panel back, debug its core containers, and recreate the Postgres, Traefik and wtree Cloud services.
Panel is not reachable
Work through these causes in order.
Disk is full
Cause: many deployments can fill the disk, and the panel database may enter recovery mode.
Fix: free space.
docker system prune -a
docker builder prune -a
docker image prune -aContainers started in the wrong order
Cause: after a restart, dependent containers can start out of order.
Fix: list containers.
docker psThree should run: w3panel (port 3000), w3panel-postgres (postgres:16) and w3panel-traefik (ports 80, 443, 8080).
Versions before v0.29.9 also show a w3panel-redis container. Self-hosted wtree Cloud no longer uses Redis.
Traefik is missing after a reboot
Cause: if docker ps -a --filter name=w3panel-traefik shows Exited (128), Docker started Traefik before the Swarm network w3panel-network existed and doesn't retry. The Docker log confirms it:
journalctl -u docker -b | grep "failed to start swarm container"
# ... network w3panel-network not foundFix: recent versions start Traefik automatically once the panel is up. On older versions or remote servers, start it after boot finishes:
docker start w3panel-traefikIf the container is gone, recreate it.
All three run but the panel is unreachable
Read each log:
docker service logs w3panel
docker service logs w3panel-postgres
docker logs w3panel-traefikPostgres started after the panel. The panel log shows Migration failed [Error: getaddrinfo ENOTFOUND w3panel-postgres] and Main Server Error. Restart the panel:
docker service scale w3panel=0
docker service scale w3panel=1Invalid Traefik configuration. The Traefik log shows an error like this:
ERR Error occurred during watcher callback error="/etc/w3panel/traefik/dynamic/w3panel.yml: field not found, node: passHostHeader" providerName=fileRestart Traefik first:
docker restart w3panel-traefikIf the error persists, a file in /etc/w3panel/traefik is invalid, usually after a manual edit to an application's configuration. Here passHostHeader was nested as a list item under servers. It belongs on loadBalancer:
http:
services:
w3panel-service-app:
loadBalancer:
servers:
- url: http://w3panel:3000
passHostHeader: trueFix the file, then run docker restart w3panel-traefik.
For other Traefik errors, see the Traefik documentation.
Recreate core services
Recreating services keeps your volumes, but back up first. See Backups.
Recreate Postgres
docker service rm w3panel-postgres
docker service create \
--name w3panel-postgres \
--constraint 'node.role==manager' \
--network w3panel-network \
--env POSTGRES_USER=w3panel \
--env POSTGRES_DB=w3panel \
--secret source=w3panel_postgres_password,target=/run/secrets/postgres_password \
--env POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password \
--mount type=volume,source=w3panel-postgres,target=/var/lib/postgresql/data \
postgres:16The password comes from a Docker secret, which only granted services can read.
Recreate Traefik
Standalone container:
docker rm -f w3panel-traefik
docker run -d \
--name w3panel-traefik \
--restart always \
-v /etc/w3panel/traefik/traefik.yml:/etc/traefik/traefik.yml \
-v /etc/w3panel/traefik/dynamic:/etc/w3panel/traefik/dynamic \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-p 80:80/tcp \
-p 443:443/tcp \
-p 443:443/udp \
traefik:v3.8.0
docker network connect w3panel-network w3panel-traefikSwarm service:
docker service rm w3panel-traefik
docker service create \
--name w3panel-traefik \
--constraint 'node.role==manager' \
--network w3panel-network \
--mount type=bind,source=/etc/w3panel/traefik/traefik.yml,target=/etc/traefik/traefik.yml \
--mount type=bind,source=/etc/w3panel/traefik/dynamic,target=/etc/w3panel/traefik/dynamic \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--publish mode=host,published=443,target=443 \
--publish mode=host,published=80,target=80 \
--publish mode=host,published=443,target=443,protocol=udp \
traefik:v3.8.0Recreate the panel
On installations older than v0.29.3 the w3panel_auth_secret secret may not exist. Create it first:
openssl rand -hex 32 | docker secret create w3panel_auth_secret -docker service rm w3panel
docker service create \
--name w3panel \
--replicas 1 \
--network w3panel-network \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--mount type=bind,source=/etc/w3panel,target=/etc/w3panel \
--mount type=volume,source=w3panel,target=/root/.docker \
--secret source=w3panel_postgres_password,target=/run/secrets/postgres_password \
--secret source=w3panel_auth_secret,target=/run/secrets/w3panel_auth_secret \
--publish published=3000,target=3000,mode=host \
--update-parallelism 1 \
--update-order stop-first \
--constraint 'node.role == manager' \
-e POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password \
-e BETTER_AUTH_SECRET_FILE=/run/secrets/w3panel_auth_secret \
ghcr.io/w3panel/w3panel:latestOn Proxmox LXC, add --endpoint-mode dnsrr to this command and to the Postgres and Traefik services.
Still stuck
- Confirm all three containers run.
- Read each container's logs.
- Check the configuration files under
/etc/w3panel.
