Debugging Workflow : Troubleshooting Failed Installations
If an install scripts fails, this will help:
1. Check HexOS Task Failure
- In the HexOS UI, check your notificaitons for an app install failure
- Click the notification to view the error message
2. Check TrueNAS Job Failure
- Navigate to the TrueNAS web interface (e.g.,
https://10.0.1.13
) - Go to Jobs section to view the installation job details
- Look for error messages in the detailed job output
3. Check Application Logs (if app installed but won't start)
Option A: TrueNAS Apps UI (if container is running)
- Navigate to
https://10.0.1.13/ui/apps/installed
- Click on the app, under
Workloads > Containers
, click the "View Logs" button - Review container logs for startup errors
Option B: Shell Access (if container stopped or logs unavailable)
- Navigate to
https://10.0.1.13/ui/system/shell
- Run
sudo docker container list -a
to find your container - Copy the container ID
- Run
sudo docker logs <container_id>
to view detailed logs
3. Common Issues and Solutions
Permission Errors
- Symptom: App fails to start, logs show permission denied errors
- Solution: Add appropriate entries to
ensure_permissions_exists
in your install script - Example: PostgreSQL requires specific user/group permissions
Missing Directories
- Symptom: App fails during installation, "directory not found" errors
- Solution: Ensure all required paths are listed in
ensure_directories_exists
Invalid App Configuration
- Symptom: TrueNAS job fails with validation errors
- Solution: Compare your
app_values
structure with the official TrueNAS app schema
Future Improvements
The current debugging workflow requires accessing the TrueNAS interface directly, in the future we plan to expose more of this debugging workflow within HexOS's UI.