|
| 1 | +# Linux troubleshooting guide |
| 2 | + |
| 3 | +Structured reference for **Linux install and runtime** issues. When you run `./scripts/linux-install-preflight.sh` or `./dream-preflight.sh --install-env`, each line uses a **check ID**. Use this document to jump from an ID to likely causes and fixes. |
| 4 | + |
| 5 | +**Related:** [INSTALL-TROUBLESHOOTING.md](INSTALL-TROUBLESHOOTING.md), [TROUBLESHOOTING.md](TROUBLESHOOTING.md), [LINUX-PORTABILITY.md](LINUX-PORTABILITY.md), [FIELD-INSTALL-REPORT-LINUX.md](FIELD-INSTALL-REPORT-LINUX.md). |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Using the install preflight |
| 10 | + |
| 11 | +From the `dream-server` directory: |
| 12 | + |
| 13 | +```bash |
| 14 | +./scripts/linux-install-preflight.sh |
| 15 | +./scripts/linux-install-preflight.sh --json |
| 16 | +./scripts/linux-install-preflight.sh --json-file /tmp/preflight.json |
| 17 | +./dream-preflight.sh --install-env --json # same as linux-install-preflight.sh |
| 18 | +``` |
| 19 | + |
| 20 | +- **`--strict`** — exit with failure if any check is **warn** or **fail** (useful in automation). |
| 21 | +- **`--dream-root PATH`** — directory used for the disk-space probe (default: dream-server root). |
| 22 | +- **`--min-disk-gb N`** — minimum free space in GB to treat as OK (default: 15). |
| 23 | + |
| 24 | +JSON output includes `schema_version`, `kind: linux-install-preflight`, `distro`, `kernel`, `checks[]`, and `summary`. |
| 25 | + |
| 26 | +--- |
| 27 | + |
| 28 | +## Check IDs (alphabetical) |
| 29 | + |
| 30 | +### CGROUP_V2 |
| 31 | + |
| 32 | +**Symptoms:** Warning that cgroup v2 was not detected. |
| 33 | + |
| 34 | +**Typical causes:** Older kernels, unusual container hosts, or mis-mounted `/sys/fs/cgroup`. |
| 35 | + |
| 36 | +**Fixes:** |
| 37 | + |
| 38 | +- On normal desktop/server distros from the last several years, cgroup v2 is standard; if Docker works, you can ignore this warning. |
| 39 | +- If Docker fails with cgroup-related errors, ensure you are not mixing rootless Docker with a broken delegated cgroup setup. See your distro’s Docker documentation. |
| 40 | + |
| 41 | +--- |
| 42 | + |
| 43 | +### COMPOSE_CLI |
| 44 | + |
| 45 | +**Symptoms:** **Fail** — neither `docker compose` nor `docker-compose` works. |
| 46 | + |
| 47 | +**Typical causes:** Docker Engine installed without the Compose v2 plugin; very old Docker packages; PATH issues. |
| 48 | + |
| 49 | +**Fixes:** |
| 50 | + |
| 51 | +- Install **Docker Compose v2** (plugin): often package `docker-compose-plugin` (Debian/Ubuntu) or equivalent. |
| 52 | +- Legacy: install standalone `docker-compose` v1 if you must (less ideal). |
| 53 | + |
| 54 | +Verify: |
| 55 | + |
| 56 | +```bash |
| 57 | +docker compose version |
| 58 | +# or |
| 59 | +docker-compose version |
| 60 | +``` |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +### COMPOSE_FILES |
| 65 | + |
| 66 | +**Symptoms:** Warning — `docker-compose.base.yml` / `docker-compose.yml` missing under the dream-server tree. |
| 67 | + |
| 68 | +**Typical causes:** Running the script from the wrong directory; incomplete checkout. |
| 69 | + |
| 70 | +**Fixes:** |
| 71 | + |
| 72 | +- `cd` into the extracted **dream-server** directory that contains the compose files from the release or git clone. |
| 73 | +- Re-download or re-clone the repository if files are missing. |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +### CURL_INSTALLED |
| 78 | + |
| 79 | +**Symptoms:** **Warn** — `curl` not in PATH. |
| 80 | + |
| 81 | +**Typical causes:** Minimal container or netinst image without `curl`. |
| 82 | + |
| 83 | +**Fixes:** |
| 84 | + |
| 85 | +```bash |
| 86 | +# Debian/Ubuntu |
| 87 | +sudo apt update && sudo apt install -y curl |
| 88 | + |
| 89 | +# Fedora |
| 90 | +sudo dnf install -y curl |
| 91 | + |
| 92 | +# Arch |
| 93 | +sudo pacman -S curl |
| 94 | +``` |
| 95 | + |
| 96 | +The installer and many health checks expect `curl`. |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +### DISK_SPACE |
| 101 | + |
| 102 | +**Symptoms:** **Warn** — low free space on `--dream-root` (or default dream-server root). |
| 103 | + |
| 104 | +**Typical causes:** Small root partition; large existing Docker data; wrong path passed to `--dream-root`. |
| 105 | + |
| 106 | +**Fixes:** |
| 107 | + |
| 108 | +- Free space or move the Dream Server data directory to a larger volume (see installer docs for `data/` layout). |
| 109 | +- Point `--dream-root` at the filesystem you intend to use for the install. |
| 110 | + |
| 111 | +--- |
| 112 | + |
| 113 | +### DISTRO_INFO |
| 114 | + |
| 115 | +**Symptoms:** **Fail** — `/etc/os-release` missing. |
| 116 | + |
| 117 | +**Typical causes:** Non-Linux environment; severely broken chroot. |
| 118 | + |
| 119 | +**Fixes:** |
| 120 | + |
| 121 | +- Run on a supported Linux distribution. For Windows, use the Windows installer + WSL2; for macOS, use the macOS path. |
| 122 | + |
| 123 | +--- |
| 124 | + |
| 125 | +### DOCKER_DAEMON |
| 126 | + |
| 127 | +**Symptoms:** **Fail** — `docker info` does not succeed. |
| 128 | + |
| 129 | +**Typical causes:** Docker service stopped; user lacks permission to the Docker socket; rootless Docker socket not in environment. |
| 130 | + |
| 131 | +**Fixes:** |
| 132 | + |
| 133 | +```bash |
| 134 | +# systemd |
| 135 | +sudo systemctl start docker |
| 136 | +sudo systemctl enable docker |
| 137 | + |
| 138 | +# Permission denied on /var/run/docker.sock |
| 139 | +sudo usermod -aG docker "$USER" |
| 140 | +# then log out and back in (or newgrp docker) |
| 141 | +``` |
| 142 | + |
| 143 | +Confirm: |
| 144 | + |
| 145 | +```bash |
| 146 | +docker info |
| 147 | +docker run --rm hello-world |
| 148 | +``` |
| 149 | + |
| 150 | +--- |
| 151 | + |
| 152 | +### DOCKER_INSTALLED |
| 153 | + |
| 154 | +**Symptoms:** **Fail** — `docker` command not found. |
| 155 | + |
| 156 | +**Typical causes:** Docker Engine never installed; PATH not including Docker binaries. |
| 157 | + |
| 158 | +**Fixes:** |
| 159 | + |
| 160 | +- Install [Docker Engine](https://docs.docker.com/engine/install/) for your distro. |
| 161 | +- Ensure `/usr/bin` (or wherever `docker` lives) is on your `PATH`. |
| 162 | + |
| 163 | +--- |
| 164 | + |
| 165 | +### KERNEL_INFO |
| 166 | + |
| 167 | +**Symptoms:** Always **pass** — prints `uname -r` (informational). |
| 168 | + |
| 169 | +**Note:** Use this value when comparing against [SUPPORT-MATRIX.md](SUPPORT-MATRIX.md) or when filing bugs. |
| 170 | + |
| 171 | +--- |
| 172 | + |
| 173 | +### JQ_INSTALLED |
| 174 | + |
| 175 | +**Symptoms:** **Warn** — `jq` not installed. |
| 176 | + |
| 177 | +**Typical causes:** Minimal system; skipped optional packages. |
| 178 | + |
| 179 | +**Fixes:** |
| 180 | + |
| 181 | +- The Dream Server installer often installs `jq` automatically when possible. You can install manually: |
| 182 | + |
| 183 | +```bash |
| 184 | +sudo apt install -y jq # Debian/Ubuntu |
| 185 | +sudo dnf install -y jq # Fedora |
| 186 | +``` |
| 187 | + |
| 188 | +--- |
| 189 | + |
| 190 | +### KERNEL_INFO |
| 191 | + |
| 192 | +**Symptoms:** Always **pass** with kernel version (informational). |
| 193 | + |
| 194 | +**Note:** Very old kernels may be incompatible with modern Docker or NVIDIA drivers; if you hit exotic bugs, compare with [SUPPORT-MATRIX.md](SUPPORT-MATRIX.md). |
| 195 | + |
| 196 | +--- |
| 197 | + |
| 198 | +### NVIDIA_CONTAINER_RUNTIME |
| 199 | + |
| 200 | +**Symptoms:** **Warn** — `nvidia-smi` works but Docker does not show an NVIDIA runtime. |
| 201 | + |
| 202 | +**Typical causes:** NVIDIA drivers installed but [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html) not configured for Docker. |
| 203 | + |
| 204 | +**Fixes:** |
| 205 | + |
| 206 | +- Install and configure `nvidia-container-toolkit`, then restart Docker: |
| 207 | + |
| 208 | +```bash |
| 209 | +sudo nvidia-ctk runtime configure --runtime=docker |
| 210 | +sudo systemctl restart docker |
| 211 | +``` |
| 212 | + |
| 213 | +- Verify: `docker info | grep -i nvidia` |
| 214 | + |
| 215 | +If you are intentionally **CPU-only**, you can ignore this after setting `GPU_BACKEND=cpu` in your capability/install profile. |
| 216 | + |
| 217 | +--- |
| 218 | + |
| 219 | +## Common cross-cutting issues |
| 220 | + |
| 221 | +### Firewall blocking local ports |
| 222 | + |
| 223 | +If the dashboard or WebUI is unreachable from another machine, check `ufw` / `firewalld` / `iptables` for the ports in `config/ports.json` (or your `.env` overrides). |
| 224 | + |
| 225 | +### SELinux / AppArmor |
| 226 | + |
| 227 | +Rare compose failures can be policy-related. Check audit logs; temporarily testing with permissive profiles is diagnostic only — prefer documented volume labels and permissions. |
| 228 | + |
| 229 | +### Docker BuildKit / proxy |
| 230 | + |
| 231 | +Corporate proxies may require `HTTP_PROXY` / `HTTPS_PROXY` in Docker’s systemd drop-in or `~/.docker/config.json` for image pulls. |
| 232 | + |
| 233 | +--- |
| 234 | + |
| 235 | +## Getting help |
| 236 | + |
| 237 | +When opening an issue, attach a **field install report** (see [FIELD-INSTALL-REPORT-LINUX.md](FIELD-INSTALL-REPORT-LINUX.md)) and the JSON from: |
| 238 | + |
| 239 | +```bash |
| 240 | +./scripts/linux-install-preflight.sh --json |
| 241 | +``` |
| 242 | + |
| 243 | +Redact secrets, internal hostnames, and paths you do not want to share. |
0 commit comments