Errore di rebuild imprevisto con il template sshd

Plugin disabilitati …

+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up to date.
I, [2019-09-03T04:49:39.718262 #1]  INFO -- : Loading --stdin
I, [2019-09-03T04:49:39.723865 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2019-09-03T04:49:39.757654 #1]  INFO -- : Generazione delle localizzazioni (questo potrebbe richiedere del tempo)...
Generazione completata.

I, [2019-09-03T04:49:39.757975 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2019-09-03T04:49:39.761451 #1]  INFO -- :
I, [2019-09-03T04:49:39.761699 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2019-09-03T04:49:39.764370 #1]  INFO -- :
I, [2019-09-03T04:49:39.764571 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2019-09-03T04:49:39.766958 #1]  INFO -- :
I, [2019-09-03T04:49:39.767147 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2019-09-03T04:49:39.769882 #1]  INFO -- :
I, [2019-09-03T04:49:39.770225 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2019-09-03T04:49:39.772703 #1]  INFO -- :
I, [2019-09-03T04:49:39.772971 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres già in esecuzione, arresta il contenitore ; exit 1
2019/09/03 04:49:39 socat[26] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): File o directory non esistente
I, [2019-09-03T04:49:39.779186 #1]  INFO -- :
I, [2019-09-03T04:49:39.779393 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2019-09-03T04:49:39.782850 #1]  INFO -- :
I, [2019-09-03T04:49:39.783072 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2019-09-03T04:49:39.786229 #1]  INFO -- :
I, [2019-09-03T04:49:39.786469 #1]  INFO -- : > mkdir -p /shared/postgres_run/10-main.pg_stat_tmp
I, [2019-09-03T04:49:39.789114 #1]  INFO -- :
I, [2019-09-03T04:49:39.789389 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/10-main.pg_stat_tmp
I, [2019-09-03T04:49:39.791882 #1]  INFO -- :
I, [2019-09-03T04:49:39.797813 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2019-09-03T04:49:39.803014 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2019-09-03T04:49:39.808491 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2019-09-03T04:49:39.813637 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2019-09-03T04:49:39.814011 #1]  INFO -- : > chown -R root /var/lib/postgresql/10/main
I, [2019-09-03T04:49:40.345139 #1]  INFO -- :
I, [2019-09-03T04:49:40.346160 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/10/bin/initdb -D /shared/postgres_data || exit 0
I, [2019-09-03T04:49:40.351006 #1]  INFO -- :
I, [2019-09-03T04:49:40.351231 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2019-09-03T04:49:40.375603 #1]  INFO -- :
I, [2019-09-03T04:49:40.376024 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2019-09-03T04:49:40.378446 #1]  INFO -- :
I, [2019-09-03T04:49:40.378813 #1]  INFO -- : > /root/upgrade_postgres
I, [2019-09-03T04:49:40.383962 #1]  INFO -- :
I, [2019-09-03T04:49:40.384252 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2019-09-03T04:49:40.386614 #1]  INFO -- :
I, [2019-09-03T04:49:40.387023 #1]  INFO -- : Sostituzione di data_directory = '/var/lib/postgresql/10/main' con data_directory = '/shared/postgres_data' in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.387696 #1]  INFO -- : Sostituzione di (?-mix:#?listen_addresses *=.*) con listen_addresses = '*' in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.388099 #1]  INFO -- : Sostituzione di (?-mix:#?synchronous_commit *=.*) con synchronous_commit = $db_synchronous_commit in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.388457 #1]  INFO -- : Sostituzione di (?-mix:#?shared_buffers *=.*) con shared_buffers = $db_shared_buffers in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.388820 #1]  INFO -- : Sostituzione di (?-mix:#?work_mem *=.*) con work_mem = $db_work_mem in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.389179 #1]  INFO -- : Sostituzione di (?-mix:#?default_text_search_config *=.*) con default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.389500 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2019-09-03T04:49:40.392868 #1]  INFO -- :
I, [2019-09-03T04:49:40.393170 #1]  INFO -- : Sostituzione di (?-mix:#?max_wal_senders *=.*) con max_wal_senders = $db_max_wal_senders in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.393526 #1]  INFO -- : Sostituzione di (?-mix:#?wal_level *=.*) con wal_level = $db_wal_level in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.393892 #1]  INFO -- : Sostituzione di (?-mix:#?checkpoint_segments *=.*) con checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.394223 #1]  INFO -- : Sostituzione di (?-mix:#?logging_collector *=.*) con logging_collector = $db_logging_collector in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.394560 #1]  INFO -- : Sostituzione di (?-mix:#?log_min_duration_statement *=.*) con log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/10/main/postgresql.conf
I, [2019-09-03T04:49:40.394966 #1]  INFO -- : Sostituzione di (?-mix:^#local +replication +postgres +peer$) con local replication postgres  peer in /etc/postgresql/10/main/pg_hba.conf
I, [2019-09-03T04:49:40.395310 #1]  INFO -- : Sostituzione di (?-mix:^host.*all.*all.*127.*$) con host all all 0.0.0.0/0 md5 in /etc/postgresql/10/main/pg_hba.conf
I, [2019-09-03T04:49:40.395614 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main
I, [2019-09-03T04:49:40.397705 #1]  INFO -- : > sleep 5
2019-09-03 04:49:40.421 UTC [49] LOG:  in ascolto sull'indirizzo IPv4 "0.0.0.0", porta 5432
2019-09-03 04:49:40.421 UTC [49] LOG:  in ascolto sull'indirizzo IPv6 "::", porta 5432
2019-09-03 04:49:40.422 UTC [49] LOG:  in ascolto sul socket Unix "/var/run/postgresql/.s.PGSQL.5432"
2019-09-03 04:49:40.504 UTC [52] LOG:  il sistema di database è stato arrestato alle 2019-09-03 04:48:30 UTC
2019-09-03 04:49:40.511 UTC [49] LOG:  il sistema di database è pronto ad accettare connessioni
I, [2019-09-03T04:49:45.400403 #1]  INFO -- :
I, [2019-09-03T04:49:45.400688 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2019-09-03 04:49:45.459 UTC [62] postgres@postgres ERROR:  il database "discourse" esiste già
2019-09-03 04:49:45.459 UTC [62] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: creazione del database fallita: ERROR:  il database "discourse" esiste già
I, [2019-09-03T04:49:45.461165 #1]  INFO -- :
I, [2019-09-03T04:49:45.461532 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2019-09-03 04:49:45.523 UTC [73] postgres@discourse ERROR:  il ruolo "discourse" esiste già
2019-09-03 04:49:45.523 UTC [73] postgres@discourse STATEMENT:  create user discourse;
ERROR:  il ruolo "discourse" esiste già
I, [2019-09-03T04:49:45.526360 #1]  INFO -- :
I, [2019-09-03T04:49:45.526735 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2019-09-03T04:49:45.585075 #1]  INFO -- : GRANT

I, [2019-09-03T04:49:45.585263 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2019-09-03T04:49:45.642427 #1]  INFO -- : ALTER SCHEMA

I, [2019-09-03T04:49:45.642605 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  l'estensione "hstore" esiste già, salto
I, [2019-09-03T04:49:45.703361 #1]  INFO -- : CREATE EXTENSION

I, [2019-09-03T04:49:45.703743 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  l'estensione "pg_trgm" esiste già, salto
I, [2019-09-03T04:49:45.764235 #1]  INFO -- : CREATE EXTENSION

I, [2019-09-03T04:49:45.764580 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  l'estensione "hstore" esiste già, salto
I, [2019-09-03T04:49:45.829172 #1]  INFO -- : CREATE EXTENSION

I, [2019-09-03T04:49:45.829528 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  l'estensione "pg_trgm" esiste già, salto
I, [2019-09-03T04:49:45.888279 #1]  INFO -- : CREATE EXTENSION

I, [2019-09-03T04:49:45.888614 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2019-09-03T04:49:45.891093 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2019-09-03T04:49:45.956513 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2019-09-03T04:49:45.959681 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2019-09-03T04:49:45.959792 #1]  INFO -- : > echo postgres installato!
I, [2019-09-03T04:49:45.962409 #1]  INFO -- : postgres installato!

I, [2019-09-03T04:49:45.968200 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2019-09-03T04:49:45.973571 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2019-09-03T04:49:45.979079 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2019-09-03T04:49:45.979445 #1]  INFO -- : Sostituzione di daemonize yes con  in /etc/redis/redis.conf
I, [2019-09-03T04:49:45.980014 #1]  INFO -- : Sostituzione di (?-mix:^pidfile.*$) con  in /etc/redis/redis.conf
I, [2019-09-03T04:49:45.980386 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2019-09-03T04:49:45.983542 #1]  INFO -- :
I, [2019-09-03T04:49:45.983977 #1]  INFO -- : Sostituzione di (?-mix:^logfile.*$) con logfile "" in /etc/redis/redis.conf
I, [2019-09-03T04:49:45.984438 #1]  INFO -- : Sostituzione di (?-mix:^bind .*$) con  in /etc/redis/redis.conf
I, [2019-09-03T04:49:45.984920 #1]  INFO -- : Sostituzione di (?-mix:^dir .*$) con dir /shared/redis_data in /etc/redis/redis.conf
I, [2019-09-03T04:49:45.985389 #1]  INFO -- : Sostituzione di (?-mix:^protected-mode yes) con protected-mode no in /etc/redis/redis.conf
I, [2019-09-03T04:49:45.985766 #1]  INFO -- : > echo redis installato
I, [2019-09-03T04:49:45.988217 #1]  INFO -- : redis installato

I, [2019-09-03T04:49:45.988443 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2019-09-03T04:49:45.993546 #1]  INFO -- : logfile ""

I, [2019-09-03T04:49:45.993842 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2019-09-03T04:49:45.995903 #1]  INFO -- : > sleep 10
166:C 03 Sep 2019 04:49:45.999 # oO0OoO0OoO0Oo Redis è in avvio oO0OoO0OoO0Oo
166:C 03 Sep 2019 04:49:45.999 # Versione Redis=5.0.5, bits=64, commit=00000000, modified=0, pid=166, appena avviato
166:C 03 Sep 2019 04:49:45.999 # Configurazione caricata
                _._

166:M 03 Sep 2019 04:49:46.001 # ATTENZIONE: L'impostazione TCP backlog di 511 non può essere applicata perché /proc/sys/net/core/somaxconn è impostato sul valore inferiore di 128.
166:M 03 Sep 2019 04:49:46.001 # Server inizializzato
166:M 03 Sep 2019 04:49:46.001 # ATTENZIONE: overcommit_memory è impostato su 0! Il salvataggio in background potrebbe fallire in condizioni di scarsa memoria. 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' affinché abbia effetto.
166:M 03 Sep 2019 04:49:46.001 # ATTENZIONE: hai abilitato il supporto per le Pagine Giganti Trasparenti (THP) nel tuo kernel. Questo creerà problemi di latenza e utilizzo della memoria con Redis. Per risolvere questo problema, esegui il comando 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' come root e aggiungilo al tuo /etc/rc.local per mantenere l'impostazione dopo un riavvio. Redis deve essere riavviato dopo aver disabilitato THP.
166:M 03 Sep 2019 04:49:46.148 * DB caricato dal disco: 0.147 secondi
166:M 03 Sep 2019 04:49:46.148 * Pronto ad accettare connessioni
I, [2019-09-03T04:49:55.998550 #1]  INFO -- :
I, [2019-09-03T04:49:55.998915 #1]  INFO -- : Sostituzione di session    required     pam_loginuid.so con  in /etc/pam.d/sshd
I, [2019-09-03T04:49:56.005595 #1]  INFO -- : File > /etc/service/sshd/run  chmod: +x  chown:
I, [2019-09-03T04:49:56.010884 #1]  INFO -- : File > /etc/runit/3.d/99-ssh  chmod: +x  chown:
I, [2019-09-03T04:49:56.011149 #1]  INFO -- : > mkdir -p /var/run/sshd
I, [2019-09-03T04:49:56.013764 #1]  INFO -- :
I, [2019-09-03T04:49:56.014063 #1]  INFO -- : > mkdir -p /root/.ssh
I, [2019-09-03T04:49:56.016635 #1]  INFO -- :
I, [2019-09-03T04:49:56.016841 #1]  INFO -- : > echo "" >> /root/.ssh/authorized_keys
I, [2019-09-03T04:49:56.019199 #1]  INFO -- :
I, [2019-09-03T04:49:56.019283 #1]  INFO -- : > echo "$$ENV_SSH_PUB_KEY" >> /root/.ssh/authorized_keys
I, [2019-09-03T04:49:56.021462 #1]  INFO -- :
I, [2019-09-03T04:49:56.021543 #1]  INFO -- : > chmod 640 /root/.ssh/authorized_keys
I, [2019-09-03T04:49:56.023659 #1]  INFO -- :
I, [2019-09-03T04:49:56.023825 #1]  INFO -- : > rm /etc/update-motd.d/00-header
rm: impossibile rimuovere '/etc/update-motd.d/00-header': File o directory non esistente
I, [2019-09-03T04:49:56.026060 #1]  INFO -- :
I, [2019-09-03T04:49:56.026388 #1]  INFO -- : Terminazione dei processi asincroni
I, [2019-09-03T04:49:56.026449 #1]  INFO -- : Invio di INT a HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 49
I, [2019-09-03T04:49:56.026485 #1]  INFO -- : Invio di TERM a exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 166
166:signal-handler (1567486196) Ricevuto SIGTERM, pianificazione di arresto...
2019-09-03 04:49:56.026 UTC [49] LOG:  ricevuta richiesta di arresto rapido
2019-09-03 04:49:56.027 UTC [49] LOG:  interruzione di tutte le transazioni attive
2019-09-03 04:49:56.031 UTC [49] LOG:  processo worker: avvio della replicazione logica (PID 58) terminato con codice di uscita 1
2019-09-03 04:49:56.032 UTC [53] LOG:  arresto in corso
2019-09-03 04:49:56.049 UTC [49] LOG:  il sistema di database è arrestato
166:M 03 Sep 2019 04:49:56.070 # Richiesta di arresto dall'utente...
166:M 03 Sep 2019 04:49:56.070 * Salvataggio dell'ultimo snapshot RDB prima dell'uscita.
166:M 03 Sep 2019 04:49:56.265 * DB salvato su disco
166:M 03 Sep 2019 04:49:56.265 # Redis è ora pronto per uscire, arrivederci...


RIUSCITA FALLITA
--------------------
Pups::ExecError: rm /etc/update-motd.d/00-header fallito con return #<Process::Status: pid 181 exit 1>
Posizione dell'errore: /pups/lib/pups/exec_command.rb:112:in `spawn'
esecuzione fallita con i parametri {"hook"=>"sshd", "cmd"=>["mkdir -p /var/run/sshd", "mkdir -p /root/.ssh", "echo \"$ssh_key\" >> /root/.ssh/authorized_keys", "echo \"$$ENV_SSH_PUB_KEY\" >> /root/.ssh/authorized_keys", "chmod 640 /root/.ssh/authorized_keys", "rm /etc/update-motd.d/00-header", "rm /etc/update-motd.d/10-help-text", "rm /etc/legal"]}
d6e7b9e61b5a104075c7413331d5894bcb58e00719bcbcde094d3d47c080cbb0
** AVVIAMENTO FALLITO ** scorri verso l'alto e cerca messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor può aiutare a diagnosticare il problema.
root@toxu:/var/discourse#


Strano, un errore del genere per la prima volta.

./discourse-doctor


DISCOURSE DOCTOR Mar 3 Set 08:34:20 MSK 2019
OS: Linux toxu 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Trovato containers/app.yml

==================== IMPOSTAZIONI YML ====================
awk: non è un’opzione: --field-separator=:
DISCOURSE_HOSTNAME=
awk: non è un’opzione: --field-separator=:
SMTP_ADDRESS=
awk: non è un’opzione: --field-separator=:
DEVELOPER_EMAILS=
awk: non è un’opzione: --field-separator=:
SMTP_PASSWORD=
awk: non è un’opzione: --field-separator=:
SMTP_PORT=
awk: non è un’opzione: --field-separator=:
SMTP_USER_NAME=
awk: non è un’opzione: --field-separator=:
LETSENCRYPT_ACCOUNT_EMAIL=

==================== INFORMAZIONI DOCKER ====================
VERSIONE DOCKER: Docker version 18.09.6, build 481bc77

PROCESSI DOCKER (docker ps -a)

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9097d20dd872 local_discourse/app “/sbin/boot” 12 giorni fa Up 4 minuti 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp app
11db3dc89d18 hello-world “/hello” 2 mesi fa Exited (0) 2 mesi fa eager_williamson

9097d20dd872 local_discourse/app “/sbin/boot” 12 giorni fa Up 4 minuti 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp app

Il contenitore Discourse app è in esecuzione

==================== PLUGIN ====================
- git clone GitHub - discourse/docker_manager: Plugin for use with discourse docker image · GitHub
# - git clone GitHub - discourse/discourse-checklist: A simple checklist rendering plugin for discourse · GitHub

ATTENZIONE:
Sembra che tu abbia plugin non ufficiali.
Se stai riscontrando problemi, dovresti disabilitarli e provare a ricostruire di nuovo.

Vedi discourse/lib/plugin/metadata.rb at main · discourse/discourse · GitHub per l’elenco ufficiale.

========================================
Versione di Discourse su : NON TROVATA
Versione di Discourse su localhost: NON TROVATA

==================== INFORMAZIONI SULLA MEMORIA ====================
RAM (MB): 4039

          total        used        free      shared  buff/cache   available

Mem: 3944 436 2435 0 1072 3263
Swap: 2047 0 2047

==================== CONTROLLO SPAZIO SU DISCO ====================
---------- Spazio su disco OS ----------
Filesystem Size Used Avail Use% Mounted on
/dev/vda2 59G 33G 24G 59% /

==================== INFORMAZIONI SUL DISCO ====================
Disk /dev/vda: 60 GiB, 64424509440 bytes, 125829120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3BBEBDF5-E00D-4156-A5E5-BE62687875D4

Device Start End Sectors Size Type
/dev/vda1 2048 4095 2048 1M BIOS boot
/dev/vda2 4096 125827071 125822976 60G Linux filesystem

==================== FINE INFORMAZIONI SUL DISCO ====================

==================== TEST MAIL ====================
Per un test robusto, ottieni un indirizzo da http://www.mail-tester.com/
O semplicemente invia un messaggio di prova a te stesso.
Indirizzo email per il test mail? (‘n’ per saltare) : n
Test mail saltato.
Sostituzione: SMTP_PASSWORD
Sostituzione: LETSENCRYPT_ACCOUNT_EMAIL
Sostituzione: DEVELOPER_EMAILS
Sostituzione: DISCOURSE_DB_PASSWORD
Sostituzione: Invio mail a

==================== FINE! ====================
L’output di questo programma potrebbe essere disponibile su http:///NDAzZTk1NDk1NmMxYmZj.txt
Dovresti esaminare attentamente quel file prima di condividere l’URL.

Puoi esaminare l’output di questo script con
LESS=-Ri less /tmp/discourse-debug.txt

MA PRIMA, assicurati di conoscere i primi tre comandi qui sotto!!!

Comandi da conoscere quando si visualizza il file con il comando sopra (chiamato ‘less’):
q – esci
/error – cerca la parola ‘errore’
n – cerca la prossima occorrenza
g – vai all’inizio del file
f – vai avanti di una pagina
b – torna indietro di una pagina
G – vai alla fine del file

È possibile che il template sshd non sia compatibile con la nuova immagine di base. Potresti provare a ricostruire senza includere sshd.template.yml nella sezione templates del tuo app.yml?

cc @falco

Grazie. Il certificato è scaduto sul dominio.

Poi (quando ho rinnovato il certificato) è apparso un errore:

Pups::ExecError: rm /etc/update-motd.d/00-header failed with return #<Process::Status: pid 181 exit 1>

Lo script, per qualche motivo, non è riuscito a eliminare il file /etc/update-motd.d/00-header e un paio di altri file. Li ho eliminati manualmente:

root@toxu:/var/discourse# grep -ril "rm /etc/update-motd.d/00-header"  ./
./templates/sshd.template.yml

root@toxu:/var/discourse# diff templates/sshd.template.yml templates/sshd.template.yml.backup
40a41,43
> - rm /etc/update-motd.d/00-header
> - rm /etc/update-motd.d/10-help-text
> - rm /etc/legal

E ha funzionato.
La domanda può essere chiusa.

Anche a me ha funzionato, grazie!

Sospetto che molti siti ne risentiranno.

Hmmm, sembra che il template sshd sia stato rimosso dal campione standalone a gennaio 2016, ed è per questo che i miei test con una nuova installazione funzionano tutti correttamente.

Detto questo, questo commit dovrebbe risolvere il problema. Grazie @Stranik e @gerhard!