Olá, passei algum tempo procurando uma solução para meu problema, então decidi postar um pedido de ajuda aqui. Qualquer ajuda seria muito apreciada.
obrigado.
A atualização do meu Discourse falhou ao tentar reconstruir usando o comando sudo ./launcher rebuild app.
aqui está o erro:
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 612 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 NO BOOTSTRAP ** por favor, role para cima e procure por mensagens de erro anteriores, pode haver mais de um.
./discourse-doctor pode ajudar a diagnosticar o problema.
e aqui está a saída completa.
Arquitetura x86_64 detectada.
AVISO: o arquivo containers/app.yml é legível por todos. Você pode proteger este arquivo executando: chmod o-rwx containers/app.yml
Garantindo que o launcher esteja atualizado
Buscando origin
remote: Enumerando objetos: 98, concluído.
remote: Contando objetos: 100% (98/98), concluído.
remote: Compactando objetos: 100% (53/53), concluído.
remote: Total 98 (delta 44), reutilizados 91 (delta 41), pack-reused 0 (de 0)
Descompactando objetos: 100% (98/98), 33.85 KiB | 1.30 MiB/s, concluído.
De https://github.com/discourse/discourse_docker
595dd6a..cfe8aa0 main -> origin/main
* [nova branch] clean-bundle-cache -> origin/clean-bundle-cache
* [nova branch] launcher2-runtime -> origin/launcher2-runtime
Atualizando Launcher...
Atualizando 595dd6a..cfe8aa0
Fast-forward
.github/workflows/build.yml | 8 +++++++-
.github/workflows/launcher_go.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++
image/base/install-nginx | 2 ++
image/base/install-oxipng | 2 +-
launcher_go/v2/cli_build.go | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
launcher_go/v2/cli_build_test.go | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------
launcher_go/v2/config/config.go | 23 ++++++++++++-----------
launcher_go/v2/docker/commands.go | 48 +++++++++++++++++++++++++++++++++++-------------
launcher_go/v2/main.go | 2 ++
launcher_go/v2/test/containers/test.yml | 3 ++-
10 arquivos alterados, 286 inserções(+), 42 deleções(-)
criado modo 100644 .github/workflows/launcher_go.yml
Launcher atualizado, reiniciando...
Arquitetura x86_64 detectada.
AVISO: o arquivo containers/app.yml é legível por todos. Você pode proteger este arquivo executando: chmod o-rwx containers/app.yml
Garantindo que o launcher esteja atualizado
Buscando origin
Launcher está atualizado
Parando container antigo
+ /usr/bin/docker stop -t 600 app
app
2.0.20240825-0027: Puxando de discourse/base
Digest: sha256:6de68cb49198b5281f79ed9401b3fe818c854d220dcf0238549fe2f2adb19146
Status: A imagem está atualizada para discourse/base:2.0.20240825-0027
docker.io/discourse/base:2.0.20240825-0027
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-08-30T06:56:18.948183 #1] INFO -- : Lendo de stdin
I, [2024-08-30T06:56:18.964205 #1] INFO -- : Arquivo > /etc/service/postgres/run chmod: +x chown:
I, [2024-08-30T06:56:18.968049 #1] INFO -- : Arquivo > /etc/service/postgres/log/run chmod: +x chown:
I, [2024-08-30T06:56:18.971804 #1] INFO -- : Arquivo > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2024-08-30T06:56:18.975928 #1] INFO -- : Arquivo > /root/install_postgres chmod: +x chown:
I, [2024-08-30T06:56:18.980242 #1] INFO -- : Arquivo > /root/upgrade_postgres chmod: +x chown:
I, [2024-08-30T06:56:18.981315 #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-08-30T06:56:18.982464 #1] INFO -- : Substituindo (?-mix:#?listen_addresses *=.*) por listen_addresses = '*' em /etc/postgresql/13/main/postgresql.conf
I, [2024-08-30T06:56:18.983257 #1] INFO -- : Substituindo (?-mix:#?synchronous_commit *=.*) por synchronous_commit = $db_synchronous_commit em /etc/postgresql/13/main/postgresql.conf
I, [2024-08-30T06:56:18.983946 #1] INFO -- : Substituindo (?-mix:#?shared_buffers *=.*) por shared_buffers = $db_shared_buffers em /etc/postgresql/13/main/postgresql.conf
I, [2024-08-30T06:56:18.984609 #1] INFO -- : Substituindo (?-mix:#?work_mem *=.*) por work_mem = $db_work_mem em /etc/postgresql/13/main/postgresql.conf
I, [2024-08-30T06:56:18.985516 #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-08-30T06:56:18.986191 #1] INFO -- : Substituindo (?-mix:#?checkpoint_segments *=.*) por checkpoint_segments = $db_checkpoint_segments em /etc/postgresql/13/main/postgresql.conf
I, [2024-08-30T06:56:18.986778 #1] INFO -- : Substituindo (?-mix:#?logging_collector *=.*) por logging_collector = $db_logging_collector em /etc/postgresql/13/main/postgresql.conf
I, [2024-08-30T06:56:18.987367 #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-08-30T06:56:18.988402 #1] INFO -- : Substituindo (?-mix:^#local +replication +postgres +peer$) por local replication postgres peer em /etc/postgresql/13/main/pg_hba.conf
I, [2024-08-30T06:56:18.988907 #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-08-30T06:56:18.989381 #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-08-30T06:56:18.989926 #1] INFO -- : > if [ -f /root/install_postgres ]; then
/root/install_postgres && rm -f /root/install_postgres
elif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then
socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres já está em execução, pare o container ; exit 1
fi
I, [2024-08-30T06:56:20.337068 #1] INFO -- : Gerando locales (isso pode demorar um pouco)...
Geração concluída.
I, [2024-08-30T06:56:20.337989 #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-08-30T06:56:20.346153 #1] INFO -- : Arquivo > /usr/local/bin/create_db chmod: +x chown:
I, [2024-08-30T06:56:20.361384 #1] INFO -- : Arquivo > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2024-08-30T06:56:20.368046 #1] INFO -- : Arquivo > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2024-08-30T06:56:20.368835 #1] INFO -- : > sleep 5
2024-08-30 06:56:20.427 UTC [36] LOG: iniciando PostgreSQL 13.16 (Debian 13.16-1.pgdg120+1) em x86_64-pc-linux-gnu, compilado por gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-30 06:56:20.427 UTC [36] LOG: ouvindo no endereço IPv4 "0.0.0.0", porta 5432
2024-08-30 06:56:20.428 UTC [36] LOG: ouvindo no endereço IPv6 "::", porta 5432
2024-08-30 06:56:20.431 UTC [36] LOG: ouvindo no socket Unix "/var/run/postgresql/.s.PGSQL.5432"
2024-08-30 06:56:20.436 UTC [45] LOG: sistema de banco de dados foi desligado em 2024-08-30 06:56:09 UTC
2024-08-30 06:56:20.444 UTC [36] LOG: sistema de banco de dados está pronto para aceitar conexões
I, [2024-08-30T06:56:25.374933 #1] INFO -- :
I, [2024-08-30T06:56:25.375218 #1] INFO -- : > /usr/local/bin/create_db
2024-08-30 06:56:25.471 UTC [55] postgres@postgres ERROR: banco de dados "discourse" já existe
2024-08-30 06:56:25.471 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: erro: criação do banco de dados falhou: ERROR: banco de dados "discourse" já existe
2024-08-30 06:56:25.550 UTC [58] postgres@discourse ERROR: papel "discourse" já existe
2024-08-30 06:56:25.550 UTC [58] postgres@discourse STATEMENT: create user discourse;
ERROR: papel "discourse" já existe
NOTICE: extensão "hstore" já existe, ignorando
NOTICE: extensão "pg_trgm" já existe, ignorando
NOTICE: extensão "vector" já existe, ignorando
NOTICE: versão "0.7.4" da extensão "vector" já está instalada
NOTICE: extensão "hstore" já existe, ignorando
NOTICE: extensão "pg_trgm" já existe, ignorando
NOTICE: extensão "vector" já existe, ignorando
NOTICE: versão "0.7.4" da extensão "vector" já está instalada
I, [2024-08-30T06:56:26.292454 #1] INFO -- : GRANT
ALTER SCHEMA
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
ALTER EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
ALTER EXTENSION
UPDATE 0
I, [2024-08-30T06:56:26.293093 #1] INFO -- : > echo postgres instalado!
I, [2024-08-30T06:56:26.295550 #1] INFO -- : postgres instalado!
I, [2024-08-30T06:56:26.300606 #1] INFO -- : Arquivo > /etc/service/redis/run chmod: +x chown:
I, [2024-08-30T06:56:26.309609 #1] INFO -- : Arquivo > /etc/service/redis/log/run chmod: +x chown:
I, [2024-08-30T06:56:26.315683 #1] INFO -- : Arquivo > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2024-08-30T06:56:26.316967 #1] INFO -- : Substituindo daemonize yes por em /etc/redis/redis.conf
I, [2024-08-30T06:56:26.318451 #1] INFO -- : Substituindo (?-mix:^pidfile.*$) por em /etc/redis/redis.conf
I, [2024-08-30T06:56:26.319623 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-08-30T06:56:26.323067 #1] INFO -- :
I, [2024-08-30T06:56:26.323773 #1] INFO -- : Substituindo (?-mix:^logfile.*$) por logfile "" em /etc/redis/redis.conf
I, [2024-08-30T06:56:26.324542 #1] INFO -- : Substituindo (?-mix:^bind .*$) por em /etc/redis/redis.conf
I, [2024-08-30T06:56:26.325226 #1] INFO -- : Substituindo (?-mix:^dir .*$) por dir /shared/redis_data em /etc/redis/redis.conf
I, [2024-08-30T06:56:26.326011 #1] INFO -- : Substituindo (?-mix:^protected-mode yes) por protected-mode no em /etc/redis/redis.conf
I, [2024-08-30T06:56:26.326740 #1] INFO -- : Substituindo # io-threads 4 por io-threads $redis_io_threads em /etc/redis/redis.conf
I, [2024-08-30T06:56:26.327389 #1] INFO -- : > echo redis instalado
I, [2024-08-30T06:56:26.330197 #1] INFO -- : redis instalado
I, [2024-08-30T06:56:26.330677 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-08-30T06:56:26.336165 #1] INFO -- : logfile ""
I, [2024-08-30T06:56:26.336499 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-08-30T06:56:26.337966 #1] INFO -- : > sleep 10
104:C 30 Ago 2024 06:56:26.348 # oO0OoO0OoO0Oo Redis está iniciando oO0OoO0OoO0Oo
104:C 30 Ago 2024 06:56:26.348 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=104, just started
104:C 30 Ago 2024 06:56:26.348 # Configuração carregada
104:M 30 Ago 2024 06:56:26.349 * monotonic clock: POSIX clock_gettime
104:M 30 Ago 2024 06:56:26.349 * Modo de execução=standalone, porta=6379.
104:M 30 Ago 2024 06:56:26.349 # Servidor inicializado
104:M 30 Ago 2024 06:56:26.350 # AVISO: Memory overcommit deve estar habilitado! Sem ele, uma gravação em segundo plano ou replicação pode falhar em condições de baixa memória. Se estiver desabilitado, também pode causar falhas sem condições de baixa memória, veja https://github.com/jemalloc/jemalloc/issues/1328. Para corrigir esse problema, adicione 'vm.overcommit_memory = 1' em /etc/sysctl.conf e então reinicie ou execute o comando 'sysctl vm.overcommit_memory=1' para que isso entre em vigor.
104:M 30 Ago 2024 06:56:26.350 * Carregando RDB produzido pela versão 7.0.7
104:M 30 Ago 2024 06:56:26.350 * Idade do RDB 17 segundos
104:M 30 Ago 2024 06:56:26.350 * Uso de memória do RDB quando criado 3.73 Mb
104:M 30 Ago 2024 06:56:26.362 * Conclusão do carregamento do RDB, chaves carregadas: 2858, chaves expiradas: 0.
104:M 30 Ago 2024 06:56:26.362 * Banco de dados carregado do disco: 0.012 segundos
104:M 30 Ago 2024 06:56:26.362 * Pronto para aceitar conexões
I, [2024-08-30T06:56:36.342328 #1] INFO -- :
I, [2024-08-30T06:56:36.342654 #1] INFO -- : > thpoff echo "thpoff está instalado!"
I, [2024-08-30T06:56:36.348798 #1] INFO -- : thpoff está instalado!
I, [2024-08-30T06:56:36.349280 #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-08-30T06:56:36.454702 #1] INFO -- :
I, [2024-08-30T06:56:36.454873 #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-08-30T06:56:36.556018 #1] INFO -- :
I, [2024-08-30T06:56:36.556202 #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-08-30T06:56:36.657888 #1] INFO -- :
I, [2024-08-30T06:56:36.658084 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-08-30T06:56:36.660378 #1] INFO -- :
I, [2024-08-30T06:56:36.662911 #1] INFO -- : Arquivo > /etc/cron.d/anacron chmod: chown:
I, [2024-08-30T06:56:36.668033 #1] INFO -- : Arquivo > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2024-08-30T06:56:36.672293 #1] INFO -- : Arquivo > /etc/service/unicorn/run chmod: +x chown:
I, [2024-08-30T06:56:36.676557 #1] INFO -- : Arquivo > /etc/service/nginx/run chmod: +x chown:
I, [2024-08-30T06:56:36.680699 #1] INFO -- : Arquivo > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2024-08-30T06:56:36.684848 #1] INFO -- : Arquivo > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2024-08-30T06:56:36.684970 #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-08-30T06:56:36.686390 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Atualizando arquivos: 100% (34680/34680), concluído.
I, [2024-08-30T06:56:40.963927 #1] INFO -- : HEAD está agora em 274e18622 FIX: Uploads de vídeo às vezes travam indefinidamente (#28523)
I, [2024-08-30T06:56:40.964459 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-08-30T06:56:41.127206 #1] INFO -- :
I, [2024-08-30T06:56:41.128273 #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/0-a-gjs-ace
- [deletado] (nenhum) -> origin/better-respect-End-key-in-topics
- [deletado] (nenhum) -> origin/dependabot/npm_and_yarn/ember-cli-deprecation-workflow-3.0.2
- [deletado] (nenhum) -> origin/dependabot/npm_and_yarn/ember/test-helpers-4.0.1
- [deletado] (nenhum) -> origin/dependabot/npm_and_yarn/eslint-9.7.0
- [deletado] (nenhum) -> origin/feature/site-text-result-selected-lang
- [deletado] (nenhum) -> origin/fix/add-user-to-user-directory-when-activated
- [deletado] (nenhum) -> origin/issue/fix-bookmark-clearing-reminder
- [deletado] (nenhum) -> origin/native-class-components-2
- [deletado] (nenhum) -> origin/native-class-components-3
- [deletado] (nenhum) -> origin/notifications_id_bigint
- [deletado] (nenhum) -> origin/prevent-desktop-notifications-on-mobile
- [deletado] (nenhum) -> origin/ux/admin-plugins-ui-guidelines
274e18622..361e954c5 main -> origin/main
* [nova branch] add-ability-to-watch-chat-threads -> origin/add-ability-to-watch-chat-threads
3729ac14c..0fafa0bb4 category-experts-approved-webhook-event -> origin/category-experts-approved-webhook-event
* [nova branch] class-initializer -> origin/class-initializer
* [nova branch] dependabot/bundler/ruby-readability-0.7.2 -> origin/dependabot/bundler/ruby-readability-0.7.2
* [nova branch] dependabot/npm_and_yarn/ace-builds-1.36.1 -> origin/dependabot/npm_and_yarn/ace-builds-1.36.1
* [nova branch] dependabot/npm_and_yarn/babel-fcd205ed66 -> origin/dependabot/npm_and_yarn/babel-fcd205ed66
* [nova branch] dependabot/npm_and_yarn/puppeteer-core-23.2.1 -> origin/dependabot/npm_and_yarn/puppeteer-core-23.2.1
* [nova branch] dev-make-user-1-1-with-user-password -> origin/dev-make-user-1-1-with-user-password
* [nova branch] dev/glimmer-post-menu -> origin/dev/glimmer-post-menu
* [nova branch] dev/port-outlet-wrapper-to-stable -> origin/dev/port-outlet-wrapper-to-stable
* [nova branch] dev/remove-deprecated-respect-plugin-positional-argument -> origin/dev/remove-deprecated-respect-plugin-positional-argument
* [nova branch] drop-old-notification-id-columns -> origin/drop-old-notification-id-columns
* [nova branch] ember-native-class -> origin/ember-native-class
* [nova branch] feature/add-user-to-topic_tags_changed-event -> origin/feature/add-user-to-topic_tags_changed-event
* [nova branch] feature/support-multiple-moderation-groups-on-category -> origin/feature/support-multiple-moderation-groups-on-category
* [nova branch] fix-bookmarks-filtering -> origin/fix-bookmarks-filtering
* [nova branch] fix/check-existing-custom-flags-before-creation -> origin/fix/check-existing-custom-flags-before-creation
* [nova branch] login-buttons-multiple-class -> origin/login-buttons-multiple-class
+ a25ac32bc...97bd38cf4 mt/converter -> origin/mt/converter (atualização forçada)
d3ad2ecda..15f036baf stable -> origin/stable
274e18622..361e954c5 tests-passed -> origin/tests-passed
* [nova branch] translations-from-crowdin-stable -> origin/translations-from-crowdin-stable
* [nova branch] unique-tag-user-notification -> origin/unique-tag-user-notification
* [nova branch] ux-1pw-ignore -> origin/ux-1pw-ignore
* [nova branch] ux/convert-chat-plugin-ui -> origin/ux/convert-chat-plugin-ui
* [nova branch] ux_form_template_flash -> origin/ux_form_template_flash
t [atualização de tag] beta -> beta
t [atualização de tag] latest-release -> latest-release
* [nova tag] v3.3.1 -> v3.3.1
* [nova tag] v3.4.0.beta1 -> v3.4.0.beta1
I, [2024-08-30T06:56:42.073269 #1] INFO -- :
I, [2024-08-30T06:56:42.073714 #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-08-30T06:56:44.851651 #1] INFO -- : branch 'tests-passed' configurado para rastrear 'origin/tests-passed'.
I, [2024-08-30T06:56:44.852217 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-08-30T06:56:44.865672 #1] INFO -- :
I, [2024-08-30T06:56:44.865986 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-08-30T06:56:44.868951 #1] INFO -- :
I, [2024-08-30T06:56:44.869247 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-08-30T06:56:44.872276 #1] INFO -- :
I, [2024-08-30T06:56:44.872501 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-08-30T06:56:44.875816 #1] INFO -- :
I, [2024-08-30T06:56:44.876029 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-08-30T06:56:44.879320 #1] INFO -- :
I, [2024-08-30T06:56:44.879578 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-08-30T06:56:44.882918 #1] INFO -- :
I, [2024-08-30T06:56:44.883194 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2024-08-30T06:56:44.886219 #1] INFO -- :
I, [2024-08-30T06:56:44.886447 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-08-30T06:56:44.890808 #1] INFO -- :
I, [2024-08-30T06:56:44.891103 #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-08-30T06:56:44.895797 #1] INFO -- :
I, [2024-08-30T06:56:44.896013 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2024-08-30T06:56:44.900610 #1] INFO -- :
I, [2024-08-30T06:56:44.901011 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-08-30T06:56:44.905409 #1] INFO -- :
I, [2024-08-30T06:56:44.905624 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2024-08-30T06:56:44.910429 #1] INFO -- :
I, [2024-08-30T06:56:44.910686 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-08-30T06:56:44.915057 #1] INFO -- :
I, [2024-08-30T06:56:44.915356 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-08-30T06:56:44.938455 #1] INFO -- :
I, [2024-08-30T06:56:44.938891 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-08-30T06:56:44.941762 #1] INFO -- :
I, [2024-08-30T06:56:44.942235 #1] INFO -- : Substituindo # redis por sv start redis || exit 1 em /etc/service/unicorn/run
I, [2024-08-30T06:56:44.942951 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Clonando em 'docker_manager'...
I, [2024-08-30T06:56:45.959336 #1] INFO -- :
I, [2024-08-30T06:56:45.959554 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-calendar
Clonando em 'discourse-calendar'...
I, [2024-08-30T06:56:46.979465 #1] INFO -- :
I, [2024-08-30T06:56:46.979867 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-events
Clonando em 'discourse-events'...
I, [2024-08-30T06:56:47.680698 #1] INFO -- :
I, [2024-08-30T06:56:47.681126 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/xomads/discourse-video-upload
Clonando em 'discourse-video-upload'...
I, [2024-08-30T06:56:48.323561 #1] INFO -- :
I, [2024-08-30T06:56:48.324134 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-08-30T06:56:48.328453 #1] INFO -- :
I, [2024-08-30T06:56:48.329067 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-08-30T06:56:48.331726 #1] INFO -- :
I, [2024-08-30T06:56:48.332230 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2024-08-30T06:56:48.335070 #1] INFO -- :
I, [2024-08-30T06:56:48.335953 #1] INFO -- : Substituindo pid /run/nginx.pid; por daemon off; em /etc/nginx/nginx.conf
I, [2024-08-30T06:56:48.336609 #1] INFO -- : Substituindo (?m-ix:upstream[^\}]+\}) por upstream discourse { server 127.0.0.1:3000; } em /etc/nginx/conf.d/discourse.conf
I, [2024-08-30T06:56:48.337166 #1] INFO -- : Substituindo (?-mix:server_name.+$) por server_name _ ; em /etc/nginx/conf.d/discourse.conf
I, [2024-08-30T06:56:48.337686 #1] INFO -- : Substituindo (?-mix:client_max_body_size.+$) por client_max_body_size $upload_size ; em /etc/nginx/conf.d/discourse.conf
I, [2024-08-30T06:56:48.338218 #1] INFO -- : Substituindo (?-mix:worker_connections.+$) por worker_connections $nginx_worker_connections ; em /etc/nginx/nginx.conf
I, [2024-08-30T06:56:48.338673 #1] INFO -- : > echo "concluída configuração da web"
I, [2024-08-30T06:56:48.340760 #1] INFO -- : concluída configuração da web
I, [2024-08-30T06:56:48.341186 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-08-30T06:56:48.663785 #1] INFO -- :
I, [2024-08-30T06:56:48.663958 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-08-30T06:56:50.010467 #1] INFO -- :
I, [2024-08-30T06:56:50.010985 #1] INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
rm -rf app/assets/javascripts/node_modules
fi
I, [2024-08-30T06:56:50.012899 #1] INFO -- :
I, [2024-08-30T06:56:50.013108 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'yarn config set network-timeout 60000 -g'
I, [2024-08-30T06:56:50.386384 #1] INFO -- : yarn config v1.22.22
success Definido "network-timeout" para "60000".
Concluído em 0.08s.
I, [2024-08-30T06:56:50.386945 #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-f15441dd-2a2f-4d3b-8279-019453a69d41 > discourse > @uppy/aws-s3@3.0.6" tem dependência peer incorreta "@uppy/core@^3.1.2".
warning "workspace-aggregator-f15441dd-2a2f-4d3b-8279-019453a69d41 > discourse > @uppy/aws-s3-multipart@3.1.3" tem dependência peer incorreta "@uppy/core@^3.1.2".
warning "workspace-aggregator-f15441dd-2a2f-4d3b-8279-019453a69d41 > discourse > @uppy/xhr-upload@3.1.1" tem dependência peer incorreta "@uppy/core@^3.1.2".
warning "workspace-aggregator-f15441dd-2a2f-4d3b-8279-019453a69d41 > 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-f15441dd-2a2f-4d3b-8279-019453a69d41 > admin > ember-source > router_js@8.0.3" tem dependência peer não atendida "rsvp@^4.8.5".
warning "workspace-aggregator-f15441dd-2a2f-4d3b-8279-019453a69d41 > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" tem dependência peer incorreta "@uppy/core@^3.2.1".
I, [2024-08-30T06:59:00.836576 #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 novos...
$ ./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 121.86s.
yarn cache v1.22.22
success Cache limpo.
Concluído em 7.97s.
I, [2024-08-30T06:59:00.838203 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --jobs $(($(nproc) - 1)) --retry 3'
I, [2024-08-30T06:59:08.967237 #1] INFO -- : Buscando metadados do gem de https://rubygems.org/........
Buscando net-imap 0.4.15
Instalando net-imap 0.4.15
Buscando css_parser 1.19.0
Instalando css_parser 1.19.0
Buscando uri 0.13.1
Instalando uri 0.13.1
Buscando faraday-net_http 3.3.0
Instalando faraday-net_http 3.3.0
Buscando faraday 2.11.0
Instalando faraday 2.11.0
Buscando google-protobuf 4.28.0 (x86_64-linux)
Instalando google-protobuf 4.28.0 (x86_64-linux)
Buscando highline 3.1.1
Instalando highline 3.1.1
Buscando thor 1.3.2
Instalando thor 1.3.2
Buscando omniauth-oauth 1.2.1
Instalando omniauth-oauth 1.2.1
Bundle concluído! 142 dependências do Gemfile, 184 gems instalados agora.
Gems nos grupos 'test' e 'development' não foram instalados.
Gems empacotados são instalados em `./vendor/bundle`
1 gem instalada da qual você depende diretamente está procurando financiamento.
Execute `bundle fund` para detalhes
I, [2024-08-30T06:59:08.967865 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2024-08-30T06:59:13.800474 #1] INFO -- : discourse-calendar já está na versão compatível mais recente
discourse-events já está na versão compatível mais recente
discourse-video-upload já está na versão compatível mais recente
docker_manager já está na versão compatível mais recente
I, [2024-08-30T06:59:13.801181 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-08-30T06:59:13.803288 #1] INFO -- : > sleep 10
608:C 30 Ago 2024 06:59:13.823 # oO0OoO0OoO0Oo Redis está iniciando oO0OoO0OoO0Oo
608:C 30 Ago 2024 06:59:13.823 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=608, just started
608:C 30 Ago 2024 06:59:13.823 # Configuração carregada
608:M 30 Ago 2024 06:59:13.824 * monotonic clock: POSIX clock_gettime
608:M 30 Ago 2024 06:59:13.824 # Aviso: Não foi possível criar socket de escuta TCP do servidor *:6379: bind: Endereço já em uso
608:M 30 Ago 2024 06:59:13.824 # Falha ao escutar na porta 6379 (TCP), abortando.
I, [2024-08-30T06:59:23.807920 #1] INFO -- :
I, [2024-08-30T06:59:23.808747 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake abortado!
[DiscourseVideoUpload] Arquivos Javascript sob `assets/javascripts` são incluídos automaticamente nos pacotes JS.
Chamadas manuais de register_asset devem ser removidas. (tentou adicionar javascripts/lib/vimeo-upload.js)
/var/www/discourse/lib/plugin/instance.rb:717:in `register_asset'
/var/www/discourse/plugins/discourse-video-upload/plugin.rb:13:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:778:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:778:in `activate!'
/var/www/discourse/lib/discourse.rb:348:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:345:in `each'
/var/www/discourse/lib/discourse.rb:345:in `activate_plugins!'
/var/www/discourse/config/application.rb:232:in `block in <class:Application>'
/var/www/discourse/lib/plugin.rb:6:in `initialization_guard'
/var/www/discourse/config/application.rb:232:in `<class:Application>'
/var/www/discourse/config/application.rb:75:in `<module:Discourse>'
/var/www/discourse/config/application.rb:74:in `<top (required)>'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/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>'
(Veja o rastreamento completo executando a tarefa com --trace)
I, [2024-08-30T06:59:55.564695 #1] INFO -- : gem install uuidtools -v 2.2.0 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed uuidtools-2.2.0
1 gem installed
gem install iso-639 -v 0.3.5 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed iso-639-0.3.5
1 gem installed
gem install ice_cube -v 0.16.4 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed ice_cube-0.16.4
1 gem installed
gem install icalendar -v 2.8.0 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
ActiveSupport is required for TimeWithZone support, but not required for general use.
Successfully installed icalendar-2.8.0
1 gem installed
gem install icalendar-recurrence -v 1.1.3 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed icalendar-recurrence-1.1.3
1 gem installed
gem install date -v 3.3.4 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Building native extensions. This could take a while...
Successfully installed date-3.3.4
1 gem installed
gem install time -v 0.2.0 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed time-0.2.0
1 gem installed
gem install stringio -v 3.1.1 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Building native extensions. This could take a while...
Successfully installed stringio-3.1.1
1 gem installed
gem install omnievent -v 0.1.0.pre3 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed omnievent-0.1.0.pre3
1 gem installed
gem install omnievent-icalendar -v 0.1.0.pre5 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed omnievent-icalendar-0.1.0.pre5
1 gem installed
gem install omnievent-api -v 0.1.0.pre2 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed omnievent-api-0.1.0.pre2
1 gem installed
gem install omnievent-eventbrite -v 0.1.0.pre2 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed omnievent-eventbrite-0.1.0.pre2
1 gem installed
gem install omnievent-eventzilla -v 0.1.0.pre2 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed omnievent-eventzilla-0.1.0.pre2
1 gem installed
gem install omnievent-meetup -v 0.1.0.pre1 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed omnievent-meetup-0.1.0.pre1
1 gem installed
gem install omnievent-outlook -v 0.1.0.pre2 -i /var/www/discourse/plugins/discourse-events/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed omnievent-outlook-0.1.0.pre2
1 gem installed
I, [2024-08-30T06:59:55.565538 #1] INFO -- : Terminating async processes
I, [2024-08-30T06:59:55.565618 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 36
I, [2024-08-30T06:59:55.565721 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 104
104:signal-handler (1725001195) Received SIGTERM scheduling shutdown...
2024-08-30 06:59:55.566 UTC [36] LOG: received fast shutdown request
2024-08-30 06:59:55.568 UTC [36] LOG: aborting any active transactions
2024-08-30 06:59:55.572 UTC [36] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2024-08-30 06:59:55.578 UTC [46] LOG: shutting down
104:M 30 Aug 2024 06:59:55.599 # User requested shutdown...
104:M 30 Aug 2024 06:59:55.599 * Saving the final RDB snapshot before exiting.
2024-08-30 06:59:55.612 UTC [36] LOG: database system is shut down
104:M 30 Aug 2024 06:59:55.622 * DB saved on disk
104:M 30 Aug 2024 06:59:55.622 # 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 612 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.
df03c3401b35e1722e269363f40677ac73227c543d2bac52730700a30795f531