Automatic upgrade from 2.6.0.beta5 to 2.7.0.beta3 failed

Hi,

The one-click browser upgrade from 2.6.0.beta5 to 2.7.0.beta3 failed with the following error:

89591216.5834941 Compressing: browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js
uglifyjs '/var/www/discourse/public/assets/_browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js' -m -c -o '/var/www/discourse/public/assets/browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js' --source-map "base='/var/www/discourse/public/assets',root='/assets',url='/assets/browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js.map'"
Parse error at _browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js:5,6
  let $buo = function () {
      ^
ERROR: Unexpected token: name «$buo», expected: punc «;»
    at JS_Parse_Error.get (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:18:1), <anonymous>:71:23)
    at fatal (/usr/lib/node_modules/uglify-js/bin/uglifyjs:332:27)
    at run (/usr/lib/node_modules/uglify-js/bin/uglifyjs:275:9)
    at Object.<anonymous> (/usr/lib/node_modules/uglify-js/bin/uglifyjs:190:5)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
rake aborted!
Errno::ENOENT: No such file or directory @ rb_file_s_size - /var/www/discourse/public/assets/browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js
/var/www/discourse/lib/tasks/assets.rake:287:in `size'
/var/www/discourse/lib/tasks/assets.rake:287:in `block (4 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:178:in `block in concurrent?'
/var/www/discourse/lib/tasks/assets.rake:278:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:269:in `each'
/var/www/discourse/lib/tasks/assets.rake:269:in `block (2 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:178:in `concurrent?'
/var/www/discourse/lib/tasks/assets.rake:266:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
Docker Manager: FAILED TO UPGRADE
#<RuntimeError: RuntimeError>
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:178:in `run'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:86:in `upgrade'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in <main>'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/commands/runner/runner_command.rb:42:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/command/base.rb:69:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/command.rb:46:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/commands.rb:18:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
bin/rails:17:in `<main>'
Spinning up 1 Unicorn worker(s) that were stopped initially

Any idea what’s the cause, and how to recover? My forum instance is now down.

Running ./launcher rebuild app fixed the issue, but I’m still curious about what the error was about.

1 Like

I experienced the same issue, the automated update failed

"base='/var/www/discourse/public/assets',root='/assets',url='/assets/browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js.map'"
Parse error at _browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js:5,6
  let $buo = function () {
      ^
ERROR: Unexpected token: name «$buo», expected: punc «;»
    at JS_Parse_Error.get (eval at <anonymous> (/usr/lib/node_modules/uglify-js/tools/node.js:18:1), <anonymous>:71:23)
    at fatal (/usr/lib/node_modules/uglify-js/bin/uglifyjs:394:27)
    at run (/usr/lib/node_modules/uglify-js/bin/uglifyjs:343:9)
    at Object.<anonymous> (/usr/lib/node_modules/uglify-js/bin/uglifyjs:259:5)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
rake aborted!
Errno::ENOENT: No such file or directory @ rb_file_s_size - /var/www/discourse/public/assets/browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js
/var/www/discourse/lib/tasks/assets.rake:287:in `size'
/var/www/discourse/lib/tasks/assets.rake:287:in `block (4 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:178:in `block in concurrent?'
/var/www/discourse/lib/tasks/assets.rake:278:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:269:in `each'
/var/www/discourse/lib/tasks/assets.rake:269:in `block (2 levels) in <main>'
/var/www/discourse/lib/tasks/assets.rake:178:in `concurrent?'
/var/www/discourse/lib/tasks/assets.rake:266:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
Docker Manager: FAILED TO UPGRADE
#<RuntimeError: RuntimeError>
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:178:in `run'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:86:in `upgrade'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in <main>'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/commands/runner/runner_command.rb:42:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/command/base.rb:69:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/command.rb:46:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.3/lib/rails/commands.rb:18:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `block in require'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:291:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/dependencies.rb:324:in `require'
bin/rails:17:in `<main>'
Spinning up 2 Unicorn worker(s) that were stopped initially

I then tried a manual upgrade

cd /var/discourse
git pull
./launcher rebuild app

However, this also failed

Stopping old container
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up to date.
I, [2021-02-01T03:57:10.340028 #1]  INFO -- : Loading --stdin
I, [2021-02-01T03:57:10.346332 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2021-02-01T03:57:10.480618 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2021-02-01T03:57:10.480897 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2021-02-01T03:57:10.493477 #1]  INFO -- : 
I, [2021-02-01T03:57:10.497351 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-02-01T03:57:10.505016 #1]  INFO -- : 
I, [2021-02-01T03:57:10.505261 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2021-02-01T03:57:10.511112 #1]  INFO -- : 
I, [2021-02-01T03:57:10.511320 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2021-02-01T03:57:10.514104 #1]  INFO -- : 
I, [2021-02-01T03:57:10.514312 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-02-01T03:57:10.521208 #1]  INFO -- : 
I, [2021-02-01T03:57:10.521409 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/02/01 03:57:10 socat[28] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-02-01T03:57:10.560364 #1]  INFO -- : 
I, [2021-02-01T03:57:10.560579 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-02-01T03:57:10.564042 #1]  INFO -- : 
I, [2021-02-01T03:57:10.564235 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-02-01T03:57:10.567599 #1]  INFO -- : 
I, [2021-02-01T03:57:10.567795 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-02-01T03:57:10.570064 #1]  INFO -- : 
I, [2021-02-01T03:57:10.570257 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-02-01T03:57:10.573775 #1]  INFO -- : 
I, [2021-02-01T03:57:10.584839 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2021-02-01T03:57:10.590204 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2021-02-01T03:57:10.596807 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2021-02-01T03:57:10.603620 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2021-02-01T03:57:10.604071 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-02-01T03:57:12.301881 #1]  INFO -- : 
I, [2021-02-01T03:57:12.302065 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres_data || exit 0
I, [2021-02-01T03:57:12.304909 #1]  INFO -- : 
I, [2021-02-01T03:57:12.305008 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-02-01T03:57:12.362158 #1]  INFO -- : 
I, [2021-02-01T03:57:12.362333 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-02-01T03:57:12.364805 #1]  INFO -- : 
I, [2021-02-01T03:57:12.365012 #1]  INFO -- : > /root/upgrade_postgres
I, [2021-02-01T03:57:12.371992 #1]  INFO -- : 
I, [2021-02-01T03:57:12.372185 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2021-02-01T03:57:12.375016 #1]  INFO -- : 
I, [2021-02-01T03:57:12.378157 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2021-02-01T03:57:12.378818 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2021-02-01T03:57:12.382268 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2021-02-01T03:57:12.384348 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2021-02-01T03:57:12.391671 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2021-02-01T03:57:12.393787 #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, [2021-02-01T03:57:12.399270 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-02-01T03:57:12.406342 #1]  INFO -- : 
I, [2021-02-01T03:57:12.406669 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2021-02-01T03:57:12.407183 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2021-02-01T03:57:12.409314 #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, [2021-02-01T03:57:12.413327 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2021-02-01T03:57:12.413688 #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, [2021-02-01T03:57:12.415634 #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, [2021-02-01T03:57:12.417471 #1]  INFO -- : > sleep 5
2021-02-01 03:57:12.672 UTC [51] LOG:  starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-02-01 03:57:12.673 UTC [51] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-02-01 03:57:12.673 UTC [51] LOG:  listening on IPv6 address "::", port 5432
2021-02-01 03:57:12.694 UTC [51] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-02-01 03:57:12.720 UTC [54] LOG:  database system was shut down at 2021-02-01 03:26:51 UTC
2021-02-01 03:57:12.735 UTC [51] LOG:  database system is ready to accept connections
I, [2021-02-01T03:57:17.421361 #1]  INFO -- : 
I, [2021-02-01T03:57:17.421725 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2021-02-01 03:57:17.626 UTC [64] postgres@postgres ERROR:  database "discourse" already exists
2021-02-01 03:57:17.626 UTC [64] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2021-02-01T03:57:17.627925 #1]  INFO -- : 
I, [2021-02-01T03:57:17.628263 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-02-01 03:57:17.769 UTC [75] postgres@discourse ERROR:  role "discourse" already exists
2021-02-01 03:57:17.769 UTC [75] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
I, [2021-02-01T03:57:17.771307 #1]  INFO -- : 
I, [2021-02-01T03:57:17.771661 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-02-01T03:57:17.843912 #1]  INFO -- : GRANT

I, [2021-02-01T03:57:17.844204 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-02-01T03:57:17.915357 #1]  INFO -- : ALTER SCHEMA

I, [2021-02-01T03:57:17.915670 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2021-02-01T03:57:18.023248 #1]  INFO -- : CREATE EXTENSION

I, [2021-02-01T03:57:18.023527 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2021-02-01T03:57:18.095103 #1]  INFO -- : CREATE EXTENSION

I, [2021-02-01T03:57:18.095354 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  extension "hstore" already exists, skipping
I, [2021-02-01T03:57:18.160897 #1]  INFO -- : CREATE EXTENSION

I, [2021-02-01T03:57:18.161179 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  extension "pg_trgm" already exists, skipping
I, [2021-02-01T03:57:18.224648 #1]  INFO -- : CREATE EXTENSION

I, [2021-02-01T03:57:18.225050 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2021-02-01T03:57:18.231354 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2021-02-01T03:57:18.366309 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2021-02-01T03:57:18.371653 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2021-02-01T03:57:18.371809 #1]  INFO -- : > echo postgres installed!
I, [2021-02-01T03:57:18.374500 #1]  INFO -- : postgres installed!

I, [2021-02-01T03:57:18.381107 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2021-02-01T03:57:18.388295 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2021-02-01T03:57:18.395435 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2021-02-01T03:57:18.398096 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2021-02-01T03:57:18.398835 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2021-02-01T03:57:18.401841 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-02-01T03:57:18.406015 #1]  INFO -- : 
I, [2021-02-01T03:57:18.406386 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2021-02-01T03:57:18.407064 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2021-02-01T03:57:18.414920 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2021-02-01T03:57:18.420668 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2021-02-01T03:57:18.423159 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2021-02-01T03:57:18.425647 #1]  INFO -- : > echo redis installed
I, [2021-02-01T03:57:18.427926 #1]  INFO -- : redis installed

I, [2021-02-01T03:57:18.428115 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-02-01T03:57:18.436816 #1]  INFO -- : logfile ""

I, [2021-02-01T03:57:18.437119 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-02-01T03:57:18.439391 #1]  INFO -- : > sleep 10
168:C 01 Feb 2021 03:57:18.468 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
168:C 01 Feb 2021 03:57:18.468 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=168, just started
168:C 01 Feb 2021 03:57:18.468 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.9 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 168
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

168:M 01 Feb 2021 03:57:18.473 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
168:M 01 Feb 2021 03:57:18.473 # Server initialized
168:M 01 Feb 2021 03:57:18.473 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. 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.
168:M 01 Feb 2021 03:57:18.473 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never').
168:M 01 Feb 2021 03:57:18.473 * Loading RDB produced by version 5.0.9
168:M 01 Feb 2021 03:57:18.473 * RDB age 20 seconds
168:M 01 Feb 2021 03:57:18.473 * RDB memory usage when created 41.11 Mb
168:M 01 Feb 2021 03:57:18.592 * DB loaded from disk: 0.120 seconds
168:M 01 Feb 2021 03:57:18.592 * Ready to accept connections
I, [2021-02-01T03:57:28.442661 #1]  INFO -- : 
I, [2021-02-01T03:57:28.443061 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-02-01T03:57:28.449163 #1]  INFO -- : thpoff is installed!

I, [2021-02-01T03:57:28.449464 #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, [2021-02-01T03:57:28.517226 #1]  INFO -- : 
I, [2021-02-01T03:57:28.517580 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2021-02-01T03:57:28.583575 #1]  INFO -- : 
I, [2021-02-01T03:57:28.583927 #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, [2021-02-01T03:57:28.650993 #1]  INFO -- : 
I, [2021-02-01T03:57:28.651339 #1]  INFO -- : > chown -R discourse /home/discourse
I, [2021-02-01T03:57:29.262853 #1]  INFO -- : 
I, [2021-02-01T03:57:29.263228 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-02-01T03:57:29.267248 #1]  INFO -- : 
I, [2021-02-01T03:57:29.271653 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2021-02-01T03:57:29.282189 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2021-02-01T03:57:29.289964 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2021-02-01T03:57:29.297661 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2021-02-01T03:57:29.305304 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2021-02-01T03:57:29.312099 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2021-02-01T03:57:29.312348 #1]  INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2021-02-01T03:57:29.312801 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-02-01T03:57:29.315933 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
197:C 01 Feb 2021 03:57:29.322 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
197:C 01 Feb 2021 03:57:29.322 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=197, just started
197:C 01 Feb 2021 03:57:29.322 # Configuration loaded
197:M 01 Feb 2021 03:57:29.323 # Could not create server TCP listening socket *:6379: bind: Address already in use
Checking out files: 100% (28296/28296), done.
I, [2021-02-01T03:57:32.940750 #1]  INFO -- : HEAD is now at c4552e9c FIX: Autoplay videos must always be muted (#11533)

I, [2021-02-01T03:57:32.940962 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-02-01T03:57:33.036307 #1]  INFO -- : 
I, [2021-02-01T03:57:33.036509 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2021-02-01T03:57:33.041347 #1]  INFO -- : 
I, [2021-02-01T03:57:33.041496 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-02-01T03:57:33.049862 #1]  INFO -- : 
I, [2021-02-01T03:57:33.050014 #1]  INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
From https://github.com/discourse/discourse
 * branch              tests-passed -> FETCH_HEAD
 * [new branch]        tests-passed -> origin/tests-passed
I, [2021-02-01T03:57:37.375828 #1]  INFO -- : 
I, [2021-02-01T03:57:37.376029 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2021-02-01T03:57:38.213065 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2021-02-01T03:57:38.213272 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-02-01T03:57:38.217755 #1]  INFO -- : 
I, [2021-02-01T03:57:38.217929 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-02-01T03:57:38.222538 #1]  INFO -- : 
I, [2021-02-01T03:57:38.222680 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-02-01T03:57:38.227298 #1]  INFO -- : 
I, [2021-02-01T03:57:38.227490 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-02-01T03:57:38.232282 #1]  INFO -- : 
I, [2021-02-01T03:57:38.232441 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-02-01T03:57:38.238198 #1]  INFO -- : 
I, [2021-02-01T03:57:38.238338 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2021-02-01T03:57:38.243222 #1]  INFO -- : 
I, [2021-02-01T03:57:38.243379 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-02-01T03:57:38.250598 #1]  INFO -- : 
I, [2021-02-01T03:57:38.250751 #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, [2021-02-01T03:57:38.258022 #1]  INFO -- : 
I, [2021-02-01T03:57:38.258180 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2021-02-01T03:57:38.265657 #1]  INFO -- : 
I, [2021-02-01T03:57:38.265817 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-02-01T03:57:38.272929 #1]  INFO -- : 
I, [2021-02-01T03:57:38.273098 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2021-02-01T03:57:38.280603 #1]  INFO -- : 
I, [2021-02-01T03:57:38.280749 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-02-01T03:57:38.287851 #1]  INFO -- : 
I, [2021-02-01T03:57:38.288015 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-02-01T03:57:40.953579 #1]  INFO -- : 
I, [2021-02-01T03:57:40.953785 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-02-01T03:57:40.966001 #1]  INFO -- : 
I, [2021-02-01T03:57:40.966297 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2021-02-01T03:57:40.967215 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2021-02-01T03:57:43.285760 #1]  INFO -- : 
I, [2021-02-01T03:57:43.285907 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-tagging.git
Cloning into 'discourse-tagging'...
I, [2021-02-01T03:57:44.377074 #1]  INFO -- : 
I, [2021-02-01T03:57:44.377269 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2021-02-01T03:57:45.676621 #1]  INFO -- : 
I, [2021-02-01T03:57:45.676797 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-oauth2-basic.git
Cloning into 'discourse-oauth2-basic'...
I, [2021-02-01T03:57:46.756584 #1]  INFO -- : 
I, [2021-02-01T03:57:46.756793 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
Cloning into 'discourse-akismet'...
I, [2021-02-01T03:57:47.976350 #1]  INFO -- : 
I, [2021-02-01T03:57:47.976542 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-staff-notes.git
Cloning into 'discourse-staff-notes'...
I, [2021-02-01T03:57:49.131320 #1]  INFO -- : 
I, [2021-02-01T03:57:49.131785 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-02-01T03:57:49.136261 #1]  INFO -- : 
I, [2021-02-01T03:57:49.136424 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-02-01T03:57:49.140052 #1]  INFO -- : 
I, [2021-02-01T03:57:49.140113 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2021-02-01T03:57:49.143934 #1]  INFO -- : 
I, [2021-02-01T03:57:49.144786 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2021-02-01T03:57:49.145074 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2021-02-01T03:57:49.145309 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2021-02-01T03:57:49.150035 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2021-02-01T03:57:49.151963 #1]  INFO -- : > echo "done configuring web"
I, [2021-02-01T03:57:49.154586 #1]  INFO -- : done configuring web

I, [2021-02-01T03:57:49.154917 #1]  INFO -- : > cd /var/www/discourse && gem update bundler
I, [2021-02-01T03:57:54.061149 #1]  INFO -- : Updating installed gems
Updating bundler
Successfully installed bundler-2.2.7
Gems updated: bundler

I, [2021-02-01T03:57:54.061343 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2021-02-01T03:57:58.171416 #1]  INFO -- : 
I, [2021-02-01T03:57:58.171731 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'test development'`, and stop using this flag
Your bundle is locked to msgpack (1.4.1), but that version could not be found in
any of the sources listed in your Gemfile. If you haven't changed sources, that
means the author of msgpack (1.4.1) has removed it. You'll need to update your
bundle to a version other than msgpack (1.4.1) that hasn't been removed in order
to install.
I, [2021-02-01T03:58:11.750041 #1]  INFO -- : Running `bundle install --deployment --jobs 4 --retry 3 --verbose --without "test" "development"` with bundler 2.2.7
Frozen, using resolution from the lockfile
The definition is missing ["rake-13.0.3", "concurrent-ruby-1.1.8", "i18n-1.8.7", "minitest-5.14.3", "racc-1.5.2", "nokogiri-1.11.1-x86_64-linux", "loofah-2.9.0", "msgpack-1.4.1", "bootsnap-1.6.0", "chunky_png-1.4.0", "css_parser-1.8.0", "thor-1.1.0", "faraday-net_http-1.0.1", "ruby2_keywords-0.0.4", "faraday-1.3.0", "fastimage-2.2.2", "ffi-1.14.2", "json-2.5.1", "logster-2.9.5", "sidekiq-6.1.3", "mini_sql-1.0.1", "mini_suffix-0.3.2", "oauth-0.5.5", "oj-3.11.2", "omniauth-oauth2-1.7.1", "omniauth-oauth-1.2.0", "sanitize-5.2.3", "onebox-2.2.2", "puma-5.2.0", "rack-mini-profiler-2.3.1", "rqrcode_core-0.2.0", "rqrcode-1.2.0", "unicorn-5.8.0"]
HTTP GET https://index.rubygems.org/versions
HTTP 206 Partial Content https://index.rubygems.org/versions
HTTP GET https://index.rubygems.org/versions
HTTP 200 OK https://index.rubygems.org/versions
Fetching gem metadata from https://rubygems.org/
Looking up gems ["rake", "concurrent-ruby", "i18n", "minitest", "thread_safe", "tzinfo", "zeitwerk", "activesupport", "builder", "erubi", "racc", "nokogiri", "rails-dom-testing", "crass", "loofah", "rails-html-sanitizer", "actionview", "rack", "rack-test", "actionpack", "globalid", "activejob", "mini_mime", "mail", "actionmailer", "actionview_precompiler", "activemodel", "active_model_serializers", "activerecord", "public_suffix", "addressable", "aws-eventstream", "aws-partitions", "aws-sigv4", "jmespath", "aws-sdk-core", "aws-sdk-kms", "aws-sdk-s3", "aws-sdk-sns", "ember-source", "execjs", "barber", "msgpack", "bootsnap", "byebug", "cbor", "chunky_png", "coderay", "colored2", "connection_pool", "openssl-signature_algorithm", "cose", "cppjieba_rb", "css_parser", "diffy", "ember-data-source", "sprockets", "ember-handlebars-template", "method_source", "thor", "railties", "jquery-rails", "discourse-ember-rails", "discourse-ember-source", "discourse-fonts", "exifr", "fspath", "image_size", "in_threads", "progress", "discourse_image_optim", "email_reply_trimmer", "excon", "faraday-net_http", "multipart-post", "ruby2_keywords", "faraday", "fast_blank", "fast_xs", "fastimage", "ffi", "gc_tracer", "guess_html_encoding", "hashie", "highline", "hkdf", "htmlentities", "http_accept_language", "json", "jwt", "kgio", "libv8", "request_store", "lograge", "logstash-event", "logstash-logger", "logster", "lru_redux", "lz4-ruby", "maxminddb", "memory_profiler", "message_bus", "mini_racer", "redis", "sidekiq", "mini_scheduler", "mini_sql", "mini_suffix", "multi_json", "multi_xml", "mustache", "nio4r", "nokogumbo", "oauth", "oauth2", "oj", "omniauth", "omniauth-oauth2", "omniauth-facebook", "omniauth-github", "omniauth-google-oauth2", "omniauth-oauth", "omniauth-twitter", "sanitize", "onebox", "optimist", "pg", "pry", "pry-byebug", "pry-rails", "puma", "r2", "rack-mini-profiler", "rack-protection", "rails_failover", "rails_multisite", "raindrops", "rbtrace", "rchardet", "redis-namespace", "rinku", "rotp", "rqrcode_core", "rqrcode", "rtlit", "ruby-readability", "rubyzip", "sassc", "sprockets-rails", "tilt", "sassc-rails", "seed-fu", "sshkey", "stackprof", "uglifier", "unf_ext", "unf", "unicorn", "webpush", "xorcist"]
HTTP GET https://index.rubygems.org/info/racc
HTTP GET https://index.rubygems.org/info/loofah
HTTP 200 OK https://index.rubygems.org/info/racc
HTTP GET https://index.rubygems.org/info/i18n
HTTP GET https://index.rubygems.org/info/activesupport
HTTP 206 Partial Content https://index.rubygems.org/info/i18n
HTTP GET https://index.rubygems.org/info/activerecord
HTTP GET https://index.rubygems.org/info/nokogiri
HTTP GET https://index.rubygems.org/info/actionview
HTTP 206 Partial Content https://index.rubygems.org/info/loofah
HTTP GET https://index.rubygems.org/info/activemodel
HTTP GET https://index.rubygems.org/info/activejob
HTTP 206 Partial Content https://index.rubygems.org/info/activerecord
HTTP GET https://index.rubygems.org/info/actionpack
HTTP GET https://index.rubygems.org/info/tzinfo
HTTP 206 Partial Content https://index.rubygems.org/info/activemodel
HTTP GET https://index.rubygems.org/info/aws-sdk-s3
HTTP GET https://index.rubygems.org/info/minitest
HTTP GET https://index.rubygems.org/info/actionmailer
HTTP GET https://index.rubygems.org/info/aws-sdk-kms
HTTP GET https://index.rubygems.org/info/aws-partitions
HTTP 206 Partial Content https://index.rubygems.org/info/activejob
HTTP GET https://index.rubygems.org/info/concurrent-ruby
HTTP GET https://index.rubygems.org/info/aws-sdk-sns
HTTP GET https://index.rubygems.org/info/msgpack
HTTP 206 Partial Content https://index.rubygems.org/info/activesupport
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-s3
HTTP 206 Partial Content https://index.rubygems.org/info/nokogiri
HTTP GET https://index.rubygems.org/info/aws-sdk-core
HTTP 206 Partial Content https://index.rubygems.org/info/actionview
HTTP 206 Partial Content https://index.rubygems.org/info/minitest
HTTP 206 Partial Content https://index.rubygems.org/info/concurrent-ruby
HTTP GET https://index.rubygems.org/info/bootsnap
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-kms
HTTP 206 Partial Content https://index.rubygems.org/info/aws-partitions
HTTP 206 Partial Content https://index.rubygems.org/info/actionpack
HTTP 206 Partial Content https://index.rubygems.org/info/tzinfo
HTTP GET https://index.rubygems.org/info/chunky_png
HTTP 206 Partial Content https://index.rubygems.org/info/actionmailer
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-core
HTTP 206 Partial Content https://index.rubygems.org/info/aws-sdk-sns
HTTP 206 Partial Content https://index.rubygems.org/info/chunky_png
HTTP 206 Partial Content https://index.rubygems.org/info/msgpack
HTTP GET https://index.rubygems.org/info/css_parser
HTTP GET https://index.rubygems.org/info/faraday-net_http
HTTP GET https://index.rubygems.org/info/thor
HTTP GET https://index.rubygems.org/info/railties
HTTP 200 OK https://index.rubygems.org/info/faraday-net_http
HTTP 206 Partial Content https://index.rubygems.org/info/bootsnap
HTTP 206 Partial Content https://index.rubygems.org/info/thor
HTTP 206 Partial Content https://index.rubygems.org/info/railties
HTTP GET https://index.rubygems.org/info/ruby2_keywords
HTTP 206 Partial Content https://index.rubygems.org/info/css_parser
HTTP GET https://index.rubygems.org/info/faraday
HTTP GET https://index.rubygems.org/info/logster
HTTP GET https://index.rubygems.org/info/fastimage
HTTP 206 Partial Content https://index.rubygems.org/info/ruby2_keywords
HTTP 206 Partial Content https://index.rubygems.org/info/faraday
HTTP GET https://index.rubygems.org/info/oauth
HTTP GET https://index.rubygems.org/info/json
HTTP GET https://index.rubygems.org/info/mini_suffix
HTTP GET https://index.rubygems.org/info/sidekiq
HTTP 206 Partial Content https://index.rubygems.org/info/json
HTTP GET https://index.rubygems.org/info/omniauth
HTTP GET https://index.rubygems.org/info/oj
HTTP GET https://index.rubygems.org/info/mini_sql
HTTP GET https://index.rubygems.org/info/omniauth-oauth
HTTP GET https://index.rubygems.org/info/omniauth-oauth2
HTTP GET https://index.rubygems.org/info/onebox
HTTP 206 Partial Content https://index.rubygems.org/info/oj
HTTP 206 Partial Content https://index.rubygems.org/info/sidekiq
HTTP 206 Partial Content https://index.rubygems.org/info/omniauth-oauth2
HTTP GET https://index.rubygems.org/info/omniauth-github
HTTP GET https://index.rubygems.org/info/sanitize
HTTP GET https://index.rubygems.org/info/puma
HTTP 206 Partial Content https://index.rubygems.org/info/puma
HTTP GET https://index.rubygems.org/info/rqrcode_core
HTTP 206 Partial Content https://index.rubygems.org/info/omniauth
HTTP GET https://index.rubygems.org/info/rack-mini-profiler
HTTP GET https://index.rubygems.org/info/rqrcode
HTTP GET https://index.rubygems.org/info/unicorn
HTTP 206 Partial Content https://index.rubygems.org/info/rqrcode
HTTP 206 Partial Content https://index.rubygems.org/info/logster
HTTP 206 Partial Content https://index.rubygems.org/info/fastimage
HTTP 206 Partial Content https://index.rubygems.org/info/oauth
HTTP 206 Partial Content https://index.rubygems.org/info/mini_suffix
HTTP 206 Partial Content https://index.rubygems.org/info/omniauth-oauth
HTTP 206 Partial Content https://index.rubygems.org/info/mini_sql
HTTP 206 Partial Content https://index.rubygems.org/info/omniauth-github
HTTP 206 Partial Content https://index.rubygems.org/info/onebox
HTTP 206 Partial Content https://index.rubygems.org/info/sanitize
HTTP 206 Partial Content https://index.rubygems.org/info/rqrcode_core
HTTP 206 Partial Content https://index.rubygems.org/info/rack-mini-profiler
HTTP 206 Partial Content https://index.rubygems.org/info/unicorn
Looking up gems ["rails-deprecated_sanitizer", "atomic", "mime-types", "treetop", "tlsmail", "rspec", "jsonapi", "case_transform", "jsonapi-renderer", "json_pure", "ember-template-compiler-source", "handlebars-source", "columnize", "debugger-linecache", "slop", "rb-readline", "hike", "ruby_parser", "arel", "activerecord-deprecated_finders", "activemodel-globalid", "rails", "bcrypt-ruby", "hoe", "weakling", "mini_portile", "mini_portile2", "pkg-config", "memcache-client", "rb-appscript", "xattr", "ffi-xattr", "functional-ruby", "ref", "rake-compiler", "erubis", "text-format", "jamespath", "http-2", "rack-mount", "rack-cache", "journey", "termios", "stud", "eventmachine", "thin", "faraday-middleware", "httpauth", "snappy", "rack-ssl", "rdoc", "win32console", "yard", "spoon", "pry-doc", "escape_utils", "trollop", "base32", "listen", "sass", "bundler", "therubyracer", "bigdecimal", "celluloid", "compass", "sprockets-sass", "sinatra", "slim", "oa-core", "oa-oauth", "oa-openid", "oa-basic", "oa-enterprise", "oa-more", "ruby-hmac", "moneta", "opengraph_parser", "verbal_expressions", "hexpress", "pdf-reader", "hpricot"]
HTTP GET https://index.rubygems.org/info/rails
HTTP GET https://index.rubygems.org/info/json_pure
HTTP 206 Partial Content https://index.rubygems.org/info/rails
HTTP GET https://index.rubygems.org/info/ruby_parser
HTTP 206 Partial Content https://index.rubygems.org/info/json_pure
HTTP 206 Partial Content https://index.rubygems.org/info/ruby_parser
HTTP GET https://index.rubygems.org/info/hoe
HTTP GET https://index.rubygems.org/info/bundler
HTTP GET https://index.rubygems.org/info/snappy
HTTP 206 Partial Content https://index.rubygems.org/info/hoe
HTTP 206 Partial Content https://index.rubygems.org/info/bundler
HTTP GET https://index.rubygems.org/info/listen
HTTP GET https://index.rubygems.org/info/pdf-reader
HTTP GET https://index.rubygems.org/info/http-2
HTTP 206 Partial Content https://index.rubygems.org/info/snappy
HTTP GET https://index.rubygems.org/info/yard
HTTP 206 Partial Content https://index.rubygems.org/info/listen
HTTP 206 Partial Content https://index.rubygems.org/info/http-2
HTTP 206 Partial Content https://index.rubygems.org/info/yard
HTTP 206 Partial Content https://index.rubygems.org/info/pdf-reader
Looking up gems ["facets", "polyglot", "rspec-core", "rspec-expectations", "rspec-mocks", "ruby_core_source", "debugger-ruby_core_source", "bcrypt", "jsonapi-parser", "multimap", "metriks", "mime-types-data", "daemons", "text-hyphen", "ZenTest", "RubyInline", "restclient", "rest-client", "abstract", "net-ldap", "rubyntlm", "pyu-ruby-sasl", "uuid", "XMLCanonicalizer", "temple", "sass-listen", "curses", "haml", "fssm", "compass-core", "compass-import-once", "rb-fsevent", "rb-inotify", "mongrel", "backports", "mustermann", "rack-openid", "ruby-openid-apps-discovery", "timers", "facter", "celluloid-essentials", "celluloid-extras", "celluloid-fsm", "celluloid-pool", "celluloid-supervision", "dotenv", "nenv", "rspec-logsplit", "sprockets-helpers", "spruz", "activeresource", "actionwebservice", "actioncable", "activestorage", "actionmailbox", "actiontext", "ParseTree", "sexp_processor", "rubyforge", "gemcutter", "snappy-jars", "rb-fchange", "rb-kqueue", "celluloid-io", "ruby_dep", "Ascii85", "ruby-rc4", "hashery", "afm", "ttfunk"]
HTTP GET https://index.rubygems.org/info/rspec-expectations
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-expectations
HTTP GET https://index.rubygems.org/info/rspec-mocks
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-mocks
HTTP GET https://index.rubygems.org/info/backports
HTTP GET https://index.rubygems.org/info/rubyntlm
HTTP GET https://index.rubygems.org/info/rspec-core
HTTP GET https://index.rubygems.org/info/facter
HTTP 206 Partial Content https://index.rubygems.org/info/backports
HTTP GET https://index.rubygems.org/info/actiontext
HTTP 206 Partial Content https://index.rubygems.org/info/facter
HTTP 206 Partial Content https://index.rubygems.org/info/rubyntlm
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-core
HTTP GET https://index.rubygems.org/info/actioncable
HTTP GET https://index.rubygems.org/info/sexp_processor
HTTP 206 Partial Content https://index.rubygems.org/info/actiontext
HTTP GET https://index.rubygems.org/info/activestorage
HTTP 206 Partial Content https://index.rubygems.org/info/actioncable
HTTP 206 Partial Content https://index.rubygems.org/info/sexp_processor
HTTP GET https://index.rubygems.org/info/actionmailbox
HTTP GET https://index.rubygems.org/info/ttfunk
HTTP 206 Partial Content https://index.rubygems.org/info/activestorage
HTTP 206 Partial Content https://index.rubygems.org/info/actionmailbox
HTTP 206 Partial Content https://index.rubygems.org/info/ttfunk
Looking up gems ["archive-tar-minitar", "netrc", "http-cookie", "http-accept", "hitimes", "rbtree", "faraday_middleware", "yajl-ruby", "avl_tree", "macaddr", "cgi_multipart_eof_fix", "fastthread", "gem_plugin", "ruby-openid", "coveralls", "rubocop", "dotenv-deployment", "tool", "log4r", "rails-observers", "activemodel-serializers-xml", "celluloid-gems", "SexpProcessor", "win32-api", "net-scp", "blankslate", "diff-lcs", "rspec-support", "coffee-rails", "em-hiredis", "faye-websocket", "websocket-driver", "CFPropertyList", "sys-admin", "win32-dir", "windows-api", "windows-pr", "win32-security", "hocon", "marcel", "mimemagic"]
HTTP GET https://index.rubygems.org/info/rspec-support
HTTP GET https://index.rubygems.org/info/rbtree
HTTP GET https://index.rubygems.org/info/rubocop
HTTP GET https://index.rubygems.org/info/sys-admin
HTTP 206 Partial Content https://index.rubygems.org/info/rspec-support
HTTP 206 Partial Content https://index.rubygems.org/info/rbtree
HTTP 206 Partial Content https://index.rubygems.org/info/rubocop
HTTP 206 Partial Content https://index.rubygems.org/info/sys-admin
Looking up gems ["systemu", "ruby-yadis", "minitar", "minitar-cli", "domain_name", "sqlite3", "configuration", "mkrf", "libxml-ruby", "colorize", "simplecov", "term-ansicolor", "tins", "test-unit", "net-ssh", "roauth", "ffi-win32-extensions", "websocket-extensions", "coffee-script", "hiredis", "rainbow", "parser", "powerpack", "ruby-progressbar", "astrolabe", "unicode-display_width", "parallel", "jaro_winkler", "psych", "rexml", "rubocop-ast", "regexp_parser"]
HTTP GET https://index.rubygems.org/info/test-unit
HTTP GET https://index.rubygems.org/info/tins
HTTP GET https://index.rubygems.org/info/ruby-progressbar
HTTP GET https://index.rubygems.org/info/regexp_parser
HTTP GET https://index.rubygems.org/info/unicode-display_width
HTTP GET https://index.rubygems.org/info/simplecov
HTTP GET https://index.rubygems.org/info/parser
HTTP 206 Partial Content https://index.rubygems.org/info/tins
HTTP 206 Partial Content https://index.rubygems.org/info/ruby-progressbar
HTTP 206 Partial Content https://index.rubygems.org/info/test-unit
HTTP GET https://index.rubygems.org/info/psych
HTTP 206 Partial Content https://index.rubygems.org/info/unicode-display_width
HTTP 206 Partial Content https://index.rubygems.org/info/simplecov
HTTP GET https://index.rubygems.org/info/rubocop-ast
HTTP 206 Partial Content https://index.rubygems.org/info/regexp_parser
HTTP 206 Partial Content https://index.rubygems.org/info/parser
HTTP 206 Partial Content https://index.rubygems.org/info/rubocop-ast
HTTP 206 Partial Content https://index.rubygems.org/info/psych
Looking up gems ["needle", "jruby-pageant", "bcrypt_pbkdf", "rbnacl", "rbnacl-libsodium", "coffee-script-source", "powerbar", "simplecov-html", "docile", "lockfile", "simplecov_json_formatter", "sync", "power_assert", "ast", "strscan", "jar-dependencies"]
HTTP GET https://index.rubygems.org/info/power_assert
HTTP GET https://index.rubygems.org/info/bcrypt_pbkdf
HTTP GET https://index.rubygems.org/info/docile
HTTP GET https://index.rubygems.org/info/ast
HTTP 206 Partial Content https://index.rubygems.org/info/power_assert
HTTP 206 Partial Content https://index.rubygems.org/info/bcrypt_pbkdf
HTTP 206 Partial Content https://index.rubygems.org/info/docile
HTTP 206 Partial Content https://index.rubygems.org/info/ast
Looking up gems ["ansi", "ruby-maven", "pattern-match"]
Looking up gems ["maven-tools", "ruby-maven-libs"]
Looking up gems ["virtus"]
Looking up gems ["descendants_tracker", "axiom-types", "coercible", "equalizer"]
Looking up gems ["ice_nine", "adamantium"]
Looking up gems ["memoizable"]
Bundler::GemNotFound: Your bundle is locked to msgpack (1.4.1), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of msgpack (1.4.1) has removed it. You'll need to update your bundle to a version other than msgpack (1.4.1) that hasn't been removed in order to install.
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/definition.rb:180:in `rescue in specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/definition.rb:174:in `specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/definition.rb:163:in `resolve_remotely!'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/installer.rb:289:in `resolve_if_needed'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/installer.rb:83:in `block in run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/process_lock.rb:12:in `block in lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/process_lock.rb:9:in `open'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/process_lock.rb:9:in `lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/installer.rb:72:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/installer.rb:24:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/cli/install.rb:64:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/cli.rb:259:in `block in install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/settings.rb:115:in `temporary'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/cli.rb:258:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/cli.rb:30:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/cli.rb:24:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/exe/bundle:49:in `block in <top (required)>'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/exe/bundle:37:in `<top (required)>'
  /usr/local/bin/bundle:23:in `load'
  /usr/local/bin/bundle:23:in `<main>'

I, [2021-02-01T03:58:11.750542 #1]  INFO -- : Terminating async processes
I, [2021-02-01T03:58:11.750621 #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: 51
I, [2021-02-01T03:58:11.750764 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 168
2021-02-01 03:58:11.750 UTC [51] LOG:  received fast shutdown request
168:signal-handler (1612151891) Received SIGTERM scheduling shutdown...
2021-02-01 03:58:11.758 UTC [51] LOG:  aborting any active transactions
2021-02-01 03:58:11.760 UTC [51] LOG:  background worker "logical replication launcher" (PID 60) exited with exit code 1
2021-02-01 03:58:11.760 UTC [55] LOG:  shutting down
168:M 01 Feb 2021 03:58:11.797 # User requested shutdown...
168:M 01 Feb 2021 03:58:11.797 * Saving the final RDB snapshot before exiting.
2021-02-01 03:58:11.856 UTC [51] LOG:  database system is shut down
168:M 01 Feb 2021 03:58:13.745 * DB saved on disk
168:M 01 Feb 2021 03:58:13.745 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development' failed with return #<Process::Status: pid 392 exit 7>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
eb0b52e906b32d9975663e5c4ea8fcd101c0ea3a8bd481fb7a2a70fe79116fc6
** 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.
openener@h79-143-80-210:/var/discourse$ 

The error seems to be

createdb: error: database creation failed: ERROR: database "discourse" already exists

Any ideas how this could be fixed? My site is currently down. It was working great before running the web based update :grimacing:

It seems like the database creation error I’ve experianced is similar to this post below. It’s worrying the only way out of this was to rebuild from a backup?

Success! I managed to get my site up and running by disabling all the plugins

#          - git clone https://github.com/discourse/docker_manager.git
#          - git clone https://github.com/discourse/discourse-tagging.git
#          - git clone https://github.com/discourse/discourse-solved.git
#          - git clone https://github.com/discourse/discourse-oauth2-basic.git
#          - git clone https://github.com/discourse/discourse-akismet.git
#          - git clone https://github.com/discourse/discourse-staff-notes.git

Then rebuilding

It’s strange this caused the issue since I think I’m only running official plugins. I’ve yet to figure out which plugin caused the issue. That can wait until tomorrow, I need sleep now :sleeping:

1 Like

No that is not the reason.

The problem is

The author of msgpack yanked it, so @tgxworld fixed this problem via

5 Likes

Thanks, that’s good to hear the issue has been fixed.

So I should be able to re-enable my plugins and rebuild again? Presumably I need to wait for a new docker hub discourse base image to be released that includes this fix which could be a few days?

Yes. The plugins thing was a complete red herring.

We download latest code when you rebuild, no need to wait.

3 Likes

Thanks, all sorted now.

Re-enabled plugins, rebuild and now everything is back up and running the way it was.

Thanks for your help :+1:

1 Like