我的更新过程中出现了错误
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
请帮我修复它。我的更新过程中出现了一个错误
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
请帮我修复它。
I, [2024-02-01T05:20:48.020208 #1] INFO – : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} +
I, [2024-02-01T05:20:56.712671 #1] INFO – :
I, [2024-02-01T05:20:56.723363 #1] INFO – : > cd /var/www/discourse && if [ “stable” != “tests-passed” ]; then
rm -rf app/assets/javascripts/node_modules
fi
I, [2024-02-01T05:20:59.502523 #1] INFO – :
I, [2024-02-01T05:20:59.503242 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘yarn install --frozen-lockfile && yarn cache clean’
^[[D^[[D^[[Dwarning “@discourse/lint-configs > eslint-plugin-ember > ember-eslint-parser@0.2.5” has unmet peer dependency “@typescript-eslint/parser@^6.15.0”.
warning “@discourse/lint-configs > eslint-plugin-ember > ember-eslint-parser@0.2.5” has incorrect peer dependency “typescript@^5.3.3”.
warning " > @glint/environment-ember-loose@1.3.0" has unmet peer dependency “@glimmer/component@^1.1.2”.
warning Resolution field “unset-value@2.0.1” is incompatible with requested version “unset-value@^1.0.0”
warning Pattern [“wrap-ansi@^7.0.0”] is trying to unpack in the same destination “/home/discourse/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e43-integrity/node_modules/wrap-ansi-cjs” as pattern [“wrap-ansi-cjs@npm:wrap-ansi@^7.0.0”]. This could result in non-deterministic behavior, skipping.
warning " > discourse-markdown-it@1.0.0" has unmet peer dependency “xss@*”.
warning “workspace-aggregator-ca265ca6-43f3-4f9e-bc1f-e2610715a50c > discourse > @uppy/aws-s3@3.0.6” has incorrect peer dependency “@uppy/core@^3.1.2”.
warning “workspace-aggregator-ca265ca6-43f3-4f9e-bc1f-e2610715a50c > discourse > @uppy/aws-s3-multipart@3.1.3” has incorrect peer dependency “@uppy/core@^3.1.2”.
warning “workspace-aggregator-ca265ca6-43f3-4f9e-bc1f-e2610715a50c > discourse > @uppy/xhr-upload@3.1.1” has incorrect peer dependency “@uppy/core@^3.1.2”.
warning “workspace-aggregator-ca265ca6-43f3-4f9e-bc1f-e2610715a50c > discourse > ember-router-service-refresh-polyfill@1.1.0” has incorrect peer dependency “ember-source@^3.4 || 4”.
warning “workspace-aggregator-ca265ca6-43f3-4f9e-bc1f-e2610715a50c > discourse-plugins > ember-this-fallback@0.4.0” has unmet peer dependency “ember-source@^3.28.11 || ^4.0.0”.
warning “workspace-aggregator-ca265ca6-43f3-4f9e-bc1f-e2610715a50c > admin > ember-source > router_js@8.0.3” has unmet peer dependency “rsvp@^4.8.5”.
warning “workspace-aggregator-ca265ca6-43f3-4f9e-bc1f-e2610715a50c > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0” has incorrect peer dependency “@uppy/core@^3.2.1”.
I, [2024-02-01T05:23:59.990567 #1] INFO – : yarn install v1.22.19
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
[4/5] Linking dependencies…
[5/5] Building fresh packages…
yarn --cwd app/assets/javascripts (node -e ‘const argv = JSON.parse(process.env.npm_config_argv).original; const passthrough = [--frozen-lockfile, -s].filter(arg => argv.includes(arg)); console.log(passthrough.join( ));’)
yarn install v1.22.19
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
[4/4] Building fresh packages…
$ ./run-patch-package
patch-package 8.0.0
Applying patches…
@ember/test-helpers@2.9.4 ![]()
babel-plugin-debug-macros@0.3.4 ![]()
content-tag@1.2.2 ![]()
ember-cli@5.0.0 ![]()
ember-this-fallback@0.4.0 (1 deprecation-name) ![]()
ember-this-fallback@0.4.0 (2 themes) ![]()
ember-this-fallback@0.4.0 (3 exclude-strict-mode) ![]()
virtual-dom@2.1.1 ![]()
Done in 87.51s.
Done in 164.47s.
yarn cache v1.22.19
success Cleared cache.
Done in 14.71s.
I, [2024-02-01T05:23:59.999517 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle config --local deployment true’
I, [2024-02-01T05:24:00.428628 #1] INFO – :
I, [2024-02-01T05:24:00.429260 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle config --local without “development test”’
I, [2024-02-01T05:24:00.632752 #1] INFO – : 您正在替换当前的本地 without 值,当前值为 “test:development”
I, [2024-02-01T05:24:00.633369 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle install --retry 3 --jobs 4’
I, [2024-02-01T05:24:51.790059 #1] INFO – : 正在从 https://rubygems.org/… 获取 gem 元数据
正在获取 concurrent-ruby 1.2.3
正在获取 minitest 5.21.2
正在获取 bigdecimal 3.1.6
正在获取 cbor 0.5.9.8
正在安装 minitest 5.21.2
正在使用原生扩展安装 bigdecimal 3.1.6
正在使用原生扩展安装 cbor 0.5.9.8
正在安装 concurrent-ruby 1.2.3
正在获取 excon 0.109.0
正在安装 excon 0.109.0
正在获取 fastimage 2.3.0
正在安装 fastimage 2.3.0
正在获取 highline 3.0.1
正在获取 google-protobuf 3.25.2 (x86_64-linux)
正在安装 highline 3.0.1
正在获取 image_size 3.4.0
正在安装 image_size 3.4.0
正在安装 google-protobuf 3.25.2 (x86_64-linux)
正在获取 regexp_parser 2.9.0
正在安装 regexp_parser 2.9.0
正在获取 logster 2.16.0
正在获取 stackprof 0.2.26
正在使用原生扩展安装 stackprof 0.2.26
正在安装 logster 2.16.0
正在获取 nokogiri 1.16.0 (x86_64-linux)
正在安装 nokogiri 1.16.0 (x86_64-linux)
正在获取 rack-protection 3.2.0
正在安装 rack-protection 3.2.0
正在获取 bootsnap 1.17.1
正在使用原生扩展安装 bootsnap 1.17.1
正在获取 net-http 0.4.1
正在安装 net-http 0.4.1
正在获取 sass-embedded 1.70.0 (x86_64-linux-gnu)
正在安装 sass-embedded 1.70.0 (x86_64-linux-gnu)
正在获取 puma 6.4.2
正在使用原生扩展安装 puma 6.4.2
正在获取 rbtrace 0.5.1
正在使用原生扩展安装 rbtrace 0.5.1
正在获取 net-imap 0.4.9.1
正在安装 net-imap 0.4.9.1
正在获取 net-smtp 0.4.0.1
正在安装 net-smtp 0.4.0.1
正在获取 faraday-net_http 3.1.0
正在安装 faraday-net_http 3.1.0
正在获取 activesupport 7.0.8
正在安装 activesupport 7.0.8
正在获取 tzinfo-data 1.2023.4
正在安装 tzinfo-data 1.2023.4
正在获取 sassc-embedded 1.70.0
正在安装 sassc-embedded 1.70.0
正在获取 faraday 2.9.0
正在安装 faraday 2.9.0
正在获取 activemodel 7.0.8
正在安装 activemodel 7.0.8
正在获取 actionview 7.0.8
正在安装 actionview 7.0.8
正在获取 activejob 7.0.8
正在安装 activejob 7.0.8
正在获取 activerecord 7.0.8
正在安装 activerecord 7.0.8
正在获取 actionpack 7.0.8
正在安装 actionpack 7.0.8
正在获取 actionmailer 7.0.8
正在安装 actionmailer 7.0.8
正在获取 railties 7.0.8
正在安装 railties 7.0.8
Bundle 完成!138 个 Gemfile 依赖项,170 个 gems 已安装。
未安装 ‘development’ 和 ‘test’ 组中的 gems。
Bundled gems 已安装到 ./vendor/bundle
I, [2024-02-01T05:24:51.794263 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all’
I, [2024-02-01T05:24:57.793104 #1] INFO – : discourse-adplugin 已是最新兼容版本
discourse-bbcode-color 已是最新兼容版本
discourse-data-explorer 已是最新兼容版本
discourse-policy 已是最新兼容版本
discourse-solved 已是最新兼容版本
discourse-suppress-category-from-latest 已是最新兼容版本
discourse-voting 已是最新兼容版本
docker_manager 已是最新兼容版本
I, [2024-02-01T05:24:57.796053 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’
插件名称为 ‘discourse-topic-voting’,但插件目录名为 ‘discourse-voting’
I, [2024-02-01T05:25:07.163248 #1] INFO – :
I, [2024-02-01T05:25:07.166699 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake themes:update assets:precompile’
插件名称为 ‘discourse-topic-voting’,但插件目录名为 ‘discourse-voting’
Node.js heap_size_limit (487.0) 小于 2048MB。设置 --max-old-space-size=2048。
110:M 01 Feb 2024 05:25:23.049 * 300 秒内 100 次变更。正在保存…
110:M 01 Feb 2024 05:25:23.053 * 后台保存由 pid 3562 启动
3562:C 01 Feb 2024 05:25:23.932 * DB 已保存到磁盘
3562:C 01 Feb 2024 05:25:23.933 * RDB 的 Fork CoW:当前 1 MB,峰值 1 MB,平均 0 MB
110:M 01 Feb 2024 05:25:23.955 * 后台保存成功终止
110:M 01 Feb 2024 06:20:24.614 * 复制积压缓冲区在 3600 秒无连接副本后释放。
CPU 利用率显示低于 10%,并且在此处卡住数小时。我尝试重启实例并重新启动升级,但再次卡在同一个位置。







