Erros na reconstrução do Launcher

--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' falhou com retorno #<Process::Status: pid 1006 exit 1>
Localização da falha: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec falhou com os parâmetros {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap falhou com código de saída 1
** FALHA AO INICIALIZAR ** por favor, role para cima e procure por mensagens de erro anteriores, pode haver mais de uma.
./discourse-doctor pode ajudar a diagnosticar o problema.
77d5fea7b7d5e87e701dc99b614a8b70ff5818aa90b6c3217b22de77d5cca0ae

Reconstruí o launcher novamente e ele está mostrando erros e agora não está funcionando de novo… :smiling_face_with_tear: Já são quase 5 da manhã, então estou desistindo.

Você pode fazer o que a mensagem pede e rolar para cima para procurar erros anteriores e colá-los aqui.

Então por que postar? :slight_smile:

@JammyDodger está certo, mostre-nos o erro anterior e nós tentaremos ajudá-lo.

app não está executando!
Tentando reconstruir
==================== LOG DE RECONSTRUÇÃO ====================
Arquitetura x86_64 detectada.
Garantindo que o launcher esteja atualizado
Launcher está atualizado
Parando container antigo
+ /usr/bin/docker stop -t 600 app
app
2.0.20240602-0023: Pulling from discourse/base
Digest: sha256:5e0c30da851a00e824a58b033d59b8f3dd840b513a7694a7a5d0674285c0ee3c
Status: A imagem está atualizada para discourse/base:2.0.20240602-0023
docker.io/discourse/base:2.0.20240602-0023
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-06-17T20:05:29.853285 #1]  INFO -- : Lendo de stdin
I, [2024-06-17T20:05:29.862224 #1]  INFO -- : Arquivo > /etc/service/postgres/run  chmod: +x  chown:
I, [2024-06-17T20:05:29.866216 #1]  INFO -- : Arquivo > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2024-06-17T20:05:29.870135 #1]  INFO -- : Arquivo > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2024-06-17T20:05:29.874092 #1]  INFO -- : Arquivo > /root/install_postgres  chmod: +x  chown:
I, [2024-06-17T20:05:29.877971 #1]  INFO -- : Arquivo > /root/upgrade_postgres  chmod: +x  chown:
I, [2024-06-17T20:05:29.878188 #1]  INFO -- : Substituindo data_directory = '/var/lib/postgresql/13/main' por data_directory = '/shared/postgres_data' em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.878785 #1]  INFO -- : Substituindo (?-mix:#?listen_addresses *=.*) por listen_addresses = '*' em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.879181 #1]  INFO -- : Substituindo (?-mix:#?synchronous_commit *=.*) por synchronous_commit = $db_synchronous_commit em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.879826 #1]  INFO -- : Substituindo (?-mix:#?shared_buffers *=.*) por shared_buffers = $db_shared_buffers em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.880330 #1]  INFO -- : Substituindo (?-mix:#?work_mem *=.*) por work_mem = $db_work_mem em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.880825 #1]  INFO -- : Substituindo (?-mix:#?default_text_search_config *=.*) por default_text_search_config = '$db_default_text_search_config' em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.881331 #1]  INFO -- : Substituindo (?-mix:#?checkpoint_segments *=.*) por checkpoint_segments = $db_checkpoint_segments em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.881860 #1]  INFO -- : Substituindo (?-mix:#?logging_collector *=.*) por logging_collector = $db_logging_collector em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.882366 #1]  INFO -- : Substituindo (?-mix:#?log_min_duration_statement *=.*) por log_min_duration_statement = $db_log_min_duration_statement em /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T20:05:29.882849 #1]  INFO -- : Substituindo (?-mix:^#local +replication +postgres +peer$) por local replication postgres  peer em /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-17T20:05:29.883136 #1]  INFO -- : Substituindo (?-mix:^host.*all.*all.*127.*$) por host all all 0.0.0.0/0 md5 em /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-17T20:05:29.883399 #1]  INFO -- : Substituindo (?-mix:^host.*all.*all.*::1\/128.*$) por host all all ::/0 md5 em /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-17T20:05:29.883784 #1]  INFO -- : > [ -f /root/install_postgres ] && /root/install_postgres && rm -f /root/install_postgres
I, [2024-06-17T20:05:30.872941 #1]  INFO -- : Gerando locales (isso pode demorar um pouco)...
Geração concluída.

I, [2024-06-17T20:05:30.873177 #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-17T20:05:30.880739 #1]  INFO -- : Arquivo > /usr/local/bin/create_db  chmod: +x  chown:
I, [2024-06-17T20:05:30.888318 #1]  INFO -- : Arquivo > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2024-06-17T20:05:30.891309 #1]  INFO -- : Arquivo > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2024-06-17T20:05:30.891684 #1]  INFO -- : > sleep 5
2024-06-17 20:05:30.903 UTC [35] LOG:  iniciando PostgreSQL 13.15 (Debian 13.15-1.pgdg110+1) em x86_64-pc-linux-gnu, compilado por gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-06-17 20:05:30.903 UTC [35] LOG:  ouvindo no endereço IPv4 "0.0.0.0", porta 5432
2024-06-17 20:05:30.903 UTC [35] LOG:  ouvindo no endereço IPv6 "::", porta 5432
2024-06-17 20:05:30.905 UTC [35] LOG:  ouvindo no soquete Unix "/var/run/postgresql/.s.PGSQL.5432"
2024-06-17 20:05:30.909 UTC [44] LOG:  sistema de banco de dados foi interrompido; última vez ativo em 2024-06-17 19:29:07 UTC
2024-06-17 20:05:31.039 UTC [44] LOG:  ID de gerenciador de recursos inválido no registro de checkpoint primário
2024-06-17 20:05:31.039 UTC [44] PANIC:  não foi possível localizar um registro de checkpoint válido
2024-06-17 20:05:31.156 UTC [35] LOG:  processo de inicialização (PID 44) foi terminado pelo sinal 6: Aborted
2024-06-17 20:05:31.156 UTC [35] LOG:  abortando inicialização devido a falha no processo de inicialização
2024-06-17 20:05:31.158 UTC [35] LOG:  sistema de banco de dados está desligado
I, [2024-06-17T20:05:35.893980 #1]  INFO -- :
I, [2024-06-17T20:05:35.894220 #1]  INFO -- : > /usr/local/bin/create_db
createdb: erro: não foi possível conectar ao banco de dados template1: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
psql: erro: conexão ao servidor no soquete "/var/run/postgresql/.s.PGSQL.5432" falhou: Arquivo ou diretório não encontrado
        O servidor está sendo executado localmente e aceitando conexões nesse soquete?
I, [2024-06-17T20:05:36.293371 #1]  INFO -- :
I, [2024-06-17T20:05:36.293556 #1]  INFO -- : > echo postgres instalado!
I, [2024-06-17T20:05:36.295705 #1]  INFO -- : postgres instalado!

I, [2024-06-17T20:05:36.300145 #1]  INFO -- : Arquivo > /etc/service/redis/run  chmod: +x  chown:
I, [2024-06-17T20:05:36.304146 #1]  INFO -- : Arquivo > /etc/service/redis/log/run  chmod: +x  chown:
I, [2024-06-17T20:05:36.308058 #1]  INFO -- : Arquivo > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2024-06-17T20:05:36.308242 #1]  INFO -- : Substituindo daemonize yes por  em /etc/redis/redis.conf
I, [2024-06-17T20:05:36.308835 #1]  INFO -- : Substituindo (?-mix:^pidfile.*$) por  em /etc/redis/redis.conf
I, [2024-06-17T20:05:36.309275 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-06-17T20:05:36.311574 #1]  INFO -- :
I, [2024-06-17T20:05:36.312092 #1]  INFO -- : Substituindo (?-mix:^logfile.*$) por logfile "" em /etc/redis/redis.conf
I, [2024-06-17T20:05:36.312620 #1]  INFO -- : Substituindo (?-mix:^bind .*$) por  em /etc/redis/redis.conf
I, [2024-06-17T20:05:36.313252 #1]  INFO -- : Substituindo (?-mix:^dir .*$) por dir /shared/redis_data em /etc/redis/redis.conf
I, [2024-06-17T20:05:36.313912 #1]  INFO -- : Substituindo (?-mix:^protected-mode yes) por protected-mode no em /etc/redis/redis.conf
I, [2024-06-17T20:05:36.314555 #1]  INFO -- : Substituindo # io-threads 4 por io-threads $redis_io_threads em /etc/redis/redis.conf
I, [2024-06-17T20:05:36.315111 #1]  INFO -- : > echo redis instalado
I, [2024-06-17T20:05:36.316949 #1]  INFO -- : redis instalado

I, [2024-06-17T20:05:36.317229 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-06-17T20:05:36.320521 #1]  INFO -- : logfile ""

I, [2024-06-17T20:05:36.320786 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-17T20:05:36.322093 #1]  INFO -- : > sleep 10
80:C 17 Jun 2024 20:05:36.328 # oO0OoO0OoO0Oo Redis está iniciando oO0OoO0OoO0Oo
80:C 17 Jun 2024 20:05:36.328 # Versão do Redis=7.0.7, bits=64, commit=00000000, modified=0, pid=80, acabou de iniciar
80:C 17 Jun 2024 20:05:36.328 # Configuração carregada
80:M 17 Jun 2024 20:05:36.329 * relógio monótono: POSIX clock_gettime
80:M 17 Jun 2024 20:05:36.329 * Modo de execução=standalone, porta=6379.
80:M 17 Jun 2024 20:05:36.330 # Servidor inicializado
80:M 17 Jun 2024 20:05:36.330 # AVISO: Memory overcommit deve estar habilitado! Sem ele, uma salvamento em segundo plano ou replicação pode falhar em condições de baixa memória. Se desabilitado, também pode causar falhas sem condição de baixa memória, veja https://github.com/jemalloc/jemalloc/issues/1328. Para corrigir esse problema, adicione 'vm.overcommit_memory = 1' a /etc/sysctl.conf e depois reinicie ou execute o comando 'sysctl vm.overcommit_memory=1' para que isso entre em vigor.
80:M 17 Jun 2024 20:05:36.330 * Carregando RDB produzido pela versão 7.0.7
80:M 17 Jun 2024 20:05:36.330 * Idade do RDB 85 segundos
80:M 17 Jun 2024 20:05:36.330 * Uso de memória do RDB quando criado 28.57 Mb
80:M 17 Jun 2024 20:05:36.386 * Concluído carregamento do RDB, chaves carregadas: 1564, chaves expiradas: 0.
80:M 17 Jun 2024 20:05:36.386 * DB carregado do disco: 0.056 segundos
80:M 17 Jun 2024 20:05:36.387 * Pronto para aceitar conexões
I, [2024-06-17T20:05:46.324759 #1]  INFO -- :
I, [2024-06-17T20:05:46.325005 #1]  INFO -- : > thpoff echo "thpoff está instalado!"
I, [2024-06-17T20:05:46.328667 #1]  INFO -- : thpoff está instalado!

I, [2024-06-17T20:05:46.329166 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Abortando! E-mail não está configurado!"; exit 1; end'
I, [2024-06-17T20:05:46.389306 #1]  INFO -- :
I, [2024-06-17T20:05:46.389569 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Abortando! Domínio não está configurado!"; exit 1; end'
I, [2024-06-17T20:05:46.449542 #1]  INFO -- :
I, [2024-06-17T20:05:46.449779 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Abortando! CDN deve ter um protocolo especificado. Uma vez corrigido, você deve rebake seus posts agora para corrigir todos os posts."; exit 1; end'
I, [2024-06-17T20:05:46.510364 #1]  INFO -- :
I, [2024-06-17T20:05:46.510701 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-06-17T20:05:46.513382 #1]  INFO -- :
I, [2024-06-17T20:05:46.516280 #1]  INFO -- : Arquivo > /etc/cron.d/anacron  chmod:   chown:
I, [2024-06-17T20:05:46.520613 #1]  INFO -- : Arquivo > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2024-06-17T20:05:46.524783 #1]  INFO -- : Arquivo > /etc/service/unicorn/run  chmod: +x  chown:
I, [2024-06-17T20:05:46.528886 #1]  INFO -- : Arquivo > /etc/service/nginx/run  chmod: +x  chown:
I, [2024-06-17T20:05:46.532947 #1]  INFO -- : Arquivo > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2024-06-17T20:05:46.537154 #1]  INFO -- : Arquivo > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2024-06-17T20:05:46.537304 #1]  INFO -- : Substituindo # postgres por if [ -f /root/install_postgres ]; then
  /root/install_postgres
  rm /root/install_postgres
fi
sv start postgres || exit 1
 em /etc/service/unicorn/run
I, [2024-06-17T20:05:46.538416 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Atualizando arquivos: 100% (34508/34508), concluído.
I, [2024-06-17T20:05:49.281277 #1]  INFO -- : HEAD está agora em 62b1b69e8 UX: restringir largura de transcrições de chat em posts (#27288)

I, [2024-06-17T20:05:49.281370 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-06-17T20:05:49.401816 #1]  INFO -- :
I, [2024-06-17T20:05:49.401917 #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
'
De https://github.com/discourse/discourse
 - [deletado]             (nenhum)     -> origin/add_filter_webhook_events_by_status
 - [deletado]             (nenhum)     -> origin/add_lifecycle_rule_for_inventories
 - [deletado]             (nenhum)     -> origin/application-route-actions
 - [deletado]             (nenhum)     -> origin/avoid_unformatted_logs
 - [deletado]             (nenhum)     -> origin/categories-modal-fix
 - [deletado]             (nenhum)     -> origin/decorator-transforms-take-2
 - [deletado]             (nenhum)     -> origin/dependabot/bundler/rails_failover-2.1.0
 - [deletado]             (nenhum)     -> origin/dev/ember-58-upgrade-playground
 - [deletado]             (nenhum)     -> origin/dev/rfc-value-modifier-plugin-api
 - [deletado]             (nenhum)     -> origin/dev/standalone-home-logo-contents-component
 - [deletado]             (nenhum)     -> origin/discourse-route-actions
 - [deletado]             (nenhum)     -> origin/discourse-url-native-class
 - [deletado]             (nenhum)     -> origin/fix-group-chat-member-count
 - [deletado]             (nenhum)     -> origin/ghost-button
 - [deletado]             (nenhum)     -> origin/issue/bulk-action-pm-fixes
 - [deletado]             (nenhum)     -> origin/migrations-tooling/converter
 - [deletado]             (nenhum)     -> origin/permalinks
 - [deletado]             (nenhum)     -> origin/route-native-class
 - [deletado]             (nenhum)     -> origin/search-result-consistency
 - [deletado]             (nenhum)     -> origin/support_alternate_bucket_s3_inventory
 - [deletado]             (nenhum)     -> origin/update-official-plugin-list
 - [deletado]             (nenhum)     -> origin/user-posts-stream-native-class
 - [deletado]             (nenhum)     -> origin/ux-account-disclaimer
   62b1b69e8..0a881a59d  main                    -> origin/main
 * [nova branch]          0-a-fix-bread           -> origin/0-a-fix-bread
 * [nova branch]          0-a-z-index-cards       -> origin/0-a-z-index-cards
 * [nova branch]          add_mechanism_to_redeliver_all_webhook_events -> origin/add_mechanism_to_redeliver_all_webhook_events
 * [nova branch]          add_mechanism_to_redeliver_all_webhook_events_wip -> origin/add_mechanism_to_redeliver_all_webhook_events_wip
 + 098e99e83...f82803b6a coco/generic-importer   -> origin/coco/generic-importer  (atualização forçada)
 * [nova branch]          dependabot/bundler/libv8-node-21.7.2.0 -> origin/dependabot/bundler/libv8-node-21.7.2.0
 * [nova branch]          dependabot/bundler/oauth2-2.0.9 -> origin/dependabot/bundler/oauth2-2.0.9
 * [nova branch]          dependabot/bundler/omniauth-2.1.2 -> origin/dependabot/bundler/omniauth-2.1.2
 * [nova branch]          dependabot/bundler/omniauth-google-oauth2-1.1.2 -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.2
 + 01982d4eb...58a828d0b dependabot/bundler/sqlite3-2.0.2 -> origin/dependabot/bundler/sqlite3-2.0.2  (atualização forçada)
 * [nova branch]          detect-default-readonly -> origin/detect-default-readonly
 * [nova branch]          dev-strict-dynamic-csp-as-default -> origin/dev-strict-dynamic-csp-as-default
 * [nova branch]          dev/add-behavior-transformers -> origin/dev/add-behavior-transformers
 * [nova branch]          dev/backend-for-admin-config-area-about -> origin/dev/backend-for-admin-config-area-about
 * [nova branch]          dev/ember-source-5.9.0-upgrade -> origin/dev/ember-source-5.9.0-upgrade
 * [nova branch]          dev/enable-admin-notice-glimmer-header -> origin/dev/enable-admin-notice-glimmer-header
 * [nova branch]          feature/requires-confirmation-site-settings -> origin/feature/requires-confirmation-site-settings
 + fc63df2f0...2f9e84fcf feature/user-fields-required-for-existing-users-2 -> origin/feature/user-fields-required-for-existing-users-2  (atualização forçada)
 * [nova branch]          fix-custom-homepage-preloading -> origin/fix-custom-homepage-preloading
 * [nova branch]          fix-password-reset-security-key -> origin/fix-password-reset-security-key
 * [nova branch]          fix-post-revision-tags-serializer -> origin/fix-post-revision-tags-serializer
   b3d6801e8..2f6fb64e7  formtoolkit             -> origin/formtoolkit
 * [nova branch]          grant-admin-fetch-user  -> origin/grant-admin-fetch-user
 * [nova branch]          issue/do-not-enforce-2fa-on-social-logins -> origin/issue/do-not-enforce-2fa-on-social-logins
 * [nova branch]          jjaffeux-otp-validation -> origin/jjaffeux-otp-validation
 + b2b6b4468...66a18c7e8 loic-update-to-rails-7.1 -> origin/loic-update-to-rails-7.1  (atualização forçada)
 * [nova branch]          loic-use-messageformat-gem -> origin/loic-use-messageformat-gem
 * [nova branch]          mt/converter            -> origin/mt/converter
 * [nova branch]          remove-summarization    -> origin/remove-summarization
 * [nova branch]          remove_hostname         -> origin/remove_hostname
   5558028f8..1ba06b544  stable                  -> origin/stable
   62b1b69e8..0a881a59d  tests-passed            -> origin/tests-passed
 * [nova branch]          tobiaseigen-patch-3     -> origin/tobiaseigen-patch-3
I, [2024-06-17T20:05:50.898564 #1]  INFO -- :
I, [2024-06-17T20:05:50.898663 #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
'
Mudado para uma nova branch 'tests-passed'
I, [2024-06-17T20:05:55.884175 #1]  INFO -- : Branch 'tests-passed' configurado para rastrear branch remoto 'tests-passed' de 'origin'.

I, [2024-06-17T20:05:55.884535 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-06-17T20:05:55.894338 #1]  INFO -- :
I, [2024-06-17T20:05:55.894469 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-06-17T20:05:55.897649 #1]  INFO -- :
I, [2024-06-17T20:05:55.897764 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-06-17T20:05:55.900522 #1]  INFO -- :
I, [2024-06-17T20:05:55.900580 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-06-17T20:05:55.903311 #1]  INFO -- :
I, [2024-06-17T20:05:55.903367 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-06-17T20:05:55.906029 #1]  INFO -- :
I, [2024-06-17T20:05:55.906106 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-06-17T20:05:55.908562 #1]  INFO -- :
I, [2024-06-17T20:05:55.908628 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2024-06-17T20:05:55.911254 #1]  INFO -- :
I, [2024-06-17T20:05:55.911320 #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-17T20:05:55.915062 #1]  INFO -- :
I, [2024-06-17T20:05:55.915129 #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-17T20:05:55.918918 #1]  INFO -- :
I, [2024-06-17T20:05:55.918984 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2024-06-17T20:05:55.922966 #1]  INFO -- :
I, [2024-06-17T20:05:55.923030 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-06-17T20:05:55.926759 #1]  INFO -- :
I, [2024-06-17T20:05:55.926825 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2024-06-17T20:05:55.930748 #1]  INFO -- :
I, [2024-06-17T20:05:55.930811 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-06-17T20:05:55.934520 #1]  INFO -- :
I, [2024-06-17T20:05:55.934587 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-06-17T20:05:55.944626 #1]  INFO -- :
I, [2024-06-17T20:05:55.944690 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-06-17T20:05:55.946289 #1]  INFO -- :
I, [2024-06-17T20:05:55.946439 #1]  INFO -- : Substituindo # redis por sv start redis || exit 1 em /etc/service/unicorn/run
I, [2024-06-17T20:05:55.949787 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Clonando em 'docker_manager'...
I, [2024-06-17T20:05:57.519052 #1]  INFO -- :
I, [2024-06-17T20:05:57.519169 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Clonando em 'discourse-solved'...
I, [2024-06-17T20:05:58.586122 #1]  INFO -- :
I, [2024-06-17T20:05:58.586236 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-yearly-review.git
Clonando em 'discourse-yearly-review'...
I, [2024-06-17T20:05:59.653877 #1]  INFO -- :
I, [2024-06-17T20:05:59.653994 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-reactions.git
Clonando em 'discourse-reactions'...
I, [2024-06-17T20:06:00.752272 #1]  INFO -- :
I, [2024-06-17T20:06:00.752387 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-subscriptions.git
Clonando em 'discourse-subscriptions'...
I, [2024-06-17T20:06:02.749499 #1]  INFO -- :
I, [2024-06-17T20:06:02.749617 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git
Clonando em 'discourse-math'...
I, [2024-06-17T20:06:04.928875 #1]  INFO -- :
I, [2024-06-17T20:06:04.928993 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-calendar.git
Clonando em 'discourse-calendar'...
I, [2024-06-17T20:06:06.305663 #1]  INFO -- :
I, [2024-06-17T20:06:06.305777 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-gamification.git
Clonando em 'discourse-gamification'...
I, [2024-06-17T20:06:07.367400 #1]  INFO -- :
I, [2024-06-17T20:06:07.367541 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-post-voting.git
Clonando em 'discourse-post-voting'...
I, [2024-06-17T20:06:08.497741 #1]  INFO -- :
I, [2024-06-17T20:06:08.497856 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-perspective-api.git
Clonando em 'discourse-perspective-api'...
I, [2024-06-17T20:06:10.061673 #1]  INFO -- :
I, [2024-06-17T20:06:10.061794 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-ai.git
Clonando em 'discourse-ai'...
I, [2024-06-17T20:06:12.766277 #1]  INFO -- :
I, [2024-06-17T20:06:12.766400 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
Clonando em 'discourse-akismet'...
I, [2024-06-17T20:06:13.830126 #1]  INFO -- :
I, [2024-06-17T20:06:13.830245 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-cakeday.git
Clonando em 'discourse-cakeday'...
I, [2024-06-17T20:06:14.871455 #1]  INFO -- :
I, [2024-06-17T20:06:14.871597 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-topic-voting.git
Clonando em 'discourse-topic-voting'...
I, [2024-06-17T20:06:16.184643 #1]  INFO -- :
I, [2024-06-17T20:06:16.184781 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-saved-searches.git
Clonando em 'discourse-saved-searches'...
I, [2024-06-17T20:06:17.212355 #1]  INFO -- :
I, [2024-06-17T20:06:17.212497 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Clonando em 'discourse-data-explorer'...
I, [2024-06-17T20:06:18.549058 #1]  INFO -- :
I, [2024-06-17T20:06:18.549408 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T20:06:18.552470 #1]  INFO -- :
I, [2024-06-17T20:06:18.552775 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-06-17T20:06:18.554900 #1]  INFO -- :
I, [2024-06-17T20:06:18.555164 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2024-06-17T20:06:18.557532 #1]  INFO -- :
I, [2024-06-17T20:06:18.557658 #1]  INFO -- : Substituindo pid /run/nginx.pid; por daemon off; em /etc/nginx/nginx.conf
I, [2024-06-17T20:06:18.557950 #1]  INFO -- : Substituindo (?m-ix:upstream[^\}]+\}) por upstream discourse { server 127.0.0.1:3000; } em /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T20:06:18.558158 #1]  INFO -- : Substituindo (?-mix:server_name.+$) por server_name _ ; em /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T20:06:18.558751 #1]  INFO -- : Substituindo (?-mix:client_max_body_size.+$) por client_max_body_size $upload_size ; em /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T20:06:18.559200 #1]  INFO -- : Substituindo (?-mix:worker_connections.+$) por worker_connections $nginx_worker_connections ; em /etc/nginx/nginx.conf
I, [2024-06-17T20:06:18.559753 #1]  INFO -- : > echo "configuração da web concluída"
I, [2024-06-17T20:06:18.561445 #1]  INFO -- : configuração da web concluída

I, [2024-06-17T20:06:18.561803 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-06-17T20:06:18.736893 #1]  INFO -- :
I, [2024-06-17T20:06:18.737122 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-06-17T20:06:19.788839 #1]  INFO -- :
I, [2024-06-17T20:06:19.789378 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2024-06-17T20:06:19.791580 #1]  INFO -- :
I, [2024-06-17T20:06:19.791775 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Campo de resolução "unset-value@2.0.1" é incompatível com a versão solicitada "unset-value@^1.0.0"
warning " > @discourse/lint-configs@1.3.9" tem dependência peer incorreta "ember-template-lint@6.0.0".
warning " > @glint/environment-ember-loose@1.4.0" tem dependência peer não atendida "@glimmer/component@^1.1.2".
warning " > discourse-markdown-it@1.0.0" tem dependência peer não atendida "xss@*".
warning "workspace-aggregator-645a2ee3-21a2-46c9-a5c2-6eeb8d7f95e9 > discourse > @uppy/aws-s3@3.0.6" tem dependência peer incorreta "@uppy/core@^3.1.2".
warning "workspace-aggregator-645a2ee3-21a2-46c9-a5c2-6eeb8d7f95e9 > discourse > @uppy/aws-s3-multipart@3.1.3" tem dependência peer incorreta "@uppy/core@^3.1.2".
warning "workspace-aggregator-645a2ee3-21a2-46c9-a5c2-6eeb8d7f95e9 > discourse > @uppy/xhr-upload@3.1.1" tem dependência peer incorreta "@uppy/core@^3.1.2".
warning "workspace-aggregator-645a2ee3-21a2-46c9-a5c2-6eeb8d7f95e9 > discourse-plugins > ember-this-fallback@0.4.0" tem dependência peer não atendida "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-645a2ee3-21a2-46c9-a5c2-6eeb8d7f95e9 > admin > ember-source > router_js@8.0.3" tem dependência peer não atendida "rsvp@^4.8.5".
warning "workspace-aggregator-645a2ee3-21a2-46c9-a5c2-6eeb8d7f95e9 > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" tem dependência peer incorreta "@uppy/core@^3.2.1".
I, [2024-06-17T20:07:52.168343 #1]  INFO -- : yarn install v1.22.22
[1/5] Validando package.json...
[2/5] Resolvendo pacotes...
[3/5] Buscando pacotes...
[4/5] Vinculando dependências...
[5/5] Construindo pacotes frescos...
$ ./app/assets/javascripts/run-patch-package && rm -rf app/assets/javascripts/node_modules
patch-package 8.0.0
Aplicando patches...
babel-plugin-debug-macros@0.3.4 ✔
content-tag@2.0.1 ✔
decorator-transforms@2.0.0 ✔
ember-this-fallback@0.4.0 (1 deprecation-name) ✔
ember-this-fallback@0.4.0 (2 themes) ✔
ember-this-fallback@0.4.0 (3 exclude-strict-mode) ✔
virtual-dom@2.1.1 ✔
Concluído em 84.90s.
yarn cache v1.22.22
success Cache limpo.
Concluído em 7.05s.

I, [2024-06-17T20:07:52.169234 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2024-06-17T20:07:52.402223 #1]  INFO -- :
I, [2024-06-17T20:07:52.402320 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2024-06-17T20:07:52.566141 #1]  INFO -- : Você está substituindo o valor local atual de without, que atualmente é "test:development"

I, [2024-06-17T20:07:52.566223 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
I, [2024-06-17T20:08:10.286076 #1]  INFO -- : Buscando metadados do gem em https://rubygems.org/.........
Buscando concurrent-ruby 1.3.3
Buscando erubi 1.13.0
Buscando builder 3.3.0
Buscando public_suffix 5.1.0
Instalando erubi 1.13.0
Instalando builder 3.3.0
Instalando public_suffix 5.1.0
Buscando ffi 1.17.0 (x86_64-linux-gnu)
Buscando zeitwerk 2.6.16
Instalando concurrent-ruby 1.3.3
Buscando nokogiri 1.16.6 (x86_64-linux)
Instalando zeitwerk 2.6.16
Buscando google-protobuf 4.27.1 (x86_64-linux)
Instalando ffi 1.17.0 (x86_64-linux-gnu)
Instalando google-protobuf 4.27.1 (x86_64-linux)
Buscando oj 3.16.4
Instalando oj 3.16.4 com extensões nativas
Buscando rexml 3.3.0
Instalando rexml 3.3.0
Buscando net-imap 0.4.13
Instalando net-imap 0.4.13
Buscando sass-embedded 1.77.5 (x86_64-linux-gnu)
Buscando activesupport 7.0.8.4
Instalando activesupport 7.0.8.4
Instalando nokogiri 1.16.6 (x86_64-linux)
Buscando faraday 2.9.1
Instalando faraday 2.9.1
Instalando sass-embedded 1.77.5 (x86_64-linux-gnu)
Buscando activemodel 7.0.8.4
Instalando activemodel 7.0.8.4
Buscando activejob 7.0.8.4
Instalando activejob 7.0.8.4
Buscando activerecord 7.0.8.4
Instalando activerecord 7.0.8.4
Buscando ruby-readability 0.7.1
Instalando ruby-readability 0.7.1
Buscando sanitize 6.1.1
Instalando sanitize 6.1.1
Buscando actionview 7.0.8.4
Instalando actionview 7.0.8.4
Buscando actionpack 7.0.8.4
Instalando actionpack 7.0.8.4
Buscando actionmailer 7.0.8.4
Buscando railties 7.0.8.4
Buscando sprockets-rails 3.5.1
Instalando sprockets-rails 3.5.1
Instalando actionmailer 7.0.8.4
Instalando railties 7.0.8.4
Buscando rails_failover 2.1.0
Instalando rails_failover 2.1.0
Bundle completo! 141 dependências do Gemfile, 174 gems agora instaladas.
Gems nos grupos 'development' e 'test' não foram instaladas.
Gems empacotadas estão instaladas em `./vendor/bundle`
1 gem instalada da qual você depende diretamente está procurando financiamento.
  Execute `bundle fund` para detalhes

Ocorreu um erro na minha atualização

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

Por favor, me ajude a corrigi-lo.

I, [2024-06-17T20:08:10.286825 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2024-06-17T20:08:13.104274 #1]  INFO -- : discourse-ai is already at latest compatible version
discourse-akismet is already at latest compatible version
discourse-cakeday is already at latest compatible version
discourse-calendar is already at latest compatible version
discourse-data-explorer is already at latest compatible version
discourse-gamification is already at latest compatible version
discourse-math is already at latest compatible version
discourse-perspective-api is already at latest compatible version
discourse-post-voting is already at latest compatible version
discourse-reactions is already at latest compatible version
discourse-saved-searches is already at latest compatible version
discourse-solved is already at latest compatible version
discourse-subscriptions is already at latest compatible version
discourse-topic-voting is already at latest compatible version
discourse-yearly-review is already at latest compatible version
docker_manager is already at latest compatible version

I, [2024-06-17T20:08:13.104663 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-17T20:08:13.106739 #1]  INFO -- : > sleep 10
1002:C 17 Jun 2024 20:08:13.112 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1002:C 17 Jun 2024 20:08:13.112 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=1002, just started
1002:C 17 Jun 2024 20:08:13.112 # Configuration loaded
1002:M 17 Jun 2024 20:08:13.113 * monotonic clock: POSIX clock_gettime
1002:M 17 Jun 2024 20:08:13.114 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
1002:M 17 Jun 2024 20:08:13.114 # Failed listening on port 6379 (TCP), aborting.
I, [2024-06-17T20:08:23.109522 #1]  INFO -- :
I, [2024-06-17T20:08:23.109771 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
URGENT: Failed to initialize site default: ActiveRecord::ConnectionNotEstablished connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
        Is the server running locally and accepting connections on that socket?

/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:87:in `rescue in new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:313:in `retrieve_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:280:in `connection'
/var/www/discourse/lib/site_settings/db_provider.rb:58:in `table_exists?'
/var/www/discourse/lib/site_settings/db_provider.rb:14:in `all'
/var/www/discourse/lib/site_settings/defaults_provider.rb:30:in `db_all'
/var/www/discourse/lib/site_setting_extension.rb:303:in `block in refresh!'
/var/www/discourse/lib/site_setting_extension.rb:296:in `synchronize'
/var/www/discourse/lib/site_setting_extension.rb:296:in `refresh!'
/var/www/discourse/config/initializers/005-site_settings.rb:20:in `block (2 levels) in <main>'
/var/www/discourse/lib/freedom_patches/rails_multisite.rb:8:in `block in safe_each_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.0.0/lib/rails_multisite/connection_management/null_instance.rb:49:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.0.0/lib/rails_multisite/connection_management/null_instance.rb:36:in `each_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.0.0/lib/rails_multisite/connection_management.rb:21:in `each_connection'
/var/www/discourse/lib/freedom_patches/rails_multisite.rb:6:in `safe_each_connection'
/var/www/discourse/config/initializers/005-site_settings.rb:18:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:445:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:445:in `block in make_lambda'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:686:in `catch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:686:in `block in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:200:in `block in halting'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `block in invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:106:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/reloader.rb:88:in `prepare!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each'
/usr/local/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component'
/usr/local/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component'
/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each'
/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `call'
/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component'
/usr/local/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each'
/usr/local/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:372:in `initialize!'
/var/www/discourse/config/environment.rb:7:in `<main>'
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:348:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:506:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:188:in `invoke_task'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block in top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:147:in `run_with_threads'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:132:in `top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:83:in `block in run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:80:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/bin/rake:25:in `load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/bin/rake:25:in `<top (required)>'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/cli/exec.rb:58:in `load'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/cli.rb:451:in `exec'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/cli.rb:34:in `dispatch'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/cli.rb:28:in `start'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/exe/bundle:28:in `block in <top (required)>'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/exe/bundle:20:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
rake aborted!
ActiveRecord::ConnectionNotEstablished: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory (ActiveRecord::ConnectionNotEstablished)
        Is the server running locally and accepting connections on that socket?
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:87:in `rescue in new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:313:in `retrieve_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:280:in `connection'
/var/www/discourse/config/initializers/006-ensure_login_hint.rb:8:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:445:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:445:in `block in make_lambda'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:686:in `catch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:686:in `block in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:200:in `block in halting'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `block in invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:106:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/reloader.rb:88:in `prepare!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:372:in `initialize!'
/var/www/discourse/config/environment.rb:7:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:348:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:506:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'

Caused by:
PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory (PG::ConnectionBad)
        Is the server running locally and accepting connections on that socket?
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg/connection.rb:819:in `connect_start'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg/connection.rb:819:in `connect_to_hosts'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg/connection.rb:759:in `new'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg.rb:63:in `connect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:78:in `new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:313:in `retrieve_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_handling.rb:280:in `connection'
/var/www/discourse/config/initializers/006-ensure_login_hint.rb:8:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:445:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:445:in `block in make_lambda'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:686:in `catch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:686:in `block in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:200:in `block in halting'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `block in invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:595:in `invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/callbacks.rb:106:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/reloader.rb:88:in `prepare!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:372:in `initialize!'
/var/www/discourse/config/environment.rb:7:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:348:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.4/lib/rails/application.rb:506:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
I, [2024-06-17T20:08:28.285205 #1]  INFO -- : gem install tokenizers -v 0.4.4 -i /var/www/discourse/plugins/discourse-ai/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed tokenizers-0.4.4-x86_64-linux
1 gem installed
gem install tiktoken_ruby -v 0.0.7 -i /var/www/discourse/plugins/discourse-ai/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed tiktoken_ruby-0.0.7-x86_64-linux
1 gem installed
gem install stripe -v 11.1.0 -i /var/www/discourse/plugins/discourse-subscriptions/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed stripe-11.1.0
1 gem installed

I, [2024-06-17T20:08:28.285792 #1]  INFO -- : Terminating async processes
I, [2024-06-17T20:08:28.285906 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 80
80:signal-handler (1718654908) Received SIGTERM scheduling shutdown...
80:M 17 Jun 2024 20:08:28.333 # User requested shutdown...
80:M 17 Jun 2024 20:08:28.333 * Saving the final RDB snapshot before exiting.
80:M 17 Jun 2024 20:08:28.420 * DB saved on disk
80:M 17 Jun 2024 20:08:28.420 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1005 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
b8c78af762b408c68869407a8c9b2e9acb04ca531fbe1d14b25103c2c03acb48
  1. Usei o Discourse Doctor para exibir os logs. 2. Minha aposta é de que o erro é um problema do PostgreSQL, estou certo?

Não sei o motivo, mas felizmente tentei novamente agora e funcionou. Estou me perguntando qual poderia ser a causa raiz desse comportamento. Alguém sabe?

Não quero passar por isso novamente, então se alguém reinstalou o Discourse devido a um erro e restaurou usando um arquivo de backup. Eu também gostaria de saber se você tem um backup armazenado em um arquivo local, salvo externamente e o sincronizou após a reinstalação.