Skip to content

Troubleshooting

Always start with these two:

终端窗口
sudo ./doctor.sh # 13 checks, read-only
sudo docker logs --tail 100 pacasys # recent logs

Container stuck in starting / unhealthy beyond 150 s

Section titled “Container stuck in starting / unhealthy beyond 150 s”

First boot initialises the database; 40–90 s is normal. Beyond that, read the log:

终端窗口
sudo docker logs pacasys 2>&1 | tail -50

Typical causes: wrong permissions on the data directory, disk full, PostgreSQL version mismatch (see below).

WARN exited: backend (exit status 1; not expected)

Section titled “WARN exited: backend (exit status 1; not expected)”
终端窗口
sudo docker logs pacasys 2>&1 | grep -iE "error|panic" | tail -20

Common causes: database unreachable (password changed in .env), port already taken on the host.

500s / missing pages (messages, shares, members)

Section titled “500s / missing pages (messages, shares, members)”

Migrations did not finish:

终端窗口
sudo docker logs pacasys 2>&1 | grep -i migrate | tail -20

Fix the root cause, then sudo docker restart pacasys to re-run migrations.

“Failed to list Docker images” / workspace containers won’t start / terminal won’t connect

Section titled ““Failed to list Docker images” / workspace containers won’t start / terminal won’t connect”

The container lost access to the host docker.sock, or its GID changed:

终端窗口
ls -l /var/run/docker.sock # note the GID

Set DOCKER_GID in .env to that GID and recreate: sudo ./install.sh --skip-load.

终端窗口
sudo ss -lntp | grep 8080
sudo ./install.sh --port 9000

Data still written to the old directory after --data-dir

Section titled “Data still written to the old directory after --data-dir”

--data-dir only rewrites .env; the container must be recreated: sudo ./install.sh --skip-load.

终端窗口
df -h; du -sh /var/lib/pacasys/* | sort -h | tail

Clean trash/old backups/logs, or move the data root to a dedicated disk.

PostgreSQL major version mismatch after upgrade

Section titled “PostgreSQL major version mismatch after upgrade”

Start an image with the same major version as the data directory, pg_dump, then upgrade and restore — or run a one-off pg_upgrade.

The reverse proxy must forward WebSocket headers, allow a larger body (client_max_body_size ≥ 64m), and the callback URL must be reachable from the OnlyOffice service.

  1. Full sudo ./doctor.sh output
  2. sudo docker logs --tail 200 pacasys
  3. Symptom, timestamp, recent changes
  4. cat /opt/pacasys/VERSION

Open a ticket at https://support.pacasys.cloud.