저도 동일한 문제를 경험했습니다. 자동 업데이트가 실패했습니다.
"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
그 후 수동 업그레이드를 시도했습니다.
cd /var/discourse
git pull
./launcher rebuild app
그러나 이것도 실패했습니다.
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
.-`` .-```. 업데이트 중 오류가 발생했습니다
```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
수정하는 데 도움을 주실 수 있을까요?