root@idmforums:/var/idmforums# ./launcher rebuild app
Vérification que le lanceur est à jour
Récupération de l'origine
Le lanceur a divergé au niveau du code source, ce qui est attendu uniquement en mode Dev
Arrêt de l'ancien conteneur
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
De https://github.com/discourse/pups
17f04ec..e0ff889 master -> origin/master
* [nouvelle branche] main -> origin/main
* [nouvelle branche] stream-stdout -> origin/stream-stdout
* [nouveau tag] v1.1.1 -> v1.1.1
* [nouveau tag] v1.1.0 -> v1.1.0
* [nouveau tag] v1.2.0 -> v1.2.0
* [nouveau tag] v1.2.1 -> v1.2.1
Mise à jour de 17f04ec..e0ff889
Avancement rapide
.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 fichiers modifiés, 1158 insertions(+), 607 suppressions(-)
création du mode 100644 .github/workflows/ci.yml
création du mode 100644 .github/workflows/lint.yml
création du mode 100644 .rubocop.yml
création du mode 100644 lib/pups/docker.rb
création du mode 100644 test/docker_test.rb
Note : vérification de la sortie sur « v1.0.3 ».
Vous êtes dans l'état « HEAD détaché ». Vous pouvez parcourir, apporter des modifications
expérimentales et les valider, et vous pouvez abandonner tous les commits que vous faites dans cet
état sans affecter aucune branche en effectuant une autre vérification.
Si vous souhaitez créer une nouvelle branche pour conserver les commits que vous créez, vous pouvez
le faire (maintenant ou plus tard) en utilisant -b avec la commande checkout à nouveau. Exemple :
git checkout -b <nom-de-nouvelle-branche>
HEAD est maintenant à d1db030 nouvelle version découpée
I, [2024-06-04T23:40:34.191210 #1] INFO -- : Chargement de --stdin
I, [2024-06-04T23:40:34.198692 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2024-06-04T23:40:34.228020 #1] INFO -- : Génération des paramètres régionaux (cela peut prendre un certain temps)...
Génération terminée.
I, [2024-06-04T23:40:34.228323 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2024-06-04T23:40:34.231055 #1] INFO -- :
I, [2024-06-04T23:40:34.231294 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2024-06-04T23:40:34.233426 #1] INFO -- :
I, [2024-06-04T23:40:34.233610 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2024-06-04T23:40:34.235052 #1] INFO -- :
I, [2024-06-04T23:40:34.235243 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2024-06-04T23:40:34.237698 #1] INFO -- :
I, [2024-06-04T23:40:34.237920 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2024-06-04T23:40:34.240767 #1] INFO -- :
I, [2024-06-04T23:40:34.240960 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres déjà en cours d'exécution, arrêtez le conteneur ; exit 1
2024/06/04 23:40:34 socat[36] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36) : Aucun fichier ou répertoire de ce type
I, [2024-06-04T23:40:34.245832 #1] INFO -- :
I, [2024-06-04T23:40:34.246035 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2024-06-04T23:40:34.248131 #1] INFO -- :
I, [2024-06-04T23:40:34.248370 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2024-06-04T23:40:34.251004 #1] INFO -- :
I, [2024-06-04T23:40:34.251248 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-06-04T23:40:34.253455 #1] INFO -- :
I, [2024-06-04T23:40:34.253706 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-06-04T23:40:34.255925 #1] INFO -- :
I, [2024-06-04T23:40:34.260253 #1] INFO -- : Fichier > /etc/service/postgres/run chmod: +x chown:
I, [2024-06-04T23:40:34.264161 #1] INFO -- : Fichier > /etc/service/postgres/log/run chmod: +x chown:
I, [2024-06-04T23:40:34.269057 #1] INFO -- : Fichier > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2024-06-04T23:40:34.273413 #1] INFO -- : Fichier > /root/upgrade_postgres chmod: +x chown:
I, [2024-06-04T23:40:34.273704 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2024-06-04T23:40:34.805509 #1] INFO -- :
I, [2024-06-04T23:40:34.805817 #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-04T23:40:34.809381 #1] INFO -- :
I, [2024-06-04T23:40:34.809593 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2024-06-04T23:40:34.822667 #1] INFO -- :
I, [2024-06-04T23:40:34.823150 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2024-06-04T23:40:34.826082 #1] INFO -- :
I, [2024-06-04T23:40:34.826302 #1] INFO -- : > /root/upgrade_postgres
I, [2024-06-04T23:40:34.831326 #1] INFO -- :
I, [2024-06-04T23:40:34.831545 #1] INFO -- : > rm /root/upgrade_postgres
I, [2024-06-04T23:40:34.833650 #1] INFO -- :
I, [2024-06-04T23:40:34.834325 #1] INFO -- : Remplacement de data_directory = '/var/lib/postgresql/13/main' par data_directory = '/shared/postgres_data' dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.835208 #1] INFO -- : Remplacement de (?-mix:#?listen_addresses *=.*) par listen_addresses = '*' dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.835549 #1] INFO -- : Remplacement de (?-mix:#?synchronous_commit *=.*) par synchronous_commit = $db_synchronous_commit dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.835907 #1] INFO -- : Remplacement de (?-mix:#?shared_buffers *=.*) par shared_buffers = $db_shared_buffers dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.836288 #1] INFO -- : Remplacement de (?-mix:#?work_mem *=.*) par work_mem = $db_work_mem dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.836619 #1] INFO -- : Remplacement de (?-mix:#?default_text_search_config *=.*) par default_text_search_config = '$db_default_text_search_config' dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.836928 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2024-06-04T23:40:34.840929 #1] INFO -- :
I, [2024-06-04T23:40:34.841468 #1] INFO -- : Remplacement de (?-mix:#?checkpoint_segments *=.*) par checkpoint_segments = $db_checkpoint_segments dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.841795 #1] INFO -- : Remplacement de (?-mix:#?logging_collector *=.*) par logging_collector = $db_logging_collector dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.842153 #1] INFO -- : Remplacement de (?-mix:#?log_min_duration_statement *=.*) par log_min_duration_statement = $db_log_min_duration_statement dans /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T23:40:34.842724 #1] INFO -- : Remplacement de (?-mix:^#local +replication +postgres +peer$) par local replication postgres peer dans /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-04T23:40:34.843021 #1] INFO -- : Remplacement de (?-mix:^host.*all.*all.*127.*$) par host all all 0.0.0.0/0 md5 dans /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-04T23:40:34.843276 #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-04T23:40:34.845795 #1] INFO -- : > sleep 5
2024-06-04 23:40:34.941 UTC [59] LOG: démarrage de PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) sur x86_64-pc-linux-gnu, compilé par gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2024-06-04 23:40:34.941 UTC [59] LOG: écoute sur l'adresse IPv4 « 0.0.0.0 », port 5432
2024-06-04 23:40:34.941 UTC [59] LOG: écoute sur l'adresse IPv6 « :: », port 5432
2024-06-04 23:40:34.943 UTC [59] LOG: écoute sur le socket Unix « /var/run/postgresql/.s.PGSQL.5432 »
2024-06-04 23:40:34.947 UTC [62] LOG: le système de base de données a été arrêté le 2024-06-04 23:37:27 UTC
2024-06-04 23:40:34.954 UTC [59] LOG: le système de base de données est prêt à accepter des connexions
I, [2024-06-04T23:40:39.849613 #1] INFO -- :
I, [2024-06-04T23:40:39.850223 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2024-06-04 23:40:39.910 UTC [72] postgres@postgres ERROR: la base de données « discourse » existe déjà
2024-06-04 23:40:39.910 UTC [72] postgres@discourse STATEMENT: CREATE DATABASE discourse;
createdb: erreur : échec de la création de la base de données : ERROR: la base de données « discourse » existe déjà
I, [2024-06-04T23:40:39.913167 #1] INFO -- :
I, [2024-06-04T23:40:39.913480 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2024-06-04 23:40:39.968 UTC [83] postgres@discourse ERROR: le rôle « discourse » existe déjà
2024-06-04 23:40:39.968 UTC [83] postgres@discourse STATEMENT: create user discourse;
ERROR: le rôle « discourse » existe déjà
I, [2024-06-04T23:40:39.971330 #1] INFO -- :
I, [2024-06-04T23:40:39.971638 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2024-06-04T23:40:40.022845 #1] INFO -- : GRANT
I, [2024-06-04T23:40:40.023178 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2024-06-04T23:40:40.078407 #1] INFO -- : ALTER SCHEMA
I, [2024-06-04T23:40:40.078622 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: l'extension « hstore » existe déjà, passage à la suite
I, [2024-06-04T23:40:40.136299 #1] INFO -- : CREATE EXTENSION
I, [2024-06-04T23:40:40.136815 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: l'extension « pg_trgm » existe déjà, passage à la suite
I, [2024-06-04T23:40:40.189922 #1] INFO -- : CREATE EXTENSION
I, [2024-06-04T23:40:40.190293 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: l'extension « hstore » existe déjà, passage à la suite
I, [2024-06-04T23:40:40.235506 #1] INFO -- : CREATE EXTENSION
I, [2024-06-04T23:40:40.236235 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: l'extension « pg_trgm » existe déjà, passage à la suite
I, [2024-06-04T23:40:40.285049 #1] INFO -- : CREATE EXTENSION
I, [2024-06-04T23:40:40.285412 #1] INFO -- : > sudo -u postgres psql discourse
I, [2024-06-04T23:40:40.288461 #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-04T23:40:40.346156 #1] INFO -- : Fichier > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2024-06-04T23:40:40.349320 #1] INFO -- : Fichier > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2024-06-04T23:40:40.349444 #1] INFO -- : > echo postgres installé !
I, [2024-06-04T23:40:40.352137 #1] INFO -- : postgres installé !
I, [2024-06-04T23:40:40.357616 #1] INFO -- : Fichier > /etc/service/redis/run chmod: +x chown:
I, [2024-06-04T23:40:40.363179 #1] INFO -- : Fichier > /etc/service/redis/log/run chmod: +x chown:
I, [2024-06-04T23:40:40.368977 #1] INFO -- : Fichier > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2024-06-04T23:40:40.369997 #1] INFO -- : Remplacement de daemonize yes par dans /etc/redis/redis.conf
I, [2024-06-04T23:40:40.370654 #1] INFO -- : Remplacement de (?-mix:^pidfile.*$) par dans /etc/redis/redis.conf
I, [2024-06-04T23:40:40.370977 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-06-04T23:40:40.374785 #1] INFO -- :
I, [2024-06-04T23:40:40.375165 #1] INFO -- : Remplacement de (?-mix:^logfile.*$) par logfile "" dans /etc/redis/redis.conf
I, [2024-06-04T23:40:40.375742 #1] INFO -- : Remplacement de (?-mix:^bind .*$) par dans /etc/redis/redis.conf
I, [2024-06-04T23:40:40.376160 #1] INFO -- : Remplacement de (?-mix:^dir .*$) par dir /shared/redis_data dans /etc/redis/redis.conf
I, [2024-06-04T23:40:40.376570 #1] INFO -- : Remplacement de (?-mix:^protected-mode yes) par protected-mode no dans /etc/redis/redis.conf
I, [2024-06-04T23:40:40.377131 #1] INFO -- : Remplacement de # io-threads 4 par io-threads $redis_io_threads dans /etc/redis/redis.conf
I, [2024-06-04T23:40:40.377464 #1] INFO -- : > echo redis installé
I, [2024-06-04T23:40:40.380055 #1] INFO -- : redis installé
I, [2024-06-04T23:40:40.380270 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-06-04T23:40:40.384834 #1] INFO -- : logfile ""
I, [2024-06-04T23:40:40.385077 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.confI, [2024-06-04T23:40:40.387343 #1] INFO -- : > sleep 10
176:C 04 Jun 2024 23:40:40.395 # oO0OoO0OoO0Oo Redis démarre oO0OoO0OoO0Oo
176:C 04 Jun 2024 23:40:40.395 # Version Redis=6.2.3, bits=64, commit=00000000, modified=0, pid=176, vient de démarrer
176:C 04 Jun 2024 23:40:40.395 # Configuration chargée
176:M 04 Jun 2024 23:40:40.396 * horloge monotone : POSIX clock_gettime
176:M 04 Jun 2024 23:40:40.396 * Mode d'exécution : standalone, port=6379.
176:M 04 Jun 2024 23:40:40.397 # AVERTISSEMENT : Le paramètre TCP backlog de 511 ne peut pas être appliqué car /proc/sys/net/core/somaxconn est défini à la valeur inférieure de 128.
176:M 04 Jun 2024 23:40:40.397 # Serveur initialisé
176:M 04 Jun 2024 23:40:40.397 # AVERTISSEMENT : overcommit_memory est défini à 0 ! La sauvegarde en arrière-plan peut échouer dans des conditions de faible mémoire. Pour résoudre ce problème, ajoutez 'vm.overcommit_memory = 1' à /etc/sysctl.conf, puis redémarrez ou exécutez la commande 'sysctl vm.overcommit_memory=1' pour que cela prenne effet.
176:M 04 Jun 2024 23:40:40.486 * Base de données chargée depuis le disque : 0,089 secondes
176:M 04 Jun 2024 23:40:40.486 * Prêt à accepter des connexions
I, [2024-06-04T23:40:50.390217 #1] INFO -- :
I, [2024-06-04T23:40:50.390530 #1] INFO -- : > thpoff echo "thpoff est installé !"
I, [2024-06-04T23:40:50.395538 #1] INFO -- : thpoff est installé !
I, [2024-06-04T23:40:50.395943 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2024-06-04T23:40:50.651921 #1] INFO -- :
I, [2024-06-04T23:40:50.652197 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-06-04T23:40:50.708634 #1] INFO -- :
I, [2024-06-04T23:40:50.709087 #1] INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2024-06-04T23:40:50.772151 #1] INFO -- :
I, [2024-06-04T23:40:50.772293 #1] INFO -- : > chown -R discourse /home/discourse
I, [2024-06-04T23:40:51.171567 #1] INFO -- :
I, [2024-06-04T23:40:51.172282 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-06-04T23:40:51.176013 #1] INFO -- :
I, [2024-06-04T23:40:51.179620 #1] INFO -- : Fichier > /etc/cron.d/anacron chmod: chown:
I, [2024-06-04T23:40:51.184170 #1] INFO -- : Fichier > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2024-06-04T23:40:51.189593 #1] INFO -- : Fichier > /etc/service/unicorn/run chmod: +x chown:
I, [2024-06-04T23:40:51.193215 #1] INFO -- : Fichier > /etc/service/nginx/run chmod: +x chown:
I, [2024-06-04T23:40:51.196711 #1] INFO -- : Fichier > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2024-06-04T23:40:51.199735 #1] INFO -- : Fichier > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2024-06-04T23:40:51.199839 #1] INFO -- : Remplacement de # postgres par sv start postgres || exit 1 dans /etc/service/unicorn/run
I, [2024-06-04T23:40:51.200122 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.confI, [2024-06-04T23:40:51.201788 #1] INFO -- : > cd /var/www/discourse && git reset --hard
205:C 04 Jun 2024 23:40:51.204 # oO0OoO0OoO0Oo Redis démarre oO0OoO0OoO0Oo
205:C 04 Jun 2024 23:40:51.204 # Version Redis=6.2.3, bits=64, commit=00000000, modified=0, pid=205, vient de démarrer
205:C 04 Jun 2024 23:40:51.204 # Configuration chargée
205:M 04 Jun 2024 23:40:51.205 * horloge monotone : POSIX clock_gettime
205:M 04 Jun 2024 23:40:51.206 # AVERTISSEMENT : Impossible de créer le socket TCP d'écoute du serveur *:6379 : bind : Adresse déjà utilisée
205:M 04 Jun 2024 23:40:51.206 # Échec de l'écoute sur le port 6379 (TCP), abandon.
Vérification des fichiers : 100 % (28860/28860), terminé.
I, [2024-06-04T23:40:55.175162 #1] INFO -- : HEAD est maintenant à 74f71503 FONCTIONNALITÉ : Suppression automatique des sujets brouillons après fusion complète d'un sujet dans un autre (#13187)
I, [2024-06-04T23:40:55.175641 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2024-06-04T23:40:55.313620 #1] INFO -- :
I, [2024-06-04T23:40:55.314088 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2024-06-04T23:40:55.319546 #1] INFO -- :
I, [2024-06-04T23:40:55.319970 #1] INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2024-06-04T23:40:55.326577 #1] INFO -- :
I, [2024-06-04T23:40:55.326933 #1] INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
De https://github.com/discourse/discourse
* branche tests-passed -> FETCH_HEAD
* [nouvelle branche] tests-passed -> origin/tests-passed
I, [2024-06-04T23:41:01.524833 #1] INFO -- :
I, [2024-06-04T23:41:01.524965 #1] INFO -- : > cd /var/www/discourse && git checkout tests-passed
Basculé vers une nouvelle branche « tests-passed »
I, [2024-06-04T23:41:03.913062 #1] INFO -- : La branche « tests-passed » est configurée pour suivre la branche distante « tests-passed » de « origin ».
I, [2024-06-04T23:41:03.913255 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-06-04T23:41:03.918098 #1] INFO -- :
I, [2024-06-04T23:41:03.918279 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-06-04T23:41:03.922201 #1] INFO -- :
I, [2024-06-04T23:41:03.922414 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-06-04T23:41:03.924838 #1] INFO -- :
I, [2024-06-04T23:41:03.924962 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-06-04T23:41:03.927107 #1] INFO -- :
I, [2024-06-04T23:41:03.927222 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-06-04T23:41:03.929087 #1] INFO -- :
I, [2024-06-04T23:41:03.929131 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2024-06-04T23:41:03.931092 #1] INFO -- :
I, [2024-06-04T23:41:03.931136 #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-04T23:41:03.934304 #1] INFO -- :
I, [2024-06-04T23:41:03.934352 #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-04T23:41:03.937279 #1] INFO -- :
I, [2024-06-04T23:41:03.937327 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2024-06-04T23:41:03.940307 #1] INFO -- :
I, [2024-06-04T23:41:03.940354 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-06-04T23:41:03.943514 #1] INFO -- :
I, [2024-06-04T23:41:03.943666 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2024-06-04T23:41:03.949053 #1] INFO -- :
I, [2024-06-04T23:41:03.949340 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-06-04T23:41:03.954231 #1] INFO -- :
I, [2024-06-04T23:41:03.954282 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-06-04T23:41:04.627003 #1] INFO -- :
I, [2024-06-04T23:41:04.627425 #1] INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-06-04T23:41:04.635885 #1] INFO -- :
I, [2024-06-04T23:41:04.636206 #1] INFO -- : Remplacement de # redis par sv start redis || exit 1 dans /etc/service/unicorn/run
I, [2024-06-04T23:41:04.636576 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Clonage dans « docker_manager »...
I, [2024-06-04T23:41:05.492064 #1] INFO -- :
I, [2024-06-04T23:41:05.492420 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T23:41:05.496362 #1] INFO -- :
I, [2024-06-04T23:41:05.496605 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-06-04T23:41:05.499287 #1] INFO -- :
I, [2024-06-04T23:41:05.499391 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2024-06-04T23:41:05.502196 #1] INFO -- :
I, [2024-06-04T23:41:05.502884 #1] INFO -- : Remplacement de pid /run/nginx.pid; par daemon off; dans /etc/nginx/nginx.conf
I, [2024-06-04T23:41:05.503420 #1] INFO -- : Remplacement de (?m-ix:upstream[^\}]+\}) par upstream discourse { server 127.0.0.1:3000; } dans /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T23:41:05.503648 #1] INFO -- : Remplacement de (?-mix:server_name.+$) par server_name _ ; dans /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T23:41:05.503940 #1] INFO -- : Remplacement de (?-mix:client_max_body_size.+$) par client_max_body_size $upload_size ; dans /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T23:41:05.504150 #1] INFO -- : > echo « configuration web terminée »
I, [2024-06-04T23:41:05.506905 #1] INFO -- : configuration web terminée
I, [2024-06-04T23:41:05.507186 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
ERREUR : Erreur lors de l'installation de bundler :
bundler-2.5.3 nécessite Ruby version >= 3.0.0. La version Ruby actuelle est 2.7.2.137.
I, [2024-06-04T23:41:05.940817 #1] INFO -- :
I, [2024-06-04T23:41:05.941641 #1] INFO -- : Arrêt des processus asynchrones
I, [2024-06-04T23:41:05.941717 #1] INFO -- : Envoi de INT à 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-04T23:41:05.941810 #1] INFO -- : Envoi de TERM à exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 176
2024-06-04 23:41:05.942 UTC [59] LOG: demande d'arrêt rapide reçue
176:signal-handler (1717544465) SIGTERM reçu, planification de l'arrêt...
2024-06-04 23:41:05.944 UTC [59] LOG: annulation de toutes les transactions actives
2024-06-04 23:41:05.946 UTC [59] LOG: processus d'arrière-plan « lanceur de réplication logique » (PID 68) s'est terminé avec le code de sortie 12024-06-04 23:41:05.948 UTC [63] LOG: arrêt en cours
176:M 04 Jun 2024 23:41:05.977 # Arrêt demandé par l'utilisateur...
176:M 04 Jun 2024 23:41:05.977 * Sauvegarde du dernier instantané RDB avant la sortie.
2024-06-04 23:41:05.978 UTC [59] LOG: le système de base de données est arrêté
176:M 04 Jun 2024 23:41:06.088 * Base de données sauvegardée sur le disque
176:M 04 Jun 2024 23:41:06.088 # Redis est maintenant prêt à quitter, au revoir...
ÉCHEC
--------------------
Pups::ExecError : cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock) a échoué avec le retour #<Process::Status: pid 314 exit 1>
Emplacement de l'échec : /pups/lib/pups/exec_command.rb:112:in `spawn'
Échec de l'exécution avec les paramètres {"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 {} \\+"]}
2c1f8978c3a71905d6590121f0fd282697ece4b0485c25f9cc8fbdbac2a579a1
** ÉCHEC DU BOOTSTRAP ** Veuillez faire défiler vers le haut et rechercher les messages d'erreur précédents, il peut y en avoir plus d'un.
./discourse-doctor peut aider à diagnostiquer le problème.