Strano problema con Docker che impedisce l'avvio dell'app

Quindi stasera ho eseguito alcuni aggiornamenti/upgrade di routine di Linux sulla mia istanza Ubuntu 20.04. Ho riscontrato alcuni problemi durante la fase di upgrade. Sfortunatamente non ho più accesso ai messaggi di errore. Successivamente ho iniziato ad avere alcuni problemi con Docker che hanno causato l’arresto dell’app Discourse. Ho fatto qualche ricerca e ho visto che Docker non si avviava. Quando ho provato ad avviarlo, ha rifiutato. Sembra che possa avere a che fare con il driver di archiviazione aufs.

Quindi ho creato un nuovo file in /etc/docker/daemon.json

e ho forzato Docker a usare overlay2:

{
  "storage-driver": "overlay2"
}

E poi ho avviato Docker con successo:

$ sudo systemctl start docker

Ho provato ad avviare di nuovo l’app Discourse, e ha detto:

Unable to find image 'local_discourse/app:latest' locally
docker: Error response from daemon: pull access denied for local_discourse/app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Quindi ho ricostruito la mia app, e ogni volta si è fermata alla fase bundle exec rake db:migrate. Sembra che l’errore dica che ho esaurito la memoria. Ma il mio utilizzo della memoria era <10% e il mio server ha 16 GB di RAM.

Al momento il mio forum è completamente offline. Qualche idea su cosa stia causando il problema? Qualsiasi suggerimento è molto apprezzato! Grazie.

Non sono sicuro che sia rilevante, ma quando ho digitato dockerd ha detto:

INFO[2023-05-06T02:18:27.638703334-04:00] Starting up
failed to start daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid

Si è verificato un errore durante il mio aggiornamento. @Falco noti qualcosa di strano?

