Common Issues
Port Conflicts
Section titled “Port Conflicts”If a container fails to start with a “port already in use” error, another service on the host is using the same port.
Solutions:
- Identify the conflicting service:
sudo ss -tlnp | grep <port> - Change the containers host port using a Container Override
- Stop the conflicting service
See the Container Map for the default port mappings. Some containers have modified host ports to avoid overlap (e.g., SABnzbd uses host port 8082 instead of 8080).
Permission Issues
Section titled “Permission Issues”If containers cannot read or write files, this is typically a UID/GID mismatch.
Check your current settings in inventory/group_vars/all/container_settings.yml:
container_uid: 1234container_gid: 1234These should match the owner of your media files. To check file ownership:
ls -la /path/to/your/mediaTo fix ownership of the container data directory:
sudo chown -R <uid>:<gid> /opt/hms-docker/apps/DNS Resolution Failures
Section titled “DNS Resolution Failures”If you get 404 errors or cannot access containers via their subdomain:
- Verify DNS resolution:
nslookup <container>.<domain>— should resolve to your server’s IP. If it doesn’t resolve, check your DNS server configuration or create the required DNS record (see DNS docs) - Check Traefik logs:
docker logs -f traefik— look for routing errors - Verify the container is running:
docker ps | grep <container> - Check the container is healthy: Some containers take time to start. Wait a few minutes and try again.
If using the UniFi DNS role, verify the DNS records were created in your UniFi console.
VPN Connectivity
Section titled “VPN Connectivity”If VPN-enabled containers (Transmission, qBittorrent, Deluge) fail to start or cannot download:
- Check container logs:
docker logs -f <container>— look for VPN connection errors - Verify VPN credentials in
inventory/group_vars/all/vpn.yml - Verify the VPN config file is placed in the correct directory (see Download Clients and VPNs)
- Check if your VPN provider is supported by the container image
Traefik Certificate Issues
Section titled “Traefik Certificate Issues”If you see SSL/TLS certificate errors:
- Start with staging: Set
traefik_ssl_use_letsencrypt_staging_url: trueininventory/group_vars/all/traefik.ymlto test without hitting rate limits - Check Traefik logs:
docker logs -f traefik— look for ACME/Let’s Encrypt errors - Verify DNS provider credentials are correct in
traefik_ssl_dns_provider_environment_vars - Check DNS propagation: The DNS challenge requires your DNS provider API to be accessible and the records to propagate
Once staging certificates work correctly, switch to production by setting traefik_ssl_use_letsencrypt_staging_url: false.
Container Override Errors
Section titled “Container Override Errors”If you see a validation error about containers not being defined:
service "container_name" is not defined in the compose fileThis means a container listed in your docker-compose.override.yml is not enabled. Only enabled containers should be specified in the override file. See Container Overrides for details.