Rebuild fails when these plugins are present

Hello, I was rebuilding my site recently when I discovered the process kept erroring out. As far as troubleshooting steps went, I removed all the plugins from my site (all of which are official) and the site was able to be rebuilt.

Is someone able to check the official plugins below that I used to see if one of them is having problems with the rebuild process? Thanks.

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-akismet
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-follow
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-docs.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-yearly-review.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-cakeday.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-user-notes.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-gamification.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-policy.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-calendar.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-solved.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-post-voting.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-subscriptions.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-whos-online.git

Do you have any information on the errors you got when rebuilding?

2 Likes

I didn’t copy the logs as nothing really caught my attention except the final error message, I’ll try again with all the plugins above placed back into the app.yml file tomorrow and I’ll post an update here with the error message that was posted when the rebuild stopped. :+1:

1 Like

Here are the rebuild logs, I do see that when it begins to clone plugins it errors out with a “Permission Denied” failure. What should I do? Is this an issue with one of the plugins?

x86_64 arch detected.
Ensuring launcher is up to date
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 600 app
app
2.0.20240602-0023: Pulling from discourse/base
Digest: sha256:5e0c30da851a00e824a58b033d59b8f3dd840b513a7694a7a5d0674285c0ee3c
Status: Image is up to date for 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-04T11:48:23.557682 #1]  INFO -- : Reading from stdin
I, [2024-06-04T11:48:23.598757 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2024-06-04T11:48:23.613059 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2024-06-04T11:48:23.627138 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2024-06-04T11:48:23.641282 #1]  INFO -- : File > /root/install_postgres  chmod: +x  chown:
I, [2024-06-04T11:48:23.655195 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2024-06-04T11:48:23.656105 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.658345 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.660095 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.662792 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.664305 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.666115 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.667883 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.669238 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.670761 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-04T11:48:23.672064 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-04T11:48:23.673046 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-04T11:48:23.674107 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-04T11:48:23.675378 #1]  INFO -- : > [ -f /root/install_postgres ] && /root/install_postgres && rm -f /root/install_postgres
2024/06/04 11:48:23 socat[30] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): Connection refused
I, [2024-06-04T11:48:23.837574 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2024-06-04T11:48:23.838216 #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-04T11:48:23.859106 #1]  INFO -- : File > /usr/local/bin/create_db  chmod: +x  chown:
I, [2024-06-04T11:48:23.879840 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2024-06-04T11:48:23.888877 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2024-06-04T11:48:23.889316 #1]  INFO -- : > sleep 5
2024-06-04 11:48:24.062 UTC [32] LOG:  starting PostgreSQL 13.15 (Debian 13.15-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-06-04 11:48:24.063 UTC [32] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-06-04 11:48:24.063 UTC [32] LOG:  listening on IPv6 address "::", port 5432
2024-06-04 11:48:24.073 UTC [32] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-06-04 11:48:24.091 UTC [41] LOG:  database system was interrupted; last known up at 2024-06-04 11:47:32 UTC
2024-06-04 11:48:25.115 UTC [41] LOG:  database system was not properly shut down; automatic recovery in progress
2024-06-04 11:48:25.121 UTC [41] LOG:  redo starts at 0/D16F970
2024-06-04 11:48:25.121 UTC [41] LOG:  invalid record length at 0/D1744B8: wanted 24, got 0
2024-06-04 11:48:25.121 UTC [41] LOG:  redo done at 0/D174480
2024-06-04 11:48:25.172 UTC [32] LOG:  database system is ready to accept connections
I, [2024-06-04T11:48:28.895207 #1]  INFO -- :
I, [2024-06-04T11:48:28.895549 #1]  INFO -- : > /usr/local/bin/create_db
2024-06-04 11:48:29.087 UTC [51] postgres@postgres ERROR:  database "discourse" already exists
2024-06-04 11:48:29.087 UTC [51] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-06-04 11:48:29.159 UTC [54] postgres@discourse ERROR:  role "discourse" already exists
2024-06-04 11:48:29.159 UTC [54] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
I, [2024-06-04T11:48:29.766258 #1]  INFO -- : GRANT
ALTER SCHEMA
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
UPDATE 0

I, [2024-06-04T11:48:29.766372 #1]  INFO -- : > echo postgres installed!
I, [2024-06-04T11:48:29.768798 #1]  INFO -- : postgres installed!

I, [2024-06-04T11:48:29.773898 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2024-06-04T11:48:29.778935 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2024-06-04T11:48:29.783942 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2024-06-04T11:48:29.784222 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2024-06-04T11:48:29.784875 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2024-06-04T11:48:29.785380 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-06-04T11:48:29.788611 #1]  INFO -- :
I, [2024-06-04T11:48:29.789071 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-06-04T11:48:29.789788 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2024-06-04T11:48:29.790999 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-06-04T11:48:29.792241 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-06-04T11:48:29.793435 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-06-04T11:48:29.794754 #1]  INFO -- : > echo redis installed
I, [2024-06-04T11:48:29.796978 #1]  INFO -- : redis installed

I, [2024-06-04T11:48:29.797246 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-06-04T11:48:29.801333 #1]  INFO -- : logfile ""

I, [2024-06-04T11:48:29.801464 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-04T11:48:29.802862 #1]  INFO -- : > sleep 10
94:C 04 Jun 2024 11:48:29.811 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
94:C 04 Jun 2024 11:48:29.811 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=94, just started
94:C 04 Jun 2024 11:48:29.811 # Configuration loaded
94:M 04 Jun 2024 11:48:29.811 * monotonic clock: POSIX clock_gettime
94:M 04 Jun 2024 11:48:29.812 * Running mode=standalone, port=6379.
94:M 04 Jun 2024 11:48:29.812 # Server initialized
94:M 04 Jun 2024 11:48:29.812 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
94:M 04 Jun 2024 11:48:29.813 * Loading RDB produced by version 7.0.7
94:M 04 Jun 2024 11:48:29.813 * RDB age 99 seconds
94:M 04 Jun 2024 11:48:29.813 * RDB memory usage when created 11.90 Mb
94:M 04 Jun 2024 11:48:29.831 * Done loading RDB, keys loaded: 767, keys expired: 10.
94:M 04 Jun 2024 11:48:29.831 * DB loaded from disk: 0.018 seconds
94:M 04 Jun 2024 11:48:29.831 * Ready to accept connections
I, [2024-06-04T11:48:39.805851 #1]  INFO -- :
I, [2024-06-04T11:48:39.806839 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-06-04T11:48:39.816680 #1]  INFO -- : thpoff is installed!

I, [2024-06-04T11:48:39.817421 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2024-06-04T11:48:40.098723 #1]  INFO -- :
I, [2024-06-04T11:48:40.098947 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-06-04T11:48:40.377469 #1]  INFO -- :
I, [2024-06-04T11:48:40.377751 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2024-06-04T11:48:40.649946 #1]  INFO -- :
I, [2024-06-04T11:48:40.650319 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-06-04T11:48:40.657498 #1]  INFO -- :
I, [2024-06-04T11:48:40.665587 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2024-06-04T11:48:40.680950 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2024-06-04T11:48:40.694598 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2024-06-04T11:48:40.708660 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2024-06-04T11:48:40.722856 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2024-06-04T11:48:40.736691 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2024-06-04T11:48:40.736969 #1]  INFO -- : Replacing # postgres with if [ -f /root/install_postgres ]; then
  /root/install_postgres
  rm /root/install_postgres
fi
sv start postgres || exit 1
 in /etc/service/unicorn/run
I, [2024-06-04T11:48:40.739723 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34508/34508), done.
I, [2024-06-04T11:48:54.865468 #1]  INFO -- : HEAD is now at 62b1b69e8 UX: constrain width of chat transcripts in posts (#27288)

I, [2024-06-04T11:48:54.865754 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-06-04T11:48:55.359182 #1]  INFO -- :
I, [2024-06-04T11:48:55.359430 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
'
From https://github.com/discourse/discourse
 - [deleted]             (none)     -> origin/avoid_unformatted_logs
 - [deleted]             (none)     -> origin/discourse-url-native-class
 - [deleted]             (none)     -> origin/fix-group-chat-member-count
 - [deleted]             (none)     -> origin/ghost-button
 - [deleted]             (none)     -> origin/issue/bulk-action-pm-fixes
 - [deleted]             (none)     -> origin/permalinks
 - [deleted]             (none)     -> origin/route-native-class
 - [deleted]             (none)     -> origin/search-result-consistency
 - [deleted]             (none)     -> origin/user-posts-stream-native-class
   62b1b69e8..aa37be332  main                    -> origin/main
 * [new branch]          dev/extend-anonymized-user-imports -> origin/dev/extend-anonymized-user-imports
 * [new branch]          feature/new-topic-bulk-actions-search -> origin/feature/new-topic-bulk-actions-search
 * [new branch]          feature/requires-confirmation-site-settings -> origin/feature/requires-confirmation-site-settings
   b3d6801e8..27c416b55  formtoolkit             -> origin/formtoolkit
   b2b6b4468..d811389e9  loic-update-to-rails-7.1 -> origin/loic-update-to-rails-7.1
 * [new branch]          msg-buidler-modifier-to -> origin/msg-buidler-modifier-to
 * [new branch]          support_s3_inventory_bucket -> origin/support_s3_inventory_bucket
   62b1b69e8..f0539afb0  tests-passed            -> origin/tests-passed
I, [2024-06-04T11:48:56.432243 #1]  INFO -- :
I, [2024-06-04T11:48:56.432496 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout tests-passed
  fi
'
Switched to a new branch 'tests-passed'
I, [2024-06-04T11:48:59.366120 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2024-06-04T11:48:59.366476 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-06-04T11:48:59.401466 #1]  INFO -- :
I, [2024-06-04T11:48:59.401710 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-06-04T11:48:59.411569 #1]  INFO -- :
I, [2024-06-04T11:48:59.411809 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-06-04T11:48:59.421196 #1]  INFO -- :
I, [2024-06-04T11:48:59.421464 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-06-04T11:48:59.431211 #1]  INFO -- :
I, [2024-06-04T11:48:59.431472 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-06-04T11:48:59.441740 #1]  INFO -- :
I, [2024-06-04T11:48:59.441930 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-06-04T11:48:59.450406 #1]  INFO -- :
I, [2024-06-04T11:48:59.459596 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2024-06-04T11:48:59.470366 #1]  INFO -- :
I, [2024-06-04T11:48:59.470576 #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-04T11:48:59.485961 #1]  INFO -- :
I, [2024-06-04T11:48:59.486170 #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-04T11:48:59.500565 #1]  INFO -- :
I, [2024-06-04T11:48:59.500825 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2024-06-04T11:48:59.515699 #1]  INFO -- :
I, [2024-06-04T11:48:59.515880 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-06-04T11:48:59.529804 #1]  INFO -- :
I, [2024-06-04T11:48:59.530020 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2024-06-04T11:48:59.544313 #1]  INFO -- :
I, [2024-06-04T11:48:59.544556 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-06-04T11:48:59.558520 #1]  INFO -- :
I, [2024-06-04T11:48:59.558785 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-06-04T11:48:59.612930 #1]  INFO -- :
I, [2024-06-04T11:48:59.613137 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-06-04T11:48:59.618339 #1]  INFO -- :
I, [2024-06-04T11:48:59.618790 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-06-04T11:48:59.620907 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2024-06-04T11:49:01.149187 #1]  INFO -- :
I, [2024-06-04T11:49:01.149532 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-akismet
Cloning into 'discourse-akismet'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:02.053382 #1]  INFO -- :
I, [2024-06-04T11:49:02.054291 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-follow
Cloning into 'discourse-follow'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:02.875928 #1]  INFO -- :
I, [2024-06-04T11:49:02.876257 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-docs.git
Cloning into 'discourse-docs'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:03.746725 #1]  INFO -- :
I, [2024-06-04T11:49:03.746984 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-yearly-review.git
Cloning into 'discourse-yearly-review'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:04.493026 #1]  INFO -- :
I, [2024-06-04T11:49:04.493284 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-cakeday.git
Cloning into 'discourse-cakeday'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:05.377265 #1]  INFO -- :
I, [2024-06-04T11:49:05.377591 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-user-notes.git
Cloning into 'discourse-user-notes'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:06.132115 #1]  INFO -- :
I, [2024-06-04T11:49:06.132395 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-gamification.git
Cloning into 'discourse-gamification'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:07.018220 #1]  INFO -- :
I, [2024-06-04T11:49:07.018483 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-policy.git
Cloning into 'discourse-policy'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:07.854420 #1]  INFO -- :
I, [2024-06-04T11:49:07.854732 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-calendar.git
Cloning into 'discourse-calendar'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:09.418739 #1]  INFO -- :
I, [2024-06-04T11:49:09.419002 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:10.317825 #1]  INFO -- :
I, [2024-06-04T11:49:10.318076 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-post-voting.git
Cloning into 'discourse-post-voting'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:11.400727 #1]  INFO -- :
I, [2024-06-04T11:49:11.400985 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-subscriptions.git
Cloning into 'discourse-subscriptions'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:12.727324 #1]  INFO -- :
I, [2024-06-04T11:49:12.727596 #1]  INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/discourse-whos-online.git
Cloning into 'discourse-whos-online'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2024-06-04T11:49:13.544560 #1]  INFO -- :
I, [2024-06-04T11:49:13.545268 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T11:49:13.554000 #1]  INFO -- :
I, [2024-06-04T11:49:13.554459 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-06-04T11:49:13.560904 #1]  INFO -- :
I, [2024-06-04T11:49:13.561161 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2024-06-04T11:49:13.568640 #1]  INFO -- :
I, [2024-06-04T11:49:13.569423 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-06-04T11:49:13.570816 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T11:49:13.571997 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T11:49:13.573388 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-06-04T11:49:13.574858 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2024-06-04T11:49:13.575875 #1]  INFO -- : > echo "done configuring web"
I, [2024-06-04T11:49:13.581139 #1]  INFO -- : done configuring web

I, [2024-06-04T11:49:13.582008 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-06-04T11:49:14.366893 #1]  INFO -- :
I, [2024-06-04T11:49:14.367228 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-06-04T11:49:19.054046 #1]  INFO -- :
I, [2024-06-04T11:49:19.055014 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2024-06-04T11:49:19.060801 #1]  INFO -- :
I, [2024-06-04T11:49:19.060998 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
warning " > @discourse/lint-configs@1.3.9" has incorrect peer dependency "ember-template-lint@6.0.0".
warning " > @glint/environment-ember-loose@1.4.0" has unmet peer dependency "@glimmer/component@^1.1.2".
warning " > discourse-markdown-it@1.0.0" has unmet peer dependency "xss@*".
warning "workspace-aggregator-e29f329e-c5ba-4113-8bdb-3525687864df > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-e29f329e-c5ba-4113-8bdb-3525687864df > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-e29f329e-c5ba-4113-8bdb-3525687864df > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-e29f329e-c5ba-4113-8bdb-3525687864df > discourse-plugins > ember-this-fallback@0.4.0" has unmet peer dependency "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-e29f329e-c5ba-4113-8bdb-3525687864df > admin > ember-source > router_js@8.0.3" has unmet peer dependency "rsvp@^4.8.5".
warning "workspace-aggregator-e29f329e-c5ba-4113-8bdb-3525687864df > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
I, [2024-06-04T11:53:58.300344 #1]  INFO -- : yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ ./app/assets/javascripts/run-patch-package && rm -rf app/assets/javascripts/node_modules
patch-package 8.0.0
Applying patches...
babel-plugin-debug-macros@0.3.4 ✔
content-tag@2.0.1 ✔
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 ✔
Done in 265.08s.
yarn cache v1.22.22
success Cleared cache.
Done in 12.51s.

I, [2024-06-04T11:53:58.300907 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2024-06-04T11:53:58.542711 #1]  INFO -- :
I, [2024-06-04T11:53:58.542836 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2024-06-04T11:53:58.802973 #1]  INFO -- : You are replacing the current local value of without, which is currently "test:development"

I, [2024-06-04T11:53:58.803097 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
I, [2024-06-04T11:54:18.266403 #1]  INFO -- : Fetching gem metadata from https://rubygems.org/.........
Fetching ffi 1.17.0 (x86_64-linux-gnu)
Fetching net-imap 0.4.12
Fetching sass-embedded 1.77.4 (x86_64-linux-gnu)
Installing net-imap 0.4.12
Installing ffi 1.17.0 (x86_64-linux-gnu)
Installing sass-embedded 1.77.4 (x86_64-linux-gnu)
Bundle complete! 141 Gemfile dependencies, 174 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`
1 installed gem you directly depend on is looking for funding.
  Run `bundle fund` for details

I, [2024-06-04T11:54:18.267450 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2024-06-04T11:54:28.900810 #1]  INFO -- : 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-docs is already at latest compatible version
discourse-follow is already at latest compatible version
discourse-gamification is already at latest compatible version
discourse-policy is already at latest compatible version
discourse-post-voting is already at latest compatible version
discourse-solved is already at latest compatible version
discourse-subscriptions is already at latest compatible version
discourse-user-notes is already at latest compatible version
discourse-whos-online 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-04T11:54:28.901252 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-04T11:54:28.905890 #1]  INFO -- : > sleep 10
798:C 04 Jun 2024 11:54:28.929 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
798:C 04 Jun 2024 11:54:28.929 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=798, just started
798:C 04 Jun 2024 11:54:28.929 # Configuration loaded
798:M 04 Jun 2024 11:54:28.931 * monotonic clock: POSIX clock_gettime
798:M 04 Jun 2024 11:54:28.932 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
798:M 04 Jun 2024 11:54:28.932 # Failed listening on port 6379 (TCP), aborting.
I, [2024-06-04T11:54:38.914846 #1]  INFO -- :
I, [2024-06-04T11:54:38.915519 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
94:M 04 Jun 2024 11:54:56.713 * 100 changes in 300 seconds. Saving...
94:M 04 Jun 2024 11:54:56.715 * Background saving started by pid 887
887:C 04 Jun 2024 11:54:56.825 * DB saved on disk
887:C 04 Jun 2024 11:54:56.827 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 0 MB
94:M 04 Jun 2024 11:54:56.916 * Background saving terminated with success
I, [2024-06-04T11:55:00.191214 #1]  INFO -- : 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
== 20240603234529 CreateUserPasswords: migrating ==============================
-- create_table(:user_passwords, {:id=>:integer})
   -> 0.0189s
-- add_index(:user_passwords, [:user_id], {:unique=>true, :where=>"password_expired_at IS NULL"})
   -> 0.0040s
-- add_index(:user_passwords, [:user_id, :password_hash], {:unique=>true})
   -> 0.0036s
-- add_index(:user_passwords, [:user_id, :password_expired_at, :password_hash], {:name=>"idx_user_passwords_on_user_id_and_expired_at_and_hash"})
   -> 0.0037s
== 20240603234529 CreateUserPasswords: migrated (0.0318s) =====================


I, [2024-06-04T11:55:00.192095 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build'
...[ConfigLoader]
...[Babel: @ember/render-modifiers > applyPatches]
...[Babel: @embroider/macros > applyPatches]
...[Babel: ember-source > applyPatches]
...[Babel: ember-source > applyPatches]
...[Babel: ember-source > applyPatches]
...[ember.js]
...[Babel: @glimmer/component > applyPatches]
...[Babel: discourse-widget-hbs > applyPatches]
...[Babel: pretty-text > applyPatches]
...[Babel: discourse-common > applyPatches]
...[Babel: ember-tracked-storage-polyfill > applyPatches]
...[Babel: @ember/legacy-built-in-components > applyPatches]
...[Babel: @ember/test-helpers > applyPatches]
...[Babel: @ember/test-waiters > applyPatches]
...[Babel: dialog-holder > applyPatches]
...[Babel: ember-this-fallback > applyPatches]
...[Babel: ember-buffered-proxy > applyPatches]
...[Babel: ember-cache-primitive-polyfill > applyPatches]
...[Babel: ember-load-initializers > applyPatches]
...[Babel: ember-on-resize-modifier > applyPatches]
...[Babel: ember-resize-observer-service > applyPatches]
...[Babel: float-kit > applyPatches]
...[Babel: select-kit > applyPatches]
...[@embroider/compat/app]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[SourceMapConcat]
...[Babel: admin > applyPatches]
...[Babel: admin > applyPatches]
...[Babel: admin > applyPatches]
...[Babel: admin > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
...[TerserWriter]
...[TerserWriter]
...[TerserWriter]
...[Babel: discourse > applyPatches]
...[SourceMapConcat]
...[Babel: discourse > applyPatches]
...[SourceMapConcat]
...[Babel: discourse > applyPatches]
...[TerserWriter]
...[Babel: discourse-plugins > applyPatches]
...[Babel: discourse-plugins > applyPatches]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
94:M 04 Jun 2024 11:59:57.029 * 100 changes in 300 seconds. Saving...
94:M 04 Jun 2024 11:59:57.031 * Background saving started by pid 1023
1023:C 04 Jun 2024 11:59:57.135 * DB saved on disk
1023:C 04 Jun 2024 11:59:57.137 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 0 MB
94:M 04 Jun 2024 11:59:57.235 * Background saving terminated with success
...[TerserWriter]
...[TerserWriter]
...[TerserWriter]
I, [2024-06-04T12:00:32.631944 #1]  INFO -- : yarn run v1.22.22
$ /var/www/discourse/node_modules/.bin/ember build -prod
Building
Environment: production
WARNING: ember-test-selectors: You are using an unsupported ember-cli-babel version. data-test properties are not automatically stripped from your JS code.
building...
cleaning up
cleaning up...
Built project successfully. Stored in "dist/".
File sizes:
 - dist/assets/activate-account.js: 600 B (341 B gzipped)
 - dist/assets/admin.js: 1.14 MB (171.11 kB gzipped)
 - dist/assets/auto-redirect.js: 175 B (158 B gzipped)
 - dist/assets/browser-detect.js: 425 B (298 B gzipped)
 - dist/assets/browser-update.js: 1.51 kB (866 B gzipped)
 - dist/assets/chunk.12e4382a745941410398.d41d8cd9.js: 138.81 kB (26.24 kB gzipped)
 - dist/assets/chunk.18ee6a47931272a9f345.d41d8cd9.js: 208 B (178 B gzipped)
 - dist/assets/chunk.27ecadb81c8a179b4de9.d41d8cd9.js: 12.85 kB (3.12 kB gzipped)
 - dist/assets/chunk.2a0ed518a43c574a7821.d41d8cd9.js: 586 B (333 B gzipped)
 - dist/assets/chunk.2eac490e3e52dc1c20ce.d41d8cd9.js: 16.09 kB (5.43 kB gzipped)
 - dist/assets/chunk.45c0ddcc3e4205b8467a.d41d8cd9.js: 1.33 MB (227.59 kB gzipped)
 - dist/assets/chunk.498f6efd4a59a674b9f1.d41d8cd9.js: 9.02 kB (3.46 kB gzipped)
 - dist/assets/chunk.4dd04c2caef01a96513c.css: 20.97 kB (4.92 kB gzipped)
 - dist/assets/chunk.4dd04c2caef01a96513c.d41d8cd9.js: 586 B (333 B gzipped)
 - dist/assets/chunk.6a517fbbed1f79217a43.d41d8cd9.js: 417 B (218 B gzipped)
 - dist/assets/chunk.7cd67ff884e9b2be994c.css: 70.35 kB (12.4 kB gzipped)
 - dist/assets/chunk.9307108f9a5b58ddd982.d41d8cd9.js: 107.2 kB (26.17 kB gzipped)
 - dist/assets/chunk.9548690d8ef239d47242.d41d8cd9.js: 12.86 MB (1.91 MB gzipped)
 - dist/assets/chunk.c0929b7509d3ab3b8d83.d41d8cd9.js: 313.12 kB (22.73 kB gzipped)
 - dist/assets/chunk.c55c615d8724ee5d3719.d41d8cd9.js: 77.74 kB (22.93 kB gzipped)
 - dist/assets/chunk.cf6c0c7198adc2e079ac.d41d8cd9.js: 4.36 MB (1.06 MB gzipped)
 - dist/assets/chunk.d5574b6f701fd488c637.d41d8cd9.js: 10.07 kB (3.71 kB gzipped)
 - dist/assets/chunk.dfa5135ff08119b18919.d41d8cd9.js: 337.6 kB (94.59 kB gzipped)
 - dist/assets/chunk.eb564c65c9586de5f195.d41d8cd9.js: 928.63 kB (164.12 kB gzipped)
 - dist/assets/discourse.css: 171 B (156 B gzipped)
 - dist/assets/discourse.d41d8cd98f00b204e9800998ecf8427e.css: 0 B
 - dist/assets/embed-application.js: 1.19 kB (574 B gzipped)
 - dist/assets/google-tag-manager.js: 526 B (357 B gzipped)
 - dist/assets/google-universal-analytics-v3.js: 654 B (403 B gzipped)
 - dist/assets/google-universal-analytics-v4.js: 461 B (298 B gzipped)
 - dist/assets/onpopstate-handler.js: 157 B (143 B gzipped)
 - dist/assets/pageview.js: 347 B (255 B gzipped)
 - dist/assets/plugins/automation_admin.js: 140.55 kB (18.19 kB gzipped)
 - dist/assets/plugins/chat.js: 984.61 kB (154.75 kB gzipped)
 - dist/assets/plugins/checklist.js: 3.74 kB (1.73 kB gzipped)
 - dist/assets/plugins/discourse-akismet.js: 21.83 kB (2.6 kB gzipped)
 - dist/assets/plugins/discourse-cakeday.js: 78.72 kB (5.86 kB gzipped)
 - dist/assets/plugins/discourse-calendar.js: 166.15 kB (34.46 kB gzipped)
 - dist/assets/plugins/discourse-details.js: 1.25 kB (614 B gzipped)
 - dist/assets/plugins/discourse-docs.js: 89.62 kB (10.12 kB gzipped)
 - dist/assets/plugins/discourse-follow.js: 52.88 kB (5.82 kB gzipped)
 - dist/assets/plugins/discourse-gamification.js: 68.56 kB (7.91 kB gzipped)
 - dist/assets/plugins/discourse-gamification_admin.js: 25.37 kB (4.3 kB gzipped)
 - dist/assets/plugins/discourse-lazy-videos.js: 7.03 kB (2.38 kB gzipped)
 - dist/assets/plugins/discourse-local-dates.js: 33.37 kB (9.02 kB gzipped)
 - dist/assets/plugins/discourse-policy.js: 30.56 kB (6.37 kB gzipped)
 - dist/assets/plugins/discourse-post-voting.js: 52.97 kB (10.31 kB gzipped)
 - dist/assets/plugins/discourse-presence.js: 11.25 kB (2.66 kB gzipped)
 - dist/assets/plugins/discourse-solved.js: 23.11 kB (4.98 kB gzipped)
 - dist/assets/plugins/discourse-subscriptions.js: 228.29 kB (24.77 kB gzipped)
 - dist/assets/plugins/discourse-user-notes.js: 25.44 kB (4.72 kB gzipped)
 - dist/assets/plugins/discourse-whos-online.js: 19.27 kB (3.52 kB gzipped)
 - dist/assets/plugins/discourse-yearly-review.js: 2 kB (879 B gzipped)
 - dist/assets/plugins/docker_manager_admin.js: 38.25 kB (7.44 kB gzipped)
 - dist/assets/plugins/footnote.js: 2.74 kB (1.19 kB gzipped)
 - dist/assets/plugins/poll.js: 63.39 kB (16.36 kB gzipped)
 - dist/assets/plugins/spoiler-alert.js: 3.27 kB (1.39 kB gzipped)
 - dist/assets/plugins/styleguide.js: 154.83 kB (21.52 kB gzipped)
 - dist/assets/print-page.js: 111 B (125 B gzipped)
 - dist/assets/publish.js: 294 B (212 B gzipped)
 - dist/assets/qunit-custom.css: 6.74 kB (1.89 kB gzipped)
 - dist/assets/qunit.css: 904.32 kB (128.45 kB gzipped)
 - dist/assets/scripts/discourse-boot.js: 390 B (270 B gzipped)
 - dist/assets/scripts/discourse-test-listen-boot.js: 122 B (106 B gzipped)
 - dist/assets/scripts/discourse-test-load-dynamic-js.js: 1.14 kB (601 B gzipped)
 - dist/assets/scripts/module-shims.js: 771 B (326 B gzipped)
 - dist/assets/scripts/start-app.js: 216 B (180 B gzipped)
 - dist/assets/splash-screen.js: 1.17 kB (554 B gzipped)
 - dist/assets/start-discourse.js: 495 B (338 B gzipped)
 - dist/assets/test-i18n.js: 641.54 kB (154.31 kB gzipped)
 - dist/assets/test-site-settings.js: 15.02 kB (5.33 kB gzipped)
 - dist/assets/vendor.ff29780b9fed784cce2d843dcb93a803.js: 448.58 kB (126.05 kB gzipped)
 - dist/javascripts/@json-editor/json-editor/2.10.0/jsoneditor.js: 523.75 kB (99.37 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/ace.js: 371.81 kB (101.2 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/ext-searchbox.js: 11.91 kB (3.58 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/mode-html.js: 60.88 kB (18.33 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/mode-scss.js: 24.03 kB (8.02 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/mode-sql.js: 4.84 kB (1.87 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/mode-yaml.js: 5.09 kB (1.79 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/theme-chaos.js: 3.18 kB (1.03 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/theme-chrome.js: 3.04 kB (1.06 kB gzipped)
 - dist/javascripts/ace.js/1.4.13/worker-html.js: 208.1 kB (47.65 kB gzipped)
 - dist/javascripts/ace/ace.js: 370.75 kB (100.95 kB gzipped)
 - dist/javascripts/ace/ext-searchbox.js: 11.91 kB (3.58 kB gzipped)
 - dist/javascripts/ace/mode-html.js: 60.88 kB (18.33 kB gzipped)
 - dist/javascripts/ace/mode-scss.js: 24.03 kB (8.02 kB gzipped)
 - dist/javascripts/ace/mode-sql.js: 2.21 kB (1.02 kB gzipped)
 - dist/javascripts/ace/mode-yaml.js: 5.09 kB (1.79 kB gzipped)
 - dist/javascripts/ace/theme-chrome.js: 3.04 kB (1.06 kB gzipped)
 - dist/javascripts/ace/worker-html.js: 208.1 kB (47.65 kB gzipped)
 - dist/javascripts/chart.js/3.5.1/chart.min.js: 188.37 kB (65.3 kB gzipped)
 - dist/javascripts/chartjs-plugin-datalabels/2.2.0/chartjs-plugin-datalabels.min.js: 12.94 kB (5.24 kB gzipped)
 - dist/javascripts/count.js: 1.44 kB (636 B gzipped)
 - dist/javascripts/diffhtml/1.0.0-beta.30/diffhtml.min.js: 22.41 kB (8.53 kB gzipped)
 - dist/javascripts/embed-topics.js: 1.34 kB (631 B gzipped)
 - dist/javascripts/embed.js: 2.47 kB (1.01 kB gzipped)
 - dist/javascripts/magnific-popup/1.1.0/jquery.magnific-popup.min.js: 20.22 kB (7.37 kB gzipped)
 - dist/javascripts/media-optimization-worker.js: 5.01 kB (1.74 kB gzipped)
 - dist/javascripts/pikaday/1.8.2/pikaday.js: 42.54 kB (9.67 kB gzipped)
 - dist/javascripts/squoosh/mozjpeg_enc.js: 39.03 kB (10.81 kB gzipped)
 - dist/javascripts/squoosh/squoosh_resize.js: 4.53 kB (1.28 kB gzipped)
Done in 325.40s.

I, [2024-06-04T12:00:32.632524 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'SKIP_EMBER_CLI_COMPILE=1 bundle exec rake themes:update assets:precompile'
Purging temp files
Bundling assets
I, [2024-06-04T12:00:59.316090 #1032]  INFO -- : Writing /var/www/discourse/public/assets/break_string-cc617154cd957804f2f6a1f3bc68258c9cdca3d4b9a322bf777d145fed04790e.js
I, [2024-06-04T12:00:59.339548 #1032]  INFO -- : Writing /var/www/discourse/public/assets/service-worker-4ab99f2bb0bd5662385e93a8a1df960efe2c3da3dec537fb19fe97ca00024f81.js
I, [2024-06-04T12:00:59.352522 #1032]  INFO -- : Writing /var/www/discourse/public/assets/locales/i18n-3b40e842fd72b9bcc74ea83e094c823cd9ca535e4ecc5e78722e6f99d3656137.js
I, [2024-06-04T12:00:59.365105 #1032]  INFO -- : Writing /var/www/discourse/public/assets/scripts/discourse-test-listen-boot-9b14a0fc65c689577e6a428dcfd680205516fe211700a71c7adb5cbcf4df2cc5.js
rake aborted!
Zlib::BufError: buffer error (Zlib::BufError)
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cache/file_store.rb:100:in `<<'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cache/file_store.rb:100:in `set'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cache.rb:212:in `set'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cache.rb:136:in `set'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:243:in `store_asset'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:185:in `load_from_unloaded'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:60:in `block in load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:44:in `load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cached_environment.rb:47:in `load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/bundle.rb:23:in `block in call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/utils.rb:201:in `dfs'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/bundle.rb:24:in `call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/processor_utils.rb:75:in `call_processor'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/processor_utils.rb:56:in `call_processors'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:60:in `block in load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/loader.rb:44:in `load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/cached_environment.rb:47:in `load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/base.rb:66:in `find_asset'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/manifest.rb:134:in `block in find'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/manifest.rb:133:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/manifest.rb:133:in `find'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/sprockets/manifest.rb:186:in `compile'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/task.rb:67:in `block (3 levels) in define'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-3.7.3/lib/rake/sprocketstask.rb:147:in `with_logger'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/task.rb:66:in `block (2 levels) in define'
/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 => assets:precompile
(See full trace by running task with --trace)
I, [2024-06-04T12:01:03.670584 #1]  INFO -- : Checking 'DiscoTOC' for 'default'... up to date
Checking 'Welcome Link Banner' for 'default'... up to date
Checking 'Discourse Atlassian StatusPage' for 'default'... up to date
Checking 'Discord Widget' for 'default'... up to date
Checking 'discourse-reply-template-component' for 'default'... up to date
Checking 'Discourse Docs Card Filter' for 'default'... up to date
Checking 'Account Deletion Request' for 'default'... up to date
Checking 'discourse-profile-custom-link' for 'default'... up to date
Checking 'Guest Gate Theme Component' for 'default'... up to date
Checking 'discourse-gifs' for 'default'... up to date
Checking 'discourse-right-sidebar-blocks' for 'default'... up to date
Downloading MaxMindDB...

I, [2024-06-04T12:01:03.671575 #1]  INFO -- : Terminating async processes
I, [2024-06-04T12:01:03.671784 #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: 32
94:signal-handler (1717502463) Received SIGTERM scheduling shutdown...
I, [2024-06-04T12:01:03.672002 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 94
2024-06-04 12:01:03.672 UTC [32] LOG:  received fast shutdown request
2024-06-04 12:01:03.678 UTC [32] LOG:  aborting any active transactions
2024-06-04 12:01:03.682 UTC [32] LOG:  background worker "logical replication launcher" (PID 47) exited with exit code 1
2024-06-04 12:01:03.686 UTC [42] LOG:  shutting down
94:M 04 Jun 2024 12:01:03.748 # User requested shutdown...
94:M 04 Jun 2024 12:01:03.749 * Saving the final RDB snapshot before exiting.
2024-06-04 12:01:03.780 UTC [32] LOG:  database system is shut down
94:M 04 Jun 2024 12:01:03.827 * DB saved on disk
94:M 04 Jun 2024 12:01:03.828 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'SKIP_EMBER_CLI_COMPILE=1 bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 1030 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"=>"precompile", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'SKIP_EMBER_CLI_COMPILE=1 bundle exec rake themes:update assets:precompile'"]}
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.
991e516cce3a77123cbc96b8d78aca8aeaa19929bc768e34bd1068dfdc1e946e

I don’t think there are currently any errors with those official plugins. :thinking: My initial thought is that including them is just asking too much of your current server resources due to the extra work required versus rebuilding without them.

There is this which sounds like something is filling up:

rake aborted!
Zlib::BufError: buffer error (Zlib::BufError)

I’m not familar with it though, so I may be mistaken.

The permissions issue could also be the problem. I suppose, to test, you could try rebuilding with maybe one or two of those plugins and see if that gets through?

2 Likes

Hmm, that is in the realm of possibility. I’m running Discourse in a virtualized environment on a hypervisor, a Dell PowerEdge R720 server released in March of 2012 and it has reached its end of service life.

I have encountered rebuild errors like this before, however, they were solved temporarily after I replaced the storage disk. After I replaced it, if I were to get a rebuild failure I would reboot the server and then try it again where it would succeed.

Also, rebuilds typically take 10-25 minutes to complete for me, is that normal?

I will begin adding plugins one by one to see which one is causing the issue, and if it can’t handle all the plugins I’ll look into an alternative solution.

Solved the issue. It was the Discourse Subscriptions plugin that was causing the issue. After it was removed, the site began to rebuild normally.

1 Like

Specifically the Subscriptions plugin? I have that on my test site and it seems happy enough. Did you try rebuilding with that as the only plugin? (Though completely understand if you didn’t - rebuilding so many times to test things is a faff :slight_smile:)

Glad you got it working though. :slight_smile:

1 Like

Yeah, I haven’t tried that plugin by itself yet, but we’ll see if anybody else has an issue with it in the future.

Thanks for your help! :+1:

1 Like

I just had a lot of rebuild issues and do have that plug-in installed, I managed through but it took many failed attempts and the doctor was no help, ultimately it made it though but with lengthy pauses and doubt