root@idmforums:/var/idmforums# ./discourse-doctor
DISCOURSE DOCTOR Wed Jun 5 00:00:48 UTC 2024
OS: Linux idmforums.com 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Trovato containers/app.yml
==================== INFO DOCKER ====================
VERSIONE DOCKER: Docker version 24.0.2, build cb74dfc
PROCESSI DOCKER (docker ps -a)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2983891adf1b local_discourse/app "/sbin/boot" 5 years ago Exited (5) 24 minutes ago app
==================== PROBLEMA GRAVE!!!! ====================
app non in esecuzione!
Tentativo di ricostruzione
==================== LOG RICOSTRUZIONE ====================
Verifica che il launcher sia aggiornato
Recupero origine
Il launcher ha divergato la sorgente, ci si aspetta solo in modalità Dev
Arresto del vecchio container
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
From https://github.com/discourse/pups
17f04ec..e0ff889 master -> origin/master
* [new branch] main -> origin/main
* [new branch] stream-stdout -> origin/stream-stdout
* [new tag] v1.1.1 -> v1.1.1
* [new tag] v1.1.0 -> v1.1.0
* [new tag] v1.2.0 -> v1.2.0
* [new tag] v1.2.1 -> v1.2.1
Aggiornamento 17f04ec..e0ff889
Fast-forward
.github/workflows/ci.yml | 29 ++++++
.github/workflows/lint.yml | 27 +++++
.rubocop.yml | 3 +
Gemfile | 2 +
Guardfile | 4 +-
README.md | 21 ++++
Rakefile | 14 +--
bin/pups | 8 +-
lib/pups.rb | 32 ++++--
lib/pups/cli.rb | 92 ++++++++++-------
lib/pups/command.rb | 25 +++--
lib/pups/config.rb | 240 +++++++++++++++++++++++--------------------
lib/pups/docker.rb | 69 +++++++++++++
lib/pups/exec_command.rb | 182 ++++++++++++++++----------------
lib/pups/file_command.rb | 60 +++++------
lib/pups/merge_command.rb | 94 ++++++++---------
lib/pups/replace_command.rb | 70 +++++++------
lib/pups/runit.rb | 47 +++++----
lib/pups/version.rb | 4 +-
pups.gemspec | 37 ++++---
test/cli_test.rb | 102 +++++++++++++++---
test/config_test.rb | 215 ++++++++++++++++++++++++++++----------
test/docker_test.rb | 157 ++++++++++++++++++++++++++++
test/exec_command_test.rb | 62 ++++++-----
test/file_command_test.rb | 17 ++-
test/merge_command_test.rb | 64 ++++++------
test/replace_command_test.rb | 86 ++++++++--------
test/test_helper.rb | 2 +
28 files changed, 1158 insertions(+), 607 deletions(-)
create mode 100644 .github/workflows/ci.yml
create mode 100644 .github/workflows/lint.yml
create mode 100644 .rubocop.yml
create mode 100644 lib/pups/docker.rb
create mode 100644 test/docker_test.rb
Nota: controllo di 'v1.0.3'.
Sei in uno stato 'detached HEAD'. Puoi guardare in giro, fare modifiche sperimentali
e committarle, e puoi scartare qualsiasi commit che fai in questo
stato senza influenzare i rami eseguendo un altro checkout.
Se vuoi creare un nuovo ramo per mantenere i commit che crei, puoi
farlo (ora o più tardi) usando -b con il comando checkout. Esempio:
git checkout -b <nome-nuovo-ramo>
HEAD è ora su d1db030 rilascio di una nuova versione
I, [2024-06-05T00:00:57.328836 #1] INFO -- : Caricamento --stdin
I, [2024-06-05T00:00:57.353218 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2024-06-05T00:00:57.434023 #1] INFO -- : Generazione delle impostazioni locali (potrebbe volerci un po')...
Generazione completata.
I, [2024-06-05T00:00:57.434294 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2024-06-05T00:00:57.439272 #1] INFO -- :
I, [2024-06-05T00:00:57.439537 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2024-06-05T00:00:57.444532 #1] INFO -- :
I, [2024-06-05T00:00:57.444864 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2024-06-05T00:00:57.447574 #1] INFO -- :
I, [2024-06-05T00:00:57.447837 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2024-06-05T00:00:57.450039 #1] INFO -- :
I, [2024-06-05T00:00:57.450203 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2024-06-05T00:00:57.451803 #1] INFO -- :
I, [2024-06-05T00:00:57.451909 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres già in esecuzione arresta container ; exit 1
2024/06/05 00:00:57 socat[36] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2024-06-05T00:00:57.458930 #1] INFO -- :
I, [2024-06-05T00:00:57.459220 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2024-06-05T00:00:57.462700 #1] INFO -- :
I, [2024-06-05T00:00:57.462930 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2024-06-05T00:00:57.466208 #1] INFO -- :
I, [2024-06-05T00:00:57.466430 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-06-05T00:00:57.469494 #1] INFO -- :
I, [2024-06-05T00:00:57.470274 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-06-05T00:00:57.473224 #1] INFO -- :
I, [2024-06-05T00:00:57.480446 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2024-06-05T00:00:57.486006 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2024-06-05T00:00:57.489527 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2024-06-05T00:00:57.492803 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2024-06-05T00:00:57.493015 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2024-06-05T00:00:59.462101 #1] INFO -- :
I, [2024-06-05T00:00:59.463057 #1] INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres_data || exit 0
I, [2024-06-05T00:00:59.472204 #1] INFO -- :
I, [2024-06-05T00:00:59.472399 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2024-06-05T00:00:59.525447 #1] INFO -- :
I, [2024-06-05T00:00:59.525804 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2024-06-05T00:00:59.529442 #1] INFO -- :
I, [2024-06-05T00:00:59.529868 #1] INFO -- : > /root/upgrade_postgres
I, [2024-06-05T00:00:59.541565 #1] INFO -- :
I, [2024-06-05T00:00:59.541671 #1] INFO -- : > rm /root/upgrade_postgres
I, [2024-06-05T00:00:59.544476 #1] INFO -- :
I, [2024-06-05T00:00:59.545249 #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-06-05T00:00:59.547238 #1] INFO -- : Sostituzione di (?-mix:#?listen_addresses *=.*) con listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-05T00:00:59.553596 #1] INFO -- : Sostituzione di (?-mix:#?synchronous_commit *=.*) con synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-05T00:00:59.555430 #1] INFO -- : Sostituzione di (?-mix:#?shared_buffers *=.*) con shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-05T00:00:59.557291 #1] INFO -- : Sostituzione di (?-mix:#?work_mem *=.*) con work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-05T00:00:59.559120 #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-06-05T00:00:59.560802 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2024-06-05T00:00:59.566660 #1] INFO -- :
I, [2024-06-05T00:00:59.568041 #1] INFO -- : Sostituzione di (?-mix:#?checkpoint_segments *=.*) con checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-05T00:00:59.568400 #1] INFO -- : Sostituzione di (?-mix:#?logging_collector *=.*) con logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-05T00:00:59.570171 #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-06-05T00:00:59.572341 #1] INFO -- : Sostituzione di (?-mix:^#local +replication +postgres +peer$) con local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-05T00:00:59.573673 #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-06-05T00:00:59.574292 #1] INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2024-06-05T00:00:59.579227 #1] INFO -- : > sleep 5
2024-06-05 00:01:01.152 UTC [59] LOG: avvio PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) su x86_64-pc-linux-gnu, compilato da gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2024-06-05 00:01:01.154 UTC [59] LOG: ascolto su indirizzo IPv4 "0.0.0.0", porta 5432
2024-06-05 00:01:01.154 UTC [59] LOG: ascolto su indirizzo IPv6 "::", porta 5432
2024-06-05 00:01:01.163 UTC [59] LOG: ascolto su socket Unix "/var/run/postgresql/.s.PGSQL.5432"
2024-06-05 00:01:01.176 UTC [62] LOG: il sistema database è stato arrestato il 2024-06-04 23:41:05 UTC
2024-06-05 00:01:01.194 UTC [59] LOG: il sistema database è pronto ad accettare connessioni
I, [2024-06-05T00:01:04.586109 #1] INFO -- :
I, [2024-06-05T00:01:04.587788 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2024-06-05 00:01:04.746 UTC [72] postgres@postgres ERROR: database "discourse" già esiste
2024-06-05 00:01:04.746 UTC [72] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: errore: creazione database fallita: ERROR: database "discourse" già esiste
I, [2024-06-05T00:01:04.751960 #1] INFO -- :
I, [2024-06-05T00:01:04.752761 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2024-06-05 00:01:04.839 UTC [83] postgres@discourse ERROR: ruolo "discourse" già esiste
2024-06-05 00:01:04.839 UTC [83] postgres@discourse STATEMENT: create user discourse;
ERROR: ruolo "discourse" già esiste
I, [2024-06-05T00:01:04.843132 #1] INFO -- :
I, [2024-06-05T00:01:04.843717 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2024-06-05T00:01:04.917103 #1] INFO -- : GRANT
I, [2024-06-05T00:01:04.917860 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2024-06-05T00:01:04.975469 #1] INFO -- : ALTER SCHEMA
I, [2024-06-05T00:01:04.975754 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: estensione "hstore" già esiste, salto
I, [2024-06-05T00:01:05.035684 #1] INFO -- : CREATE EXTENSION
I, [2024-06-05T00:01:05.036028 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: estensione "pg_trgm" già esiste, salto
I, [2024-06-05T00:01:05.111516 #1] INFO -- : CREATE EXTENSION
I, [2024-06-05T00:01:05.111949 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: estensione "hstore" già esiste, salto
I, [2024-06-05T00:01:05.170419 #1] INFO -- : CREATE EXTENSION
I, [2024-06-05T00:01:05.171033 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: estensione "pg_trgm" già esiste, salto
I, [2024-06-05T00:01:05.230135 #1] INFO -- : CREATE EXTENSION
I, [2024-06-05T00:01:05.230646 #1] INFO -- : > sudo -u postgres psql discourse
I, [2024-06-05T00:01:05.233158 #1] INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');
I, [2024-06-05T00:01:05.303077 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2024-06-05T00:01:05.308487 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2024-06-05T00:01:05.308837 #1] INFO -- : > echo postgres installato!
I, [2024-06-05T00:01:05.311334 #1] INFO -- : postgres installato!
I, [2024-06-05T00:01:05.316004 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2024-06-05T00:01:05.322422 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2024-06-05T00:01:05.327354 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2024-06-05T00:01:05.327925 #1] INFO -- : Sostituzione di daemonize yes con in /etc/redis/redis.conf
I, [2024-06-05T00:01:05.329358 #1] INFO -- : Sostituzione di (?-mix:^pidfile.*$) con in /etc/redis/redis.conf
I, [2024-06-05T00:01:05.329888 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-06-05T00:01:05.333762 #1] INFO -- :
I, [2024-06-05T00:01:05.334163 #1] INFO -- : Sostituzione di (?-mix:^logfile.*$) con logfile "" in /etc/redis/redis.conf
I, [2024-06-05T00:01:05.334652 #1] INFO -- : Sostituzione di (?-mix:^bind .*$) con in /etc/redis/redis.conf
I, [2024-06-05T00:01:05.335132 #1] INFO -- : Sostituzione di (?-mix:^dir .*$) con dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-06-05T00:01:05.335627 #1] INFO -- : Sostituzione di (?-mix:^protected-mode yes) con protected-mode no in /etc/redis/redis.conf
I, [2024-06-05T00:01:05.336004 #1] INFO -- : Sostituzione di # io-threads 4 con io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-06-05T00:01:05.336339 #1] INFO -- : > echo redis installato
I, [2024-06-05T00:01:05.338198 #1] INFO -- : redis installato
I, [2024-06-05T00:01:05.338348 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-06-05T00:01:05.342171 #1] INFO -- : logfile ""
I, [2024-06-05T00:01:05.342315 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-05T00:01:05.343675 #1] INFO -- : > sleep 10
176:C 05 Jun 2024 00:01:05.349 # oO0OoO0OoO0Oo Redis sta avviando oO0OoO0OoO0Oo
176:C 05 Jun 2024 00:01:05.349 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=176, appena avviato
176:C 05 Jun 2024 00:01:05.349 # Configurazione caricata
176:M 05 Jun 2024 00:01:05.350 * monotonic clock: POSIX clock_gettime
176:M 05 Jun 2024 00:01:05.352 * Modalità di esecuzione=standalone, porta=6379.
176:M 05 Jun 2024 00:01:05.352 # ATTENZIONE: L'impostazione TCP backlog di 511 non può essere applicata perché /proc/sys/net/core/somaxconn è impostato sul valore inferiore di 128.
176:M 05 Jun 2024 00:01:05.352 # Server inizializzato
176:M 05 Jun 2024 00:01:05.352 # ATTENZIONE overcommit_memory è impostato a 0! Il salvataggio in background potrebbe fallire in condizioni di memoria bassa. Per risolvere questo problema aggiungi 'vm.overcommit_memory = 1' a /etc/sysctl.conf e poi riavvia o esegui il comando 'sysctl vm.overcommit_memory=1' per rendere effettive le modifiche.
176:M 05 Jun 2024 00:01:05.353 * Caricamento RDB prodotto dalla versione 6.2.3
176:M 05 Jun 2024 00:01:05.353 * Età RDB 1200 secondi
176:M 05 Jun 2024 00:01:05.353 * Utilizzo memoria RDB alla creazione 19.09 Mb
176:M 05 Jun 2024 00:01:05.797 * DB caricato dal disco: 0.445 secondi
176:M 05 Jun 2024 00:01:05.797 * Pronto ad accettare connessioni
I, [2024-06-05T00:01:15.346994 #1] INFO -- :
I, [2024-06-05T00:01:15.349025 #1] INFO -- : > thpoff echo "thpoff è installato!"
I, [2024-06-05T00:01:15.361046 #1] INFO -- : thpoff è installato!
I, [2024-06-05T00:01:15.361523 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Interruzione! Mail non configurata!"; exit 1; end'
I, [2024-06-05T00:01:16.346114 #1] INFO -- :
I, [2024-06-05T00:01:16.347959 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Interruzione! Dominio non configurato!"; exit 1; end'
I, [2024-06-05T00:01:16.442910 #1] INFO -- :
I, [2024-06-05T00:01:16.443630 #1] INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Interruzione! CDN deve avere un protocollo specificato. Una volta corretto dovresti ribakare i tuoi post ora per correggere tutti i post."; exit 1; end'
I, [2024-06-05T00:01:16.509332 #1] INFO -- :
I, [2024-06-05T00:01:16.510048 #1] INFO -- : > chown -R discourse /home/discourse
I, [2024-06-05T00:01:16.819286 #1] INFO -- :
I, [2024-06-05T00:01:16.819964 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-06-05T00:01:16.825836 #1] INFO -- :
I, [2024-06-05T00:01:16.830100 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown:
I, [2024-06-05T00:01:16.835903 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2024-06-05T00:01:16.842255 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown:
I, [2024-06-05T00:01:16.849165 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown:
I, [2024-06-05T00:01:16.854937 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2024-06-05T00:01:16.859605 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2024-06-05T00:01:16.859818 #1] INFO -- : Sostituzione di # postgres con sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2024-06-05T00:01:16.860146 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-05T00:01:16.863691 #1] INFO -- : > cd /var/www/discourse && git reset --hard
205:C 05 Jun 2024 00:01:16.868 # oO0OoO0OoO0Oo Redis sta avviando oO0OoO0OoO0Oo
205:C 05 Jun 2024 00:01:16.868 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=205, appena avviato
205:C 05 Jun 2024 00:01:16.868 # Configurazione caricata
205:M 05 Jun 2024 00:01:16.869 * monotonic clock: POSIX clock_gettime
205:M 05 Jun 2024 00:01:16.870 # Avviso: Impossibile creare socket di ascolto TCP server *:6379: bind: Indirizzo già in uso
205:M 05 Jun 2024 00:01:16.870 # Ascolto sulla porta 6379 (TCP) fallito, interruzione.
Controllo dei file: 100% (28860/28860), fatto.
I, [2024-06-05T00:01:21.834261 #1] INFO -- : HEAD è ora su 74f71503 FEATURE: Eliminazione automatica con timer dei topic stub dopo che l'intero topic è stato unito in un altro topic (#13187)
I, [2024-06-05T00:01:21.834977 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2024-06-05T00:01:22.023320 #1] INFO -- :
I, [2024-06-05T00:01:22.023616 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2024-06-05T00:01:22.043353 #1] INFO -- :
I, [2024-06-05T00:01:22.043499 #1] INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2024-06-05T00:01:22.067432 #1] INFO -- :
I, [2024-06-05T00:01:22.067586 #1] INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
From https://github.com/discourse/discourse
* branch tests-passed -> FETCH_HEAD
* [new branch] tests-passed -> origin/tests-passed
I, [2024-06-05T00:01:28.337837 #1] INFO -- :
I, [2024-06-05T00:01:28.338598 #1] INFO -- : > cd /var/www/discourse && git checkout tests-passed
Passaggio a un nuovo ramo 'tests-passed'
I, [2024-06-05T00:01:31.534502 #1] INFO -- : Ramo 'tests-passed' impostato per tracciare il ramo remoto 'tests-passed' da 'origin'.
I, [2024-06-05T00:01:31.535226 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-06-05T00:01:31.540890 #1] INFO -- :
I, [2024-06-05T00:01:31.540982 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-06-05T00:01:31.544674 #1] INFO -- :
I, [2024-06-05T00:01:31.544787 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-06-05T00:01:31.549410 #1] INFO -- :
I, [2024-06-05T00:01:31.549578 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-06-05T00:01:31.553124 #1] INFO -- :
I, [2024-06-05T00:01:31.553284 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-06-05T00:01:31.557663 #1] INFO -- :
I, [2024-06-05T00:01:31.557825 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2024-06-05T00:01:31.561174 #1] INFO -- :
I, [2024-06-05T00:01:31.561325 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-06-05T00:01:31.569529 #1] INFO -- :
I, [2024-06-05T00:01:31.570383 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2024-06-05T00:01:31.577627 #1] INFO -- :
I, [2024-06-05T00:01:31.577843 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2024-06-05T00:01:31.583781 #1] INFO -- :
I, [2024-06-05T00:01:31.583970 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-06-05T00:01:31.591764 #1] INFO -- :
I, [2024-06-05T00:01:31.591954 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2024-06-05T00:01:31.598164 #1] INFO -- :
I, [2024-06-05T00:01:31.598326 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-06-05T00:01:31.603561 #1] INFO -- :
I, [2024-06-05T00:01:31.603737 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-06-05T00:01:32.101400 #1] INFO -- :
I, [2024-06-05T00:01:32.102064 #1] INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-06-05T00:01:32.111566 #1] INFO -- :
I, [2024-06-05T00:01:32.112387 #1] INFO -- : Sostituzione di # redis con sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-06-05T00:01:32.113094 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Clonazione in 'docker_manager'...
I, [2024-06-05T00:01:33.452577 #1] INFO -- :
I, [2024-06-05T00:01:33.454075 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-06-05T00:01:33.483225 #1] INFO -- :
I, [2024-06-05T00:01:33.483456 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-06-05T00:01:33.486077 #1] INFO -- :
I, [2024-06-05T00:01:33.486156 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2024-06-05T00:01:33.488912 #1] INFO -- :
I, [2024-06-05T00:01:33.490137 #1] INFO -- : Sostituzione di pid /run/nginx.pid; con daemon off; in /etc/nginx/nginx.conf
I, [2024-06-05T00:01:33.491232 #1] INFO -- : Sostituzione di (?m-ix:upstream[^\}]+\}) con upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-06-05T00:01:33.491544 #1] INFO -- : Sostituzione di (?-mix:server_name.+$) con server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-06-05T00:01:33.501000 #1] INFO -- : Sostituzione di (?-mix:client_max_body_size.+$) con client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-06-05T00:01:33.511360 #1] INFO -- : > echo "configurazione web completata"
I, [2024-06-05T00:01:33.513903 #1] INFO -- : configurazione web completata
I, [2024-06-05T00:01:33.514452 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
ERROR: Errore durante l'installazione di bundler:
bundler-2.5.3 richiede Ruby versione >= 3.0.0. La versione ruby corrente è 2.7.2.137.
I, [2024-06-05T00:01:34.070583 #1] INFO -- :
I, [2024-06-05T00:01:34.072163 #1] INFO -- : Terminazione processi asincroni
I, [2024-06-05T00:01:34.072226 #1] INFO -- : Invio INT a HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 59
I, [2024-06-05T00:01:34.072309 #1] INFO -- : Invio TERM a exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 176
2024-06-05 00:01:34.072 UTC [59] LOG: richiesta di arresto rapido ricevuta
176:signal-handler (1717545694) Ricevuto SIGTERM pianificazione arresto...
2024-06-05 00:01:34.074 UTC [59] LOG: annullamento di qualsiasi transazione attiva
2024-06-05 00:01:34.080 UTC [59] LOG: worker di background "logical replication launcher" (PID 68) uscito con codice di uscita 1
2024-06-05 00:01:34.081 UTC [63] LOG: arresto in corso
2024-06-05 00:01:34.123 UTC [59] LOG: sistema database arrestato
176:M 05 Jun 2024 00:01:34.124 # Arresto richiesto dall'utente...
176:M 05 Jun 2024 00:01:34.125 * Salvataggio snapshot RDB finale prima dell'uscita.
176:M 05 Jun 2024 00:01:34.249 * DB salvato su disco
176:M 05 Jun 2024 00:01:34.249 # Redis è ora pronto per uscire, arrivederci...
FALLITO
--------------------
Pups::ExecError: cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock) fallito con ritorno #<Process::Status: pid 314 exit 1>
Posizione del fallimento: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec fallito con i parametri {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,\"\"); print $0 }' Gemfile.lock)", "find $home ! -user discourse -exec chown discourse {} \\+"]}
7eb3a03475aef78c0e1752bc7845710a0ea739300bd8302356369f362d1bab6f
** BOOTSTRAP FALLITO ** scorri verso l'alto e cerca messaggi di errore precedenti, potrebbe essercene più di uno.
./discourse-doctor può aiutare a diagnosticare il problema.
==================== FINE LOG RICOSTRUZIONE ====================
Ricostruzione app fallita.
Verifica del nome del dominio . . .
Connessione a idmforums.com riuscita.
Probabilmente dovresti rimuovere eventuali plugin non standard e ricostruire.
Tentativo di riavvio del container esistente. . .
avvio del container esistente
+ /usr/bin/docker start app
Risposta di errore dal demone: il driver non è riuscito a programmare la connettività esterna sull'endpoint app (6a5f876fc5e37ebb76be4bc5ef4a80ef5679fce4f4ab547eb337cafb2b1d4619): Errore nell'avvio del proxy userland: listen tcp4 0.0.0.0:443: bind: indirizzo già in uso
Errore: impossibile avviare i container: app
Riavvio del container fallito.
==================== PLUGIN ====================
- git clone https://github.com/discourse/docker_manager.git
Nessun plugin non ufficiale rilevato.
Vedi https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb per l'elenco ufficiale.
========================================
Versione Discourse su idmforums.com: NON TROVATA
Versione Discourse su localhost: NON TROVATA
==================== INFORMAZIONI MEMORIA ====================
RAM (MB): 8167
totale usato libero condiviso buff/cache disponibile
Mem: 7976 775 2484 6 4716 6887
Swap: 255 31 224
==================== CONTROLLO SPAZIO DISCO ====================
---------- Spazio Disco OS ----------
Filesystem Size Used Avail Use% Mounted on
/dev/sda 158G 56G 94G 38% /
==================== INFORMAZIONI DISCO ====================
Disco /dev/sda: 159.8 GiB, 171534450688 byte, 335028224 settori
Unità: settori di 1 * 512 = 512 byte
Dimensione settore (logico/fisico): 512 byte / 512 byte
Dimensione I/O (minimo/ottimale): 512 byte / 512 byte
Disco /dev/sdb: 260 MiB, 272629760 byte, 532480 settori
Unità: settori di 1 * 512 = 512 byte
Dimensione settore (logico/fisico): 512 byte / 512 byte
Dimensione I/O (minimo/ottimale): 512 byte / 512 byte
==================== FINE INFORMAZIONI DISCO ====================