From the moment it starts,Documentation Index
Fetch the complete documentation index at: https://mintlify.com/damianiglesias/proxmox-casaos-deploy/llms.txt
Use this file to discover all available pages before exploring further.
casaosscript.sh captures every line of output — both standard output and standard error — into a persistent log file. This is achieved with the line exec > >(tee -a "$LOG_FILE") 2>&1 near the top of the script, which redirects all subsequent stdout and stderr through tee. The tee command writes each line to /var/log/casaos_deploy.log while simultaneously printing it to your terminal in real time, so you never have to choose between watching progress live and having a record for later review.
Log File Location
All deployment output is appended to:The script opens the log file in append mode (
tee -a). If you re-run the script — for example after a failed first attempt — new output is appended to the existing log rather than overwriting it. This means the full history of all runs is preserved in a single file. Keep this in mind if you are searching the log for output from the most recent run only.Final Health Check
After CasaOS is installed and the media directory structure is created, the script performs a four-step health check to confirm that everything started correctly.Wait for startup
sleep 5 — pauses for 5 seconds to give CasaOS time to fully initialise its systemd service before the check runs.Check service state
systemctl is-active --quiet casaos — queries systemd for the current state of the casaos service. The --quiet flag suppresses any text output from this command; only the exit code is used.Print result
Depending on the exit code from the previous step, the script prints either:
✅ CasaOS Service: RUNNING(green) — the service is active.❌ CasaOS Service: FAILED TO START(red) — the service did not come up in time.
Interpreting Health Check Output
| Output | Meaning | Next step |
|---|---|---|
✅ CasaOS Service: RUNNING | Installation succeeded and the service is active. | Open the printed URL in your browser to complete the CasaOS setup wizard. |
❌ CasaOS Service: FAILED TO START | The service did not become active within 5 seconds. | Check the log file and systemd journal for error details (see below). |
Checking the Service Manually
If the health check reports a failure, use these commands inside the LXC container to investigate and recover:journalctl -u casaos -n 50 prints the last 50 lines of the CasaOS service journal, which usually contains the specific error message that prevented startup.