Hice clic en el botón de actualización para actualizar Docker. Todo pareció ir bien una vez finalizado. Hice clic en «volver» y recibí lo siguiente:
Estás ejecutando una versión antigua de la imagen de Discourse. Las actualizaciones a través de la interfaz web están deshabilitadas hasta que ejecutes la última imagen. Para hacerlo, inicia sesión en tu servidor mediante SSH y ejecuta: cd /var/discourse git pull ./launcher rebuild app
Seguí los pasos anteriores y obtuve el siguiente error:
root@ubuntu-s-1vcpu-1gb-nyc1-01:~# cd /var/discourse
root@ubuntu-s-1vcpu-1gb-nyc1-01:/var/discourse# git pull
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 22 (delta 11), reused 12 (delta 6), pack-reused 0
Unpacking objects: 100% (22/22), done.
From https://github.com/discourse/discourse_docker
70a3323..8c8dbd0 master -> origin/master
* [new branch] pg12 -> origin/pg12
Updating 70a3323..8c8dbd0
Fast-forward
launcher | 2 +-
templates/sshd.template.yml | 49 ---------------------------------------------
templates/web.template.yml | 2 ++
3 files changed, 3 insertions(+), 50 deletions(-)
delete mode 100644 templates/sshd.template.yml
root@ubuntu-s-1vcpu-1gb-nyc1-01:/var/discourse# ./launcher rebuild app
WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed
Please be patient
Unable to find image 'discourse/base:2.0.20200429-2110' locally
2.0.20200429-2110: Pulling from discourse/base
54fec2fa59d0: Pulling fs layer
19bc9811812d: Pulling fs layer
54fec2fa59d0: Verifying Checksum
54fec2fa59d0: Download complete
54fec2fa59d0: Pull complete
19bc9811812d: Verifying Checksum
19bc9811812d: Download complete
19bc9811812d: Pull complete
Digest: sha256:3400307b0464d1fc70f554f990e22842f0abe82e3ed42fbee1eb5bad464ce008
Status: Downloaded newer image for discourse/base:2.0.20200429-2110
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up to date.
I, [2020-05-04T19:34:20.671303 #1] INFO -- : Loading --stdin
I, [2020-05-04T19:34:20.680407 #1] INFO -- :
I, [2020-05-04T19:34:20.680407 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2020-05-04T19:34:20.754357 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2020-05-04T19:34:20.755052 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2020-05-04T19:34:20.763216 #1] INFO -- :
I, [2020-05-04T19:34:20.765101 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2020-05-04T19:34:20.769530 #1] INFO -- :
I, [2020-05-04T19:34:20.770264 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2020-05-04T19:34:20.774593 #1] INFO -- :
I, [2020-05-04T19:34:20.775571 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2020-05-04T19:34:20.780287 #1] INFO -- :
I, [2020-05-04T19:34:20.781259 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2020-05-04T19:34:20.785953 #1] INFO -- :
I, [2020-05-04T19:34:20.786915 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
I, [2020-05-04T19:34:20.884925 #1] INFO -- : postgres already running stop container
FAILED
--------------------
Pups::ExecError: socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1 failed with return #<Process::Status: pid 25 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1"
28acae3e3ece0cb518bcdb99f94ff1f21dc7b8663ab30720b7d7dad43dcc6d52
** FAILED TO BOOTSTRAP ** por favor, desplázate hacia arriba y busca mensajes de error anteriores; puede haber más de uno.
./discourse-doctor puede ayudar a diagnosticar el problema.
Discourse-doctor produce un resultado similar. ¿Alguien puede identificar este problema y orientarme en la dirección correcta? Muchas gracias de antemano.
EDIT: Reinicié el sistema operativo, reconstruí la aplicación y todo está bien. No tengo idea de cuál fue el problema.