Symptoms:
- The CLI hangs for a long time during creation.
- Error message:
Server <name> is not ready: ...
Possible Causes:
- SSH Key Issue: If you provided an SSH key ID, ensure the key is valid and added to the project.
- Network Timeout: Occasionally, cloud-init scripts take longer than expected.
- Bad Config: Errors in your
docker-compose.ymlor.envfile might prevent the container from starting.
Debug Steps:
- Check the server console in Hetzner Cloud.
- SSH into the server manually (if you added your SSH key) or via the password in
serverStates.json(if accessible). - Check logs:
/var/log/cloud-init-output.log.
Symptoms:
executecommand returns an error.- Container status shows "Exited".
Debug Steps:
- Run
hport container execute ... --command "docker logs <container-id>"(Note: You might need to adjust this to run on the host, which currently requires manual SSH). - Verify that the service name matches exactly what is in
docker-compose.yml.
Cause:
- You are trying to create a container on a server name that HPort thinks is already taken.
- Alternatively, you deleted the
serverStates.jsonfile, but the server still exists on Hetzner.
Solution:
- If the server exists on Hetzner but not in HPort's list: Delete it manually on Hetzner or add it to
serverStates.jsonmanually (advanced). - If you want a new server, use a different container name or specify
--unique.