root@Discourse:/var/discourse# ./launcher rebuild app
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 600 app
app
2.0.20230502-0058: Pulling from discourse/base
Digest: sha256:fa95da36c3d3a582d644b139ec678f5778d745697454bc86f598c689031b30aa
Status: Image is up to date for discourse/base:2.0.20230502-0058
docker.io/discourse/base:2.0.20230502-0058
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-05-06T06:51:41.062034 #1]  INFO -- : Reading from stdin
I, [2023-05-06T06:51:41.074312 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2023-05-06T06:51:41.119459 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2023-05-06T06:51:41.119841 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2023-05-06T06:51:41.123870 #1]  INFO -- :
I, [2023-05-06T06:51:41.124294 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-05-06T06:51:41.127586 #1]  INFO -- :
I, [2023-05-06T06:51:41.127942 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2023-05-06T06:51:41.130653 #1]  INFO -- :
I, [2023-05-06T06:51:41.130990 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2023-05-06T06:51:41.133891 #1]  INFO -- :
I, [2023-05-06T06:51:41.134241 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-05-06T06:51:41.137018 #1]  INFO -- :
I, [2023-05-06T06:51:41.137384 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2023/05/06 06:51:41 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2023-05-06T06:51:41.143396 #1]  INFO -- :
I, [2023-05-06T06:51:41.143696 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-05-06T06:51:41.147548 #1]  INFO -- :
I, [2023-05-06T06:51:41.147874 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-05-06T06:51:41.151285 #1]  INFO -- :
I, [2023-05-06T06:51:41.151607 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-05-06T06:51:41.154442 #1]  INFO -- :
I, [2023-05-06T06:51:41.154805 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-05-06T06:51:41.157819 #1]  INFO -- :
I, [2023-05-06T06:51:41.164260 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2023-05-06T06:51:41.170434 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2023-05-06T06:51:41.176635 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2023-05-06T06:51:41.183013 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2023-05-06T06:51:41.183465 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-05-06T06:51:43.113598 #1]  INFO -- :
I, [2023-05-06T06:51:43.113908 #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, [2023-05-06T06:51:43.116559 #1]  INFO -- :
I, [2023-05-06T06:51:43.116644 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-05-06T06:51:43.135473 #1]  INFO -- :
I, [2023-05-06T06:51:43.135856 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-05-06T06:51:43.139015 #1]  INFO -- :
I, [2023-05-06T06:51:43.139358 #1]  INFO -- : > /root/upgrade_postgres
I, [2023-05-06T06:51:43.144882 #1]  INFO -- :
I, [2023-05-06T06:51:43.145214 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2023-05-06T06:51:43.148122 #1]  INFO -- :
I, [2023-05-06T06:51:43.148552 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.149240 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.149780 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.150244 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.150674 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.151186 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.151645 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-05-06T06:51:43.154717 #1]  INFO -- :
I, [2023-05-06T06:51:43.155106 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.155532 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.156036 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2023-05-06T06:51:43.156451 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2023-05-06T06:51:43.156761 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2023-05-06T06:51:43.157190 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2023-05-06T06:51:43.157534 #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, [2023-05-06T06:51:43.159214 #1]  INFO -- : > sleep 5
2023-05-06 06:51:43.305 UTC [42] LOG:  starting PostgreSQL 13.10 (Debian 13.10-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2023-05-06 06:51:43.305 UTC [42] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-05-06 06:51:43.305 UTC [42] LOG:  listening on IPv6 address "::", port 5432
2023-05-06 06:51:43.309 UTC [42] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-05-06 06:51:43.317 UTC [45] LOG:  database system was shut down at 2023-05-06 06:17:51 UTC
2023-05-06 06:51:43.328 UTC [42] LOG:  database system is ready to accept connections
I, [2023-05-06T06:51:48.161871 #1]  INFO -- :
I, [2023-05-06T06:51:48.162222 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2023-05-06 06:51:48.235 UTC [55] postgres@postgres ERROR:  database "discourse" already exists
2023-05-06 06:51:48.235 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2023-05-06T06:51:48.237057 #1]  INFO -- :
I, [2023-05-06T06:51:48.237475 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-05-06 06:51:48.307 UTC [59] postgres@discourse ERROR:  role "discourse" already exists
2023-05-06 06:51:48.307 UTC [59] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2023-05-06T06:51:48.309250 #1]  INFO -- :
I, [2023-05-06T06:51:48.309540 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-05-06T06:51:48.379290 #1]  INFO -- : GRANT

I, [2023-05-06T06:51:48.379565 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-05-06T06:51:48.447681 #1]  INFO -- : ALTER SCHEMA

I, [2023-05-06T06:51:48.447982 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-05-06T06:51:48.520837 #1]  INFO -- : CREATE EXTENSION

I, [2023-05-06T06:51:48.521274 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2023-05-06T06:51:48.593986 #1]  INFO -- : CREATE EXTENSION

I, [2023-05-06T06:51:48.594408 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2023-05-06T06:51:48.662228 #1]  INFO -- : CREATE EXTENSION

I, [2023-05-06T06:51:48.662663 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2023-05-06T06:51:48.732922 #1]  INFO -- : CREATE EXTENSION

I, [2023-05-06T06:51:48.733454 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2023-05-06T06:51:48.735599 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2023-05-06T06:51:48.812963 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2023-05-06T06:51:48.816369 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2023-05-06T06:51:48.816668 #1]  INFO -- : > echo postgres installed!
I, [2023-05-06T06:51:48.819336 #1]  INFO -- : postgres installed!

I, [2023-05-06T06:51:48.824925 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2023-05-06T06:51:48.830433 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2023-05-06T06:51:48.836767 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2023-05-06T06:51:48.837052 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2023-05-06T06:51:48.837954 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2023-05-06T06:51:48.838771 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-05-06T06:51:48.842520 #1]  INFO -- :
I, [2023-05-06T06:51:48.843424 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2023-05-06T06:51:48.844338 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2023-05-06T06:51:48.846060 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-05-06T06:51:48.846826 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2023-05-06T06:51:48.847743 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-05-06T06:51:48.848608 #1]  INFO -- : > echo redis installed
I, [2023-05-06T06:51:48.851607 #1]  INFO -- : redis installed

I, [2023-05-06T06:51:48.851939 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-05-06T06:51:48.856398 #1]  INFO -- : logfile ""

I, [2023-05-06T06:51:48.856682 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-05-06T06:51:48.858480 #1]  INFO -- : > sleep 10
103:C 06 May 2023 06:51:48.868 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
103:C 06 May 2023 06:51:48.868 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=103, just started
103:C 06 May 2023 06:51:48.868 # Configuration loaded
103:M 06 May 2023 06:51:48.869 * monotonic clock: POSIX clock_gettime
103:M 06 May 2023 06:51:48.870 * Running mode=standalone, port=6379.
103:M 06 May 2023 06:51:48.870 # Server initialized
103:M 06 May 2023 06:51:48.870 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
103:M 06 May 2023 06:51:48.870 * Loading RDB produced by version 7.0.7
103:M 06 May 2023 06:51:48.870 * RDB age 2037 seconds
103:M 06 May 2023 06:51:48.870 * RDB memory usage when created 209.12 Mb
103:M 06 May 2023 06:51:49.785 * Done loading RDB, keys loaded: 63106, keys expired: 540.
103:M 06 May 2023 06:51:49.785 * DB loaded from disk: 0.915 seconds
103:M 06 May 2023 06:51:49.785 * Ready to accept connections
I, [2023-05-06T06:51:58.861238 #1]  INFO -- :
I, [2023-05-06T06:51:58.861649 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-05-06T06:51:58.866278 #1]  INFO -- : thpoff is installed!

I, [2023-05-06T06:51:58.866680 #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, [2023-05-06T06:51:58.994407 #1]  INFO -- :
I, [2023-05-06T06:51:58.994881 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2023-05-06T06:51:59.126001 #1]  INFO -- :
I, [2023-05-06T06:51:59.126444 #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, [2023-05-06T06:51:59.235731 #1]  INFO -- :
I, [2023-05-06T06:51:59.236027 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-05-06T06:51:59.239303 #1]  INFO -- :
I, [2023-05-06T06:51:59.243405 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2023-05-06T06:51:59.249619 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2023-05-06T06:51:59.255472 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2023-05-06T06:51:59.261860 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2023-05-06T06:51:59.268382 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2023-05-06T06:51:59.273823 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2023-05-06T06:51:59.274113 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2023-05-06T06:51:59.274559 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-05-06T06:51:59.277749 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
130:C 06 May 2023 06:51:59.285 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
130:C 06 May 2023 06:51:59.285 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=130, just started
130:C 06 May 2023 06:51:59.285 # Configuration loaded
130:M 06 May 2023 06:51:59.286 * monotonic clock: POSIX clock_gettime
130:M 06 May 2023 06:51:59.287 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
130:M 06 May 2023 06:51:59.287 # Failed listening on port 6379 (TCP), aborting.
Updating files: 100% (33085/33085), done.
I, [2023-05-06T06:52:02.466962 #1]  INFO -- : HEAD is now at a8e28060d FIX: rename notify_about_flags_after to notify_about_reviewable_item_after (#21320)

I, [2023-05-06T06:52:02.467162 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2023-05-06T06:52:02.634808 #1]  INFO -- :
I, [2023-05-06T06:52:02.635008 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
'
From https://github.com/discourse/discourse
 - [deleted]             (none)     -> origin/a11y-select-kit-close-on-focus-out
 - [deleted]             (none)     -> origin/app-inject
 - [deleted]             (none)     -> origin/bump-eslint
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/babel/core-7.21.5
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/babel/standalone-7.21.7
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/jsdom-21.1.2
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.1.0
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.2.0
 - [deleted]             (none)     -> origin/dev_fix_test
 - [deleted]             (none)     -> origin/feature_notification_admin_problems
 - [deleted]             (none)     -> origin/fix-username-validation
 - [deleted]             (none)     -> origin/loic-set-limits-for-reviewables
 - [deleted]             (none)     -> origin/old-styles
   a8e28060d..83f1a1337  main                   -> origin/main
 * [new branch]          0-fix-inj              -> origin/0-fix-inj
 + e5efacf69...b3cfecbd9 default-to-subcategory-on-read-only-categories -> origin/default-to-subcategory-on-read-only-categories  (forced update)
 * [new branch]          dependabot/bundler/rspec-rails-6.0.2 -> origin/dependabot/bundler/rspec-rails-6.0.2
 * [new branch]          dependabot/npm_and_yarn/app/assets/javascripts/jsdom-22.0.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/jsdom-22.0.0
 * [new branch]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.1.1 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.1.1
 * [new branch]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.3.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.3.0
 + b8e4996b9...f16673f79 dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.2.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.2.0  (forced update)
 + 3ed9e6173...4ae8c98dd dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.3.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.3.0  (forced update)
 + 3bb7b79f0...8e7c9354f dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.2.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.2.0  (forced update)
   43bbc443c..0532a1c3d  dev-new-user-menu-default-enable -> origin/dev-new-user-menu-default-enable
 * [new branch]          dev/delete-old-personal-message-settings -> origin/dev/delete-old-personal-message-settings
 + 895956cb1...10ea7a4f0 ember-this-fallback    -> origin/ember-this-fallback  (forced update)
   10dda035f..4838c2950  feature/add-user-status-to-inline-mentions-on-chat -> origin/feature/add-user-status-to-inline-mentions-on-chat
 * [new branch]          feature/add-user-status-to-inline-mentions-on-chat-in-progress -> origin/feature/add-user-status-to-inline-mentions-on-chat-in-progress
 * [new branch]          feature/status-on-mentions-on-updated-chat-messages -> origin/feature/status-on-mentions-on-updated-chat-messages
 * [new branch]          feature_user_tips      -> origin/feature_user_tips
 * [new branch]          fix-select-kit-click-outside-regression -> origin/fix-select-kit-click-outside-regression
 * [new branch]          fix-tests              -> origin/fix-tests
 * [new branch]          fix_inactive_user_card -> origin/fix_inactive_user_card
 * [new branch]          fix_utf8               -> origin/fix_utf8
 + 4e8828636...c7ddb4f19 generic-import         -> origin/generic-import  (forced update)
 + 0eeb01892...f5f7e58fa headless-new           -> origin/headless-new  (forced update)
 + ec1a0d83f...99f0e8336 modal-named-outlet     -> origin/modal-named-outlet  (forced update)
 * [new branch]          offline-app-testing    -> origin/offline-app-testing
 * [new branch]          sk-loading-slider      -> origin/sk-loading-slider
 * [new branch]          sk-tab-accessibility   -> origin/sk-tab-accessibility
   845000a6c..784006c71  stable                 -> origin/stable
 * [new branch]          tag-displayName        -> origin/tag-displayName
   a8e28060d..83f1a1337  tests-passed           -> origin/tests-passed
 * [new branch]          try-buildjet           -> origin/try-buildjet
 + 42b7246b2...bf6c559f0 ux_welcome_topic       -> origin/ux_welcome_topic  (forced update)
I, [2023-05-06T06:52:03.561034 #1]  INFO -- :
I, [2023-05-06T06:52:03.561383 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout tests-passed
  fi
'
Switched to a new branch 'tests-passed'
I, [2023-05-06T06:52:06.516985 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2023-05-06T06:52:06.517193 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2023-05-06T06:52:06.530237 #1]  INFO -- :
I, [2023-05-06T06:52:06.530405 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-05-06T06:52:06.534456 #1]  INFO -- :
I, [2023-05-06T06:52:06.534588 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-05-06T06:52:06.538372 #1]  INFO -- :
I, [2023-05-06T06:52:06.538516 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-05-06T06:52:06.542535 #1]  INFO -- :
I, [2023-05-06T06:52:06.542769 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-05-06T06:52:06.547190 #1]  INFO -- :
I, [2023-05-06T06:52:06.547280 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-05-06T06:52:06.550764 #1]  INFO -- :
I, [2023-05-06T06:52:06.550927 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2023-05-06T06:52:06.554458 #1]  INFO -- :
I, [2023-05-06T06:52:06.554594 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-05-06T06:52:06.559628 #1]  INFO -- :
I, [2023-05-06T06:52:06.559751 #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, [2023-05-06T06:52:06.565009 #1]  INFO -- :
I, [2023-05-06T06:52:06.565278 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2023-05-06T06:52:06.570958 #1]  INFO -- :
I, [2023-05-06T06:52:06.571073 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-05-06T06:52:06.576189 #1]  INFO -- :
I, [2023-05-06T06:52:06.576335 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2023-05-06T06:52:06.582132 #1]  INFO -- :
I, [2023-05-06T06:52:06.582265 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-05-06T06:52:06.587675 #1]  INFO -- :
I, [2023-05-06T06:52:06.587864 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-05-06T06:52:06.747097 #1]  INFO -- :
I, [2023-05-06T06:52:06.747269 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-05-06T06:52:06.752520 #1]  INFO -- :
I, [2023-05-06T06:52:06.752870 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2023-05-06T06:52:06.754871 #1]  INFO -- : > cd /var/www/discourse/plugins && mkdir -p plugins
I, [2023-05-06T06:52:06.758830 #1]  INFO -- :
I, [2023-05-06T06:52:06.759051 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2023-05-06T06:52:07.727198 #1]  INFO -- :
I, [2023-05-06T06:52:07.727358 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
Cloning into 'discourse-akismet'...
I, [2023-05-06T06:52:08.630543 #1]  INFO -- :
I, [2023-05-06T06:52:08.630764 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-affiliate
Cloning into 'discourse-affiliate'...
I, [2023-05-06T06:52:09.334400 #1]  INFO -- :
I, [2023-05-06T06:52:09.334558 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-spoiler-alert.git
Cloning into 'discourse-spoiler-alert'...
I, [2023-05-06T06:52:09.986366 #1]  INFO -- :
I, [2023-05-06T06:52:09.986577 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-staff-notes.git
Cloning into 'discourse-staff-notes'...
I, [2023-05-06T06:52:10.761092 #1]  INFO -- :
I, [2023-05-06T06:52:10.761254 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-push-notifications
Cloning into 'discourse-push-notifications'...
I, [2023-05-06T06:52:11.466421 #1]  INFO -- :
I, [2023-05-06T06:52:11.466609 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Cloning into 'discourse-data-explorer'...
I, [2023-05-06T06:52:12.215585 #1]  INFO -- :
I, [2023-05-06T06:52:12.215806 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-saved-searches
Cloning into 'discourse-saved-searches'...
I, [2023-05-06T06:52:12.890655 #1]  INFO -- :
I, [2023-05-06T06:52:12.890824 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-locations
Cloning into 'discourse-locations'...
I, [2023-05-06T06:52:13.678669 #1]  INFO -- :
I, [2023-05-06T06:52:13.678918 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-layouts
Cloning into 'discourse-layouts'...
I, [2023-05-06T06:52:14.419291 #1]  INFO -- :
I, [2023-05-06T06:52:14.419456 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-follow
Cloning into 'discourse-follow'...
I, [2023-05-06T06:52:15.111205 #1]  INFO -- :
I, [2023-05-06T06:52:15.111376 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-perspective-api
Cloning into 'discourse-perspective-api'...
I, [2023-05-06T06:52:15.779273 #1]  INFO -- :
I, [2023-05-06T06:52:15.779586 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-yearly-review
Cloning into 'discourse-yearly-review'...
I, [2023-05-06T06:52:16.544854 #1]  INFO -- :
I, [2023-05-06T06:52:16.545020 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-templates
Cloning into 'discourse-templates'...
I, [2023-05-06T06:52:17.337565 #1]  INFO -- :
I, [2023-05-06T06:52:17.337869 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-reactions
Cloning into 'discourse-reactions'...
I, [2023-05-06T06:52:18.088852 #1]  INFO -- :
I, [2023-05-06T06:52:18.089219 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-staff-alias
Cloning into 'discourse-staff-alias'...
I, [2023-05-06T06:52:18.783872 #1]  INFO -- :
I, [2023-05-06T06:52:18.784194 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-events
Cloning into 'discourse-events'...
I, [2023-05-06T06:52:19.492142 #1]  INFO -- :
I, [2023-05-06T06:52:19.492328 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-bcc
Cloning into 'discourse-bcc'...
I, [2023-05-06T06:52:20.137877 #1]  INFO -- :
I, [2023-05-06T06:52:20.138304 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-05-06T06:52:20.142916 #1]  INFO -- :
I, [2023-05-06T06:52:20.143524 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-05-06T06:52:20.146756 #1]  INFO -- :
I, [2023-05-06T06:52:20.146993 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2023-05-06T06:52:20.150878 #1]  INFO -- :
I, [2023-05-06T06:52:20.151371 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2023-05-06T06:52:20.152042 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-05-06T06:52:20.152625 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-05-06T06:52:20.153122 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-05-06T06:52:20.153793 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2023-05-06T06:52:20.154368 #1]  INFO -- : > echo "done configuring web"
I, [2023-05-06T06:52:20.156949 #1]  INFO -- : done configuring web

I, [2023-05-06T06:52:20.157565 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-05-06T06:52:20.960558 #1]  INFO -- : Successfully installed bundler-2.4.4
1 gem installed

I, [2023-05-06T06:52:20.960688 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-05-06T06:52:29.137780 #1]  INFO -- :
I, [2023-05-06T06:52:29.138522 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning " > @mixer/parallel-prettier@2.0.3" has unmet peer dependency "prettier@^2.0.0".
warning "eslint-config-discourse > eslint-plugin-lodash@7.1.0" has unmet peer dependency "lodash@>=4".
warning Resolution field "babel-plugin-ember-template-compilation@2.0.0" is incompatible with requested version "babel-plugin-ember-template-compilation@^2.0.1"
warning " > babel-plugin-debug-macros@0.4.0-pre1" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-5b395f6a-d971-4bac-9771-d71274a5c341 > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-5b395f6a-d971-4bac-9771-d71274a5c341 > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-5b395f6a-d971-4bac-9771-d71274a5c341 > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
I, [2023-05-06T06:53:43.178353 #1]  INFO -- : yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ yarn --cwd app/assets/javascripts $(node -e 'if(JSON.parse(process.env.npm_config_argv).original.includes(`--frozen-lockfile`)){console.log(`--frozen-lockfile`)}')
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ patch-package
patch-package 7.0.0
Applying patches...
@ember/jquery@2.0.0 ✔
ember-cli@4.12.0 ✔
virtual-dom@2.1.1 ✔
Done in 37.67s.
Done in 67.78s.
yarn cache v1.22.19
success Cleared cache.
Done in 5.61s.

I, [2023-05-06T06:53:43.179353 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2023-05-06T06:53:43.490874 #1]  INFO -- :
I, [2023-05-06T06:53:43.491062 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2023-05-06T06:53:43.819273 #1]  INFO -- : You are replacing the current local value of without, which is currently "test:development"

Si è verificato un errore durante l'aggiornamento

```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })

Per favore aiutami a risolverlo.

Hai un backup del tuo sito? Se sì, puoi provare a creare un nuovo container direttamente e ripristinare il backup.

Sembra che tu abbia un tag duplicato che blocca l’indicizzazione. Penso che ci sia un problema simile in questo argomento, se può essere d’aiuto?

Grazie al contributo di @JammyDodger e @pfaffman, e all’aiuto di @ghassan, il sito è di nuovo online. Il problema era dovuto a tag duplicati.