Errore di aggiornamento

Ho provato ad aggiornare alla versione 3.4.0 ieri sera e l’aggiornamento continua a fallire. Non riesco a trovare un errore evidente nei plugin e sembra esserci abbastanza memoria anche…


==================== PROBLEMA GRAVE!!!! ====================

app non in esecuzione!

Tentativo di ricostruzione

==================== LOG DI RICOSTRUZIONE ====================

Rilevata architettura x86_64.

ATTENZIONE: il file containers/app.yml è leggibile da tutti. Puoi proteggere questo file eseguendo: chmod o-rwx containers/app.yml

Assicurazione che il launcher sia aggiornato

Recupero dall'origine

Launcher aggiornato

Arresto del vecchio container

+ /usr/bin/docker stop -t 600 app

app

2.0.20240825-0027: Pulling from discourse/base

Digest: sha256:6de68cb49198b5281f79ed9401b3fe818c854d220dcf0238549fe2f2adb19146

Status: Immagine aggiornata a discourse/base:2.0.20240825-0027

/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb

/usr/local/bin/pups --stdin

I, [2024-08-29T06:27:54.954308 #1] INFO -- : Lettura dallo stdin

I, [2024-08-29T06:27:54.967006 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:

I, [2024-08-29T06:27:54.972778 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:

I, [2024-08-29T06:27:54.977868 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:

I, [2024-08-29T06:27:54.983048 #1] INFO -- : File > /root/install_postgres chmod: +x chown:

I, [2024-08-29T06:27:54.988576 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:

I, [2024-08-29T06:27:54.988882 #1] INFO -- : Sostituzione di data_directory = '/var/lib/postgresql/13/main' con data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.989890 #1] INFO -- : Sostituzione di (?-mix:#?listen_addresses *=.*) con listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.992525 #1] INFO -- : Sostituzione di (?-mix:#?synchronous_commit *=.*) con synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.993361 #1] INFO -- : Sostituzione di (?-mix:#?shared_buffers *=.*) con shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.994078 #1] INFO -- : Sostituzione di (?-mix:#?work_mem *=.*) con work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.994692 #1] INFO -- : Sostituzione di (?-mix:#?default_text_search_config *=.*) con default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.996207 #1] INFO -- : Sostituzione di (?-mix:#?checkpoint_segments *=.*) con checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.996893 #1] INFO -- : Sostituzione di (?-mix:#?logging_collector *=.*) con logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.998006 #1] INFO -- : Sostituzione di (?-mix:#?log_min_duration_statement *=.*) con log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.998824 #1] INFO -- : Sostituzione di (?-mix:^#local +replication +postgres +peer$) con local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf

I, [2024-08-29T06:27:54.999520 #1] INFO -- : Sostituzione di (?-mix:^host.*all.*all.*127.*$) con host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf

I, [2024-08-29T06:27:55.000423 #1] INFO -- : Sostituzione di (?-mix:^host.*all.*all.*::1\/128.*$) con host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf

I, [2024-08-29T06:27:55.001096 #1] INFO -- : > if [ -f /root/install_postgres ]; then

/root/install_postgres && rm -f /root/install_postgres

elif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then

socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1

fi

I, [2024-08-29T06:27:55.067844 #1] INFO -- : Generazione delle localizzazioni (potrebbe richiedere del tempo)...

Generazione completata.

postgres already running stop container

FALLITO

--------------------

Pups::ExecError: if [ -f /root/install_postgres ]; then

/root/install_postgres && rm -f /root/install_postgres

elif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then

socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1

fi

fallito con ritorno #<Process::Status: pid 16 exit 1>

Posizione del fallimento: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'

exec fallito con i parametri {"tag"=>"db", "cmd"=>"if [ -f /root/install_postgres ]; then\n /root/install_postgres && rm -f /root/install_postgres\nelif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then\n socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1\nfi\n"}

bootstrap fallito con codice di uscita 1

** FALLITO IL BOOTSTRAP ** si prega di scorrere verso l'alto e cercare messaggi di errore precedenti, potrebbero essercene più di uno.

./discourse-doctor può aiutare a diagnosticare il problema.

afa7edec7b05a0d8269e150cef76c0f3d66c0ec9ff17378f8202d2e10b81ded1

==================== FINE LOG DI RICOSTRUZIONE ====================

              total        used        free      shared  buff/cache   available
Mem:        4039588      282424     1478380       44144     2278784     3421444
Swap:             0           0           0
1 Mi Piace

La mia istanza da 4 GB ha esaurito la memoria ieri, quindi aggiungerei lo swap, anche se qui non sembra essere il problema.

Sembra che postgres sia già in esecuzione. Hai solo app.yml e non anche data.yml?

Ciao Jay,
Come posso accedere o ricostruire il file data.yml?

Sospetto che tu non ne abbia uno e, in tal caso, non ho idea di quale sia il problema di postgres.

Dopo aver riavviato il droplet, la ricompilazione è andata un po’ più avanti e ho finito con lo stesso problema di cui si parla qui: PostgreSQL Stuck During Rebuilding - #15 by haroldfy

Sono tornato alla versione precedente 3.4.0.beta1-dev del forum con ./launcher start app.

Potrei aspettare la prossima versione e/o provare ad aggiornare a Ubuntu 20.04.6 LTS.

Lancerei una nuova VM con un nuovo sistema operativo anziché tentare un aggiornamento del sistema operativo.

2 Mi Piace

Chiudiamo questa discussione e continuiamo la conversazione sull’altro argomento. :+1:

2 Mi Piace