So I was running a version upgrade for central, when I encountered a DISK FULL error, and the upgrade script aborted. I checked, and although my disk was around 90%, there was still around 2GB space left, and the script should not have aborted. Anyhow, I increased the disk size and tried the upgrade again. Now, the script is not happy about something else, and not moving forward. Please see the logs:
I tried the upgrade around 24 hours later (no changes made), and it moved past the error by itself. The installation seems to be successful, but docker containers are not coming online, specifically nginx. Following errors are there:
root@ip-172-31-18-130:/home/ubuntu/central# docker-compose up -d
[+] Running 8/9
⠿ Container central-postgres-1 Started 2.3s
⠿ Container central-secrets-1 Started 2.4s
⠿ Container central-enketo_redis_main-1 Started 2.3s
⠿ Container central-enketo_redis_cache-1 Started 2.1s
⠿ Container central-pyxform-1 Started 1.8s
⠿ Container central-mail-1 Started 2.2s
⠿ Container central-enketo-1 Started 3.2s
⠿ Container central-service-1 Started 4.2s
⠸ Container central-nginx-1 Starting 1.3s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown
root@ip-172-31-18-130:/home/ubuntu/central#
And this would be my docker status result:
root@ip-172-31-18-130:/home/ubuntu/central# docker-compose ps
NAME COMMAND SERVICE STATUS PORTS
central-enketo-1 "docker-entrypoint.s…" enketo running 8005/tcp
central-enketo_redis_cache-1 "docker-entrypoint.s…" enketo_redis_cache running 6379/tcp
central-enketo_redis_main-1 "docker-entrypoint.s…" enketo_redis_main running 6379/tcp
central-mail-1 "/bin/entrypoint.sh …" mail running 25/tcp
central-nginx-1 "/bin/bash /scripts/…" nginx created 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp
central-postgres-1 "docker-entrypoint.s…" postgres running 5432/tcp
central-pyxform-1 "gunicorn --bind 0.0…" pyxform running
central-secrets-1 "docker-entrypoint.s…" secrets exited (0)
central-service-1 "docker-entrypoint.s…" service running 8383/tcp
How much free space did you have before running docker-compose build? My guess is that it wasn't a lot and that Docker downloaded the temporary images it needs and that ate up all your space. It probably aborted before it filled up your entire drive to keep your server operable.
The error message about bash not being found suggests that your Docker images are corrupt in some way. I'm assuming you have backups? If so, I'd try a reboot, and then a docker-compose build --no-cache and see if that works better.