FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1631 exit 1>
失败位置:/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
使用参数执行失败 {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
以下是所有日志,谁能帮帮我
/usr/local/bin/pups --stdin
I, [2024-12-26T12:50:52.207241 #1] INFO -- : 从标准输入读取
I, [2024-12-26T12:50:52.223092 #1] INFO -- : 文件 > /etc/service/postgres/run chmod: +x chown:
I, [2024-12-26T12:50:52.226838 #1] INFO -- : 文件 > /etc/service/postgres/log/run chmod: +x chown:
I, [2024-12-26T12:50:52.231373 #1] INFO -- : 文件 > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2024-12-26T12:50:52.234873 #1] INFO -- : 文件 > /root/install_postgres chmod: +x chown:
I, [2024-12-26T12:50:52.238419 #1] INFO -- : 文件 > /root/upgrade_postgres chmod: +x chown:
I, [2024-12-26T12:50:52.240056 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 data_directory = '/var/lib/postgresql/13/main' 替换为 data_directory = '/shared/postgres_data'
I, [2024-12-26T12:50:52.240707 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?listen_addresses *=.*) 替换为 listen_addresses = '*'
I, [2024-12-26T12:50:52.241185 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?synchronous_commit *=.*) 替换为 synchronous_commit = $db_synchronous_commit
I, [2024-12-26T12:50:52.241563 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?shared_buffers *=.*) 替换为 shared_buffers = $db_shared_buffers
I, [2024-12-26T12:50:52.241951 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?work_mem *=.*) 替换为 work_mem = $db_work_mem
I, [2024-12-26T12:50:52.242323 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?default_text_search_config *=.*) 替换为 default_text_search_config = '$db_default_text_search_config'
I, [2024-12-26T12:50:52.242699 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?checkpoint_segments *=.*) 替换为 checkpoint_segments = $db_checkpoint_segments
I, [2024-12-26T12:50:52.243215 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?logging_collector *=.*) 替换为 logging_collector = $db_logging_collector
I, [2024-12-26T12:50:52.243612 #1] INFO -- : 在 /etc/postgresql/13/main/postgresql.conf 中将 (?-mix:#?log_min_duration_statement *=.*) 替换为 log_min_duration_statement = $db_log_min_duration_statement
I, [2024-12-26T12:50:52.244219 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^#local +replication +postgres +peer$) 替换为 local replication postgres peer
I, [2024-12-26T12:50:52.244634 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^host.*all.*all.*127.*$) 替换为 host all all 0.0.0.0/0 md5
I, [2024-12-26T12:50:52.244999 #1] INFO -- : 在 /etc/postgresql/13/main/pg_hba.conf 中将 (?-mix:^host.*all.*all.*::1\/128.*$) 替换为 host all all ::/0 md5
I, [2024-12-26T12:50:52.245528 #1] INFO -- : > if [ -f /root/install_postgres ]; then
/root/install_postgres && rm -f /root/install_postgres
elif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then
socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
fi
I, [2024-12-26T12:50:58.805083 #1] INFO -- : 正在生成区域设置(这可能需要一段时间)...
en_US.UTF-8... 完成
生成完成。
I, [2024-12-26T12:50:58.805434 #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-12-26T12:50:58.812375 #1] INFO -- : 文件 > /usr/local/bin/create_db chmod: +x chown:
I, [2024-12-26T12:50:58.818965 #1] INFO -- : 文件 > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2024-12-26T12:50:58.823036 #1] INFO -- : 文件 > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2024-12-26T12:50:58.823281 #1] INFO -- : > sleep 5
2024-12-26 12:50:58.899 GMT [39] LOG: 跳过缺失的配置文件 "/shared/postgres_data/postgresql.auto.conf"
2024-12-26 12:50:58.903 UTC [39] FATAL: 数据目录 "/shared/postgres_data" 的所有权不正确
2024-12-26 12:50:58.903 UTC [39] HINT: 服务器必须由拥有数据目录的用户启动。
I, [2024-12-26T12:51:03.826002 #1] INFO -- :
I, [2024-12-26T12:51:03.826212 #1] INFO -- : > /usr/local/bin/create_db
createdb: 错误:无法连接到数据库 template1:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
psql: 错误:连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
I, [2024-12-26T12:51:04.472673 #1] INFO -- :
I, [2024-12-26T12:51:04.472805 #1] INFO -- : > echo postgres installed!
I, [2024-12-26T12:51:04.474368 #1] INFO -- : postgres installed!
I, [2024-12-26T12:51:04.479147 #1] INFO -- : 文件 > /etc/service/redis/run chmod: +x chown:
I, [2024-12-26T12:51:04.483492 #1] INFO -- : 文件 > /etc/service/redis/log/run chmod: +x chown:
I, [2024-12-26T12:51:04.487637 #1] INFO -- : 文件 > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2024-12-26T12:51:04.488582 #1] INFO -- : 在 /etc/redis/redis.conf 中将 daemonize yes 替换为
I, [2024-12-26T12:51:04.489262 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^pidfile.*$) 替换为
I, [2024-12-26T12:51:04.489751 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-12-26T12:51:04.493498 #1] INFO -- :
I, [2024-12-26T12:51:04.493959 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^logfile.*$) 替换为 logfile ""
I, [2024-12-26T12:51:04.494534 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^bind .*$) 替换为
I, [2024-12-26T12:51:04.495122 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^dir .*$) 替换为 dir /shared/redis_data
I, [2024-12-26T12:51:04.495772 #1] INFO -- : 在 /etc/redis/redis.conf 中将 (?-mix:^protected-mode yes) 替换为 protected-mode no
I, [2024-12-26T12:51:04.496298 #1] INFO -- : 在 /etc/redis/redis.conf 中将 # io-threads 4 替换为 io-threads $redis_io_threads
I, [2024-12-26T12:51:04.496781 #1] INFO -- : > echo redis installed
I, [2024-12-26T12:51:04.498507 #1] INFO -- : redis installed
I, [2024-12-26T12:51:04.498696 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-12-26T12:51:04.502939 #1] INFO -- : logfile ""
I, [2024-12-26T12:51:04.503105 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-12-26T12:51:04.504381 #1] INFO -- : > sleep 10
87:C 26 Dec 2024 12:51:04.522 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
87:C 26 Dec 2024 12:51:04.522 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=87, just started
87:C 26 Dec 2024 12:51:04.522 # Configuration loaded
87:M 26 Dec 2024 12:51:04.523 * monotonic clock: POSIX clock_gettime
87:M 26 Dec 2024 12:51:04.525 * Running mode=standalone, port=6379.
87:M 26 Dec 2024 12:51:04.525 # Server initialized
87:M 26 Dec 2024 12:51:04.525 # 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.
87:M 26 Dec 2024 12:51:04.526 * Loading RDB produced by version 7.0.7
87:M 26 Dec 2024 12:51:04.526 * RDB age 1152 seconds
87:M 26 Dec 2024 12:51:04.526 * RDB memory usage when created 0.92 Mb
87:M 26 Dec 2024 12:51:04.526 * Done loading RDB, keys loaded: 1, keys expired: 0.
87:M 26 Dec 2024 12:51:04.526 * DB loaded from disk: 0.000 seconds
87:M 26 Dec 2024 12:51:04.526 * Ready to accept connections
I, [2024-12-26T12:51:14.506650 #1] INFO -- :
I, [2024-12-26T12:51:14.507053 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-12-26T12:51:14.512648 #1] INFO -- : thpoff is installed!
I, [2024-12-26T12:51:14.513141 #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-12-26T12:51:14.599767 #1] INFO -- :
I, [2024-12-26T12:51:14.599873 #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-12-26T12:51:14.687292 #1] INFO -- :
I, [2024-12-26T12:51:14.687398 #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-12-26T12:51:14.767418 #1] INFO -- :
I, [2024-12-26T12:51:14.767643 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-12-26T12:51:14.770302 #1] INFO -- :
I, [2024-12-26T12:51:14.772555 #1] INFO -- : 文件 > /etc/cron.d/anacron chmod: chown:
I, [2024-12-26T12:51:14.780855 #1] INFO -- : 文件 > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2024-12-26T12:51:14.784714 #1] INFO -- : 文件 > /etc/service/unicorn/run chmod: +x chown:
I, [2024-12-26T12:51:14.788282 #1] INFO -- : 文件 > /etc/service/nginx/run chmod: +x chown:
I, [2024-12-26T12:51:14.791993 #1] INFO -- : 文件 > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2024-12-26T12:51:14.795425 #1] INFO -- : 文件 > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2024-12-26T12:51:14.795568 #1] INFO -- : 在 /etc/service/unicorn/run 中将 # postgres 替换为 if [ -f /root/install_postgres ]; then
/root/install_postgres
rm /root/install_postgres
fi
sv start postgres || exit 1
I, [2024-12-26T12:51:14.797041 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-12-26T12:51:15.572806 #1] INFO -- :
I, [2024-12-26T12:51:15.572932 #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
'
来自 https://github.com/discourse/discourse
- [已删除] (none) -> origin/0-a-extra-item-classes
- [已删除] (none) -> origin/abstract_autocomplete_textarea
- [已删除] (none) -> origin/add-plugin-wrapper-to-user-profile-avatar
- [已删除] (none) -> origin/better-conflict-handling
- [已删除] (none) -> origin/custom-flag-default-translation
- [已删除] (none) -> origin/dependabot/bundler/sass-embedded-1.81.0
- [已删除] (none) -> origin/dependabot/bundler/webrick-1.9.1
- [已删除] (none) -> origin/dependabot/npm_and_yarn/sass-1.81.0
- [已删除] (none) -> origin/dev/ember-5-12
- [已删除] (none) -> origin/feature/backup-cli-sql-only-option
- [已删除] (none) -> origin/feature/block-ip-and-email-to-bulk-delete
- [已删除] (none) -> origin/fix-undefined-controller
- [已删除] (none) -> origin/fix/hide-profiles
- [已删除] (none) -> origin/mobile-firefox-keyboard-fix
- [已删除] (none) -> origin/relax-emoji-sanitization
- [已删除] (none) -> origin/separate_upload_placeholder
- [已删除] (none) -> origin/update-robots-desc
251333995..bf3279d75 main -> origin/main
* [新分支] 0-a-gjs-comp -> origin/0-a-gjs-comp
* [新分支] 0-a-no-nest -> origin/0-a-no-nest
* [新分支] 0-a-presence -> origin/0-a-presence
* [新分支] add-devenv -> origin/add-devenv
+ 8741e0f07...04bf23c03 br/directory -> origin/br/directory (强制更新)
* [新分支] category-page-mobile -> origin/category-page-mobile
07c91ff5b..1a3925b17 composer_toolbar_improv -> origin/composer_toolbar_improv
* [新分支] dependabot/bundler/mocha-2.7.1 -> origin/dependabot/bundler/mocha-2.7.1
* [新分支] dependabot/bundler/nokogiri-1.18.0 -> origin/dependabot/bundler/nokogiri-1.18.0
* [新分支] dependabot/bundler/sass-embedded-1.83.0 -> origin/dependabot/bundler/sass-embedded-1.83.0
* [新分支] dependabot/npm_and_yarn/ember-cli-6.1.0 -> origin/dependabot/npm_and_yarn/ember-cli-6.1.0
* [新分支] dependabot/npm_and_yarn/highlightjs-4b4c138b28 -> origin/dependabot/npm_and_yarn/highlightjs-4b4c138b28
* [新分支] dependabot/npm_and_yarn/sass-1.83.0 -> origin/dependabot/npm_and_yarn/sass-1.83.0
* [新分支] dev-no-text-on-yields -> origin/dev-no-text-on-yields
* [新分支] dev-update-svg-icon-subset-site-setting-help-text -> origin/dev-update-svg-icon-subset-site-setting-help-text
+ d5f594c07...3759d9cf2 dev/admin-api-ui-guidelines -> origin/dev/admin-api-ui-guidelines (强制更新)
* [新分支] dev/admin-webhooks-ui-guidelines -> origin/dev/admin-webhooks-ui-guidelines
* [新分支] dev/import-support-discourse-reactions-plugin -> origin/dev/import-support-discourse-reactions-plugin
* [新分支] dev/settable-fields -> origin/dev/settable-fields
* [新分支] embedding-ux -> origin/embedding-ux
* [新分支] feature/add-trigger-on-option-to-on-tag-change-automation -> origin/feature/add-trigger-on-option-to-on-tag-change-automation
* [新分支] feature/default-value-to-fields-in-automation -> origin/feature/default-value-to-fields-in-automation
* [新分支] feature/option-for-optional-name-at-signup -> origin/feature/option-for-optional-name-at-signup
+ 2921205f2...7902d7260 feature/wizard-look-and-feel-improvements -> origin/feature/wizard-look-and-feel-improvements (强制更新)
* [新分支] fitzy/org-runners -> origin/fitzy/org-runners
* [新分支] fix-chat -> origin/fix-chat
* [新分支] fix-firefox-android-followup -> origin/fix-firefox-android-followup
* [新分支] fix-is-replying-when-offline -> origin/fix-is-replying-when-offline
* [新分支] fix-open-composer-error -> origin/fix-open-composer-error
* [新分支] hide-login-outlets -> origin/hide-login-outlets
* [新分支] i18n/banned-lint -> origin/i18n/banned-lint
* [新分支] issue/allow-admin-to-use-reserved-usernames -> origin/issue/allow-admin-to-use-reserved-usernames
+ 50c0a90ba...56e8c5245 less_invasive_autocomplete -> origin/less_invasive_autocomplete (强制更新)
* [新分支] login-css -> origin/login-css
+ 8834e37c4...d502d7c37 loic-enable-rspec-rule -> origin/loic-enable-rspec-rule (强制更新)
* [新分支] mt/fix-poll-options -> origin/mt/fix-poll-options
+ 1fc526eb4...9e46da1b7 mt/idb -> origin/mt/idb (强制更新)
+ 72f3215c0...eaded6223 mt/pr4 -> origin/mt/pr4 (强制更新)
* [新分支] multiple-drafts-dropdown -> origin/multiple-drafts-dropdown
* [新分支] plugin-outlet-for-full-page-search-container-and-filter -> origin/plugin-outlet-for-full-page-search-container-and-filter
* [新分支] plugin-outlet-on-full-page-search-container-and-filter -> origin/plugin-outlet-on-full-page-search-container-and-filter
* [新分支] plugin-outlet-on-full-page-search-container-and-filter-1 -> origin/plugin-outlet-on-full-page-search-container-and-filter-1
* [新分支] post-dup-event -> origin/post-dup-event
* [新分支] reapply_refactor -> origin/reapply_refactor
* [新分支] refactor-mobile-coposer-position -> origin/refactor-mobile-coposer-position
* [新分支] refactor-mobile-coposer-position-replace-actions -> origin/refactor-mobile-coposer-position-replace-actions
* [新分支] remove-u-blocked -> origin/remove-u-blocked
* [新分支] renato/pm -> origin/renato/pm
* [新分支] skip_compressing_assets_if_assets_is_already_on_s3 -> origin/skip_compressing_assets_if_assets_is_already_on_s3
* [新分支] speed_up_bundle -> origin/speed_up_bundle
* [新分支] splash-screen-optim -> origin/splash-screen-optim
* [新分支] split-badge-grant -> origin/split-badge-grant
f5b108bf9..bb7b5ec70 stable -> origin/stable
251333995..bf3279d75 tests-passed -> origin/tests-passed
* [新分支] topic-tracking-dmenu -> origin/topic-tracking-dmenu
* [新分支] translations-from-crowdin-main -> origin/translations-from-crowdin-main
* [新分支] translations-from-crowdin-stable -> origin/translations-from-crowdin-stable
* [新分支] user-fields-plugin-outlets-update -> origin/user-fields-plugin-outlets-update
* [新分支] user-menu-plugin-outlet -> origin/user-menu-plugin-outlet
* [新分支] vite -> origin/vite
* [新分支] wip-merged-topics -> origin/wip-merged-topics
t [标签更新] beta -> beta
t [标签更新] latest-release -> latest-release
* [新标签] v3.3.3 -> v3.3.3
* [新标签] v3.4.0.beta3 -> v3.4.0.beta3
I, [2024-12-26T12:51:18.637477 #1] INFO -- :
I, [2024-12-26T12:51:18.637601 #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
'
已切换到新分支 'tests-passed'
I, [2024-12-26T12:51:32.760569 #1] INFO -- : 分支 'tests-passed' 设置为跟踪 'origin/tests-passed'。
I, [2024-12-26T12:51:32.760686 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-12-26T12:51:32.769978 #1] INFO -- :
I, [2024-12-26T12:51:32.770075 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-12-26T12:51:32.772833 #1] INFO -- :
I, [2024-12-26T12:51:32.772915 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-12-26T12:51:32.775404 #1] INFO -- :
I, [2024-12-26T12:51:32.775482 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-12-26T12:51:32.778308 #1] INFO -- :
I, [2024-12-26T12:51:32.778383 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-12-26T12:51:32.780841 #1] INFO -- :
I, [2024-12-26T12:51:32.780926 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-12-26T12:51:32.784451 #1] INFO -- :
I, [2024-12-26T12:51:32.784543 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2024-12-26T12:51:32.787109 #1] INFO -- :
I, [2024-12-26T12:51:32.787191 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-12-26T12:51:32.790727 #1] INFO -- :
I, [2024-12-26T12:51:32.790896 #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-12-26T12:51:32.794789 #1] INFO -- :
I, [2024-12-26T12:51:32.794877 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2024-12-26T12:51:32.798800 #1] INFO -- :
I, [2024-12-26T12:51:32.798885 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-12-26T12:51:32.802599 #1] INFO -- :
I, [2024-12-26T12:51:32.802677 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2024-12-26T12:51:32.806850 #1] INFO -- :
I, [2024-12-26T12:51:32.806935 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-12-26T12:51:32.810393 #1] INFO -- :
I, [2024-12-26T12:51:32.810479 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-12-26T12:51:32.888664 #1] INFO -- :
I, [2024-12-26T12:51:32.888804 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-12-26T12:51:32.890931 #1] INFO -- :
I, [2024-12-26T12:51:32.891136 #1] INFO -- : 在 /etc/service/unicorn/run 中将 # redis 替换为 if [ ! -d /shared/redis_data ]; then
install -d -m 0755 -o redis -g redis /shared/redis_data
fi
sv start redis || exit 1
I, [2024-12-26T12:51:32.891767 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
正在克隆到 'docker_manager'...
I, [2024-12-26T12:51:35.362595 #1] INFO -- :
I, [2024-12-26T12:51:35.362724 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
正在克隆到 'discourse-data-explorer'...
I, [2024-12-26T12:51:37.397513 #1] INFO -- :
I, [2024-12-26T12:51:37.397655 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
正在克隆到 'discourse-solved'...
I, [2024-12-26T12:51:39.372227 #1] INFO -- :
I, [2024-12-26T12:51:39.372361 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-user-notes.git
正在克隆到 'discourse-user-notes'...
I, [2024-12-26T12:51:43.860556 #1] INFO -- :
I, [2024-12-26T12:51:43.860787 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-adplugin.git
正在克隆到 'discourse-adplugin'...
I, [2024-12-26T12:51:45.872895 #1] INFO -- :
I, [2024-12-26T12:51:45.873053 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-policy.git
正在克隆到 'discourse-policy'...
I, [2024-12-26T12:51:47.722593 #1] INFO -- :
I, [2024-12-26T12:51:47.722971 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-12-26T12:51:47.727257 #1] INFO -- :
I, [2024-12-26T12:51:47.727641 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-12-26T12:51:47.729606 #1] INFO -- :
I, [2024-12-26T12:51:47.729712 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2024-12-26T12:51:47.731912 #1] INFO -- :
I, [2024-12-26T12:51:47.732880 #1] INFO -- : 在 /etc/nginx/nginx.conf 中将 pid /run/nginx.pid; 替换为 daemon off;
I, [2024-12-26T12:51:47.733403 #1] INFO -- : 在 /etc/nginx/conf.d/discourse.conf 中将 (?m-ix:upstream[^\}]+\}) 替换为 upstream discourse { server 127.0.0.1:3000; }
I, [2024-12-26T12:51:47.733788 #1] INFO -- : 在 /etc/nginx/conf.d/discourse.conf 中将 (?-mix:server_name.+$) 替换为 server_name _ ;
I, [2024-12-26T12:51:47.734148 #1] INFO -- : 在 /etc/nginx/conf.d/discourse.conf 中将 (?-mix:client_max_body_size.+$) 替换为 client_max_body_size $upload_size ;
I, [2024-12-26T12:51:47.734484 #1] INFO -- : 在 /etc/nginx/nginx.conf 中将 (?-mix:worker_connections.+$) 替换为 worker_connections $nginx_worker_connections ;
I, [2024-12-26T12:51:47.734778 #1] INFO -- : > echo "done configuring web"
I, [2024-12-26T12:51:47.736525 #1] INFO -- : done configuring web
I, [2024-12-26T12:51:47.736920 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-12-26T12:51:48.089770 #1] INFO -- :
I, [2024-12-26T12:51:48.089887 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-12-26T12:51:52.139597 #1] INFO -- :
I, [2024-12-26T12:51:52.140257 #1] INFO -- : > cd /var/www/discourse && if [ -f yarn.lock ]; then
if [ -d node_modules/.pnpm ]; then
echo "This version of Discourse uses yarn, but pnpm node_modules are preset. Cleaning up..."
find ./node_modules ./app/assets/javascripts/*/node_modules -mindepth 1 -maxdepth 1 -exec rm -rf {} +
fi
su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
else
su discourse -c 'CI=1 pnpm install --frozen-lockfile && pnpm prune'
fi
I, [2024-12-26T12:52:29.760119 #1] INFO -- : 范围:所有 18 个工作区项目
锁文件已是最新,跳过解析步骤
进度:已解析 1,已重用 0,已下载 0,已添加 0
包:+232 -97
++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
进度:已解析 232,已重用 164,已下载 0,已添加 2
进度:已解析 232,已重用 164,已下载 0,已添加 29
进度:已解析 232,已重用 164,已下载 0,已添加 45
进度:已解析 232,已重用 164,已下载 14,已添加 59
进度:已解析 232,已重用 164,已下载 19,已添加 71
进度:已解析 232,已重用 164,已下载 29,已添加 79
进度:已解析 232,已重用 164,已下载 46,已添加 94
进度:已解析 232,已重用 164,已下载 59,已添加 106
进度:已解析 232,已重用 164,已下载 60,已添加 109
进度:已解析 232,已重用 164,已下载 65,已添加 111
进度:已解析 232,已重用 164,已下载 67,已添加 113
进度:已解析 232,已重用 164,已下载 67,已添加 116
进度:已解析 232,已重用 164,已下载 67,已添加 122
进度:已解析 232,已重用 164,已下载 67,已添加 123
进度:已解析 232,已重用 164,已下载 68,已添加 125
进度:已解析 232,已重用 164,已下载 68,已添加 126
进度:已解析 232,已重用 164,已下载 68,已添加 127
进度:已解析 232,已重用 164,已下载 68,已添加 127,完成
.../node_modules/@swc/core postinstall$ node postinstall.js
.../esbuild@0.24.2/node_modules/esbuild postinstall$ node install.js
.../node_modules/lefthook postinstall$ node postinstall.js
.../node_modules/@swc/core postinstall: Done
.../node_modules/lefthook postinstall: Done
.../esbuild@0.24.2/node_modules/esbuild postinstall: Done
devDependencies:
- @swc/core 1.9.3
+ @swc/core 1.10.1
- esbuild 0.24.0
+ esbuild 0.24.2
- lefthook 1.8.5
+ lefthook 1.10.0
- lint-to-the-future 2.5.1
+ lint-to-the-future 2.6.1
- lint-to-the-future-ember-template 2.0.0
+ lint-to-the-future-ember-template 3.0.0
- puppeteer-core 23.9.0
+ puppeteer-core 23.11.1
- terser 5.36.0
+ terser 5.37.0
在 34.7s 内完成
锁文件已是最新,跳过解析步骤
已是最新
I, [2024-12-26T12:52:29.760701 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --jobs $(($(nproc) - 1)) --retry 3'
WARN: Gem::Specification.reset 期间存在未解析或模糊的规范:
stringio (>= 0)
此 gem 的可用/已安装版本:
- 3.1.2
- 3.1.1
WARN: 清除未解析的规范。请尝试 'gem cleanup <gem>'
如果这导致问题,请报告错误。
I, [2024-12-26T12:53:29.944202 #1] INFO -- : 正在从 https://rubygems.org/ 获取 gem 元数据........
正在获取 bigdecimal 3.1.9
正在获取 minitest 5.25.4
正在获取 logger 1.6.4
正在安装带有原生扩展的 bigdecimal 3.1.9
正在安装 minitest 5.25.4
正在安装 logger 1.6.4
正在获取 securerandom 0.4.1
正在获取 erubi 1.13.1
正在安装 securerandom 0.4.1
正在获取 useragent 0.16.11
正在安装 erubi 1.13.1
正在获取 timeout 0.4.3
正在安装 useragent 0.16.11
正在获取 openssl 3.3.0
正在安装 timeout 0.4.3
正在获取 csv 3.3.2
正在安装带有原生扩展的 openssl 3.3.0
正在安装 csv 3.3.2
正在获取 discourse-fonts 0.0.12
正在安装 discourse-fonts 0.0.12
正在获取 json 2.9.1
正在安装带有原生扩展的 json 2.9.1
正在获取 io-console 0.8.0
正在安装带有原生扩展的 io-console 0.8.0
正在获取 regexp_parser 2.10.0
正在安装 regexp_parser 2.10.0
正在获取 webrick 1.9.1
正在安装 webrick 1.9.1
正在获取 rexml 3.4.0
正在安装 rexml 3.4.0
正在获取 rack-test 2.2.0
正在安装 rack-test 2.2.0
正在获取 reline 0.6.0
正在安装 reline 0.6.0
正在获取 psych 5.2.2
正在安装带有原生扩展的 psych 5.2.2
正在获取 css_parser 1.21.0
正在安装 css_parser 1.21.0
正在获取 net-imap 0.5.4
正在安装 net-imap 0.5.4
正在获取 rdoc 6.10.0
正在安装 rdoc 6.10.0
正在获取 mini_scheduler 0.18.0
正在安装 mini_scheduler 0.18.0
正在获取 rails-html-sanitizer 1.6.2
正在安装 rails-html-sanitizer 1.6.2
正在获取 faraday 2.12.2
正在安装 faraday 2.12.2
正在获取 irb 1.14.3
正在安装 irb 1.14.3
正在获取 activesupport 7.2.2.1
正在获取 google-protobuf 4.29.2 (x86_64-linux)
正在安装 activesupport 7.2.2.1
正在获取 oj 3.16.8
正在安装 google-protobuf 4.29.2 (x86_64-linux)
正在安装带有原生扩展的 oj 3.16.8
正在获取 activemodel 7.2.2.1
正在安装 activemodel 7.2.2.1
正在获取 actionview 7.2.2.1
正在安装 actionview 7.2.2.1
正在获取 activejob 7.2.2.1
正在安装 activejob 7.2.2.1
正在获取 activerecord 7.2.2.1
正在安装 activerecord 7.2.2.1
正在获取 actionpack 7.2.2.1
正在安装 actionpack 7.2.2.1
正在获取 actionmailer 7.2.2.1
正在安装 actionmailer 7.2.2.1
正在获取 railties 7.2.2.1
正在安装 railties 7.2.2.1
Bundle 完成!146 个 Gemfile 依赖项,现已安装 187 个 gems。
未安装 'test' 和 'development' 组中的 gems。
捆绑的 gems 已安装到 `./vendor/bundle`
您直接依赖的 2 个已安装 gems 正在寻找资助。
运行 `bundle fund` 以获取详细信息
I, [2024-12-26T12:53:29.944330 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle clean'
I, [2024-12-26T12:53:30.602553 #1] INFO -- : 正在移除 actionmailer (7.2.2)
正在移除 actionpack (7.2.2)
正在移除 actionview (7.2.2)
正在移除 activejob (7.2.2)
正在移除 activemodel (7.2.2)
正在移除 activerecord (7.2.2)
正在移除 activesupport (7.2.2)
正在移除 bigdecimal (3.1.8)
正在移除 css_parser (1.19.1)
正在移除 csv (3.3.0)
正在移除 discourse-fonts (0.0.9)
正在移除 erubi (1.13.0)
正在移除 faraday (2.12.1)
正在移除 google-protobuf-4.29.0-x86_64 (linux)
正在移除 io-console (0.7.2)
正在移除 irb (1.14.1)
正在移除 json (2.8.2)
正在移除 logger (1.6.2)
正在移除 mini_scheduler (0.17.0)
正在移除 minitest (5.25.2)
正在移除 net-imap (0.5.1)
正在移除 oj (3.16.7)
正在移除 openssl (3.2.0)
正在移除 psych (5.2.1)
正在移除 rack-test (2.1.0)
正在移除 rails-html-sanitizer (1.6.1)
正在移除 railties (7.2.2)
正在移除 rdoc (6.8.1)
正在移除 regexp_parser (2.9.3)
正在移除 reline (0.5.12)
正在移除 rexml (3.3.9)
正在移除 securerandom (0.4.0)
正在移除 timeout (0.4.2)
正在移除 useragent (0.16.10)
正在移除 webrick (1.9.0)
I, [2024-12-26T12:53:30.602867 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2024-12-26T12:53:34.804140 #1] INFO -- : 正在从 discourse-fonts gem 符号链接字体
discourse-adplugin 已是最新兼容版本
discourse-data-explorer 已是最新兼容版本
discourse-policy 已是最新兼容版本
discourse-solved 已是最新兼容版本
discourse-user-notes 已是最新兼容版本
docker_manager 已是最新兼容版本
I, [2024-12-26T12:53:34.804366 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-12-26T12:53:34.806082 #1] INFO -- : > sleep 10
1628:C 26 Dec 2024 12:53:34.814 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1628:C 26 Dec 2024 12:53:34.814 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=1628, just started
1628:C 26 Dec 2024 12:53:34.814 # Configuration loaded
1628:M 26 Dec 2024 12:53:34.814 * monotonic clock: POSIX clock_gettime
1628:M 26 Dec 2024 12:53:34.815 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
1628:M 26 Dec 2024 12:53:34.815 # Failed listening on port 6379 (TCP), aborting.
I, [2024-12-26T12:53:44.808580 #1] INFO -- :
I, [2024-12-26T12:53:44.809131 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
紧急:初始化站点默认值失败:ActiveRecord::ConnectionNotEstablished 连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录
服务器是否在本地运行并接受该套接字上的连接?
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:69:in `rescue in new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:57:in `new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:982:in `connect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:994:in `reconnect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:662:in `block in reconnect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:661:in `reconnect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:763:in `block in verify!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:754:in `verify!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:771:in `connect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:977:in `block in with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:976:in `with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/quoting.rb:128:in `quote_string'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/quoting.rb:76:in `quote'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/quoting.rb:122:in `quote'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:1099:in `quoted_scope'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:1076:in `data_source_sql'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:60:in `table_exists?'
/var/www/discourse/lib/site_settings/db_provider.rb:58:in `table_exists?'
/var/www/discourse/lib/site_settings/db_provider.rb:14:in `all'
/var/www/discourse/lib/site_settings/defaults_provider.rb:30:in `db_all'
/var/www/discourse/lib/site_setting_extension.rb:360:in `block in refresh!'
/var/www/discourse/lib/site_setting_extension.rb:353:in `synchronize'
/var/www/discourse/lib/site_setting_extension.rb:353:in `refresh!'
/var/www/discourse/config/initializers/005-site_settings.rb:20:in `block (2 levels) in <main>'
/var/www/discourse/lib/freedom_patches/rails_multisite.rb:16:in `block in safe_each_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.1.0/lib/rails_multisite/connection_management/null_instance.rb:49:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.1.0/lib/rails_multisite/connection_management/null_instance.rb:36:in `each_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rails_multisite-6.1.0/lib/rails_multisite/connection_management.rb:21:in `each_connection'
/var/www/discourse/lib/freedom_patches/rails_multisite.rb:9:in `each_active_connection'
/var/www/discourse/lib/freedom_patches/rails_multisite.rb:14:in `safe_each_connection'
/var/www/discourse/config/initializers/005-site_settings.rb:18:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:407:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:407:in `block in make_lambda'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:179:in `block in call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:668:in `block (2 levels) in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:667:in `catch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:667:in `block in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:180:in `call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `block in invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:109:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/reloader.rb:96:in `prepare!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application/finisher.rb:74:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each'
/usr/local/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component'
/usr/local/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component'
/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each'
/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `call'
/usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component'
/usr/local/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each'
/usr/local/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:435:in `initialize!'
/var/www/discourse/config/environment.rb:7:in `<main>'
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:69:in `require'
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:411:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:559:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:241:in `invoke_prerequisites'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:188:in `invoke_task'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block in top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:147:in `run_with_threads'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:132:in `top_level'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:83:in `block in run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:80:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/bin/rake:25:in `load'
/var/www/discourse/vendor/bundle/ruby/3.3.0/bin/rake:25:in `<top (required)>'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `load'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:455:in `exec'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:35:in `dispatch'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:29:in `start'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/exe/bundle:28:in `block in <top (required)>'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/exe/bundle:20:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
rake aborted!
ActiveRecord::ConnectionNotEstablished: 连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录 (ActiveRecord::ConnectionNotEstablished)
服务器是否在本地运行并接受该套接字上的连接?
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:69:in `rescue in new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:57:in `new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:982:in `connect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:994:in `reconnect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:662:in `block in reconnect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:661:in `reconnect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:763:in `block in verify!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:754:in `verify!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:771:in `connect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:977:in `block in with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:976:in `with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/quoting.rb:128:in `quote_string'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/quoting.rb:76:in `quote'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/quoting.rb:122:in `quote'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:1099:in `quoted_scope'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:1076:in `data_source_sql'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:60:in `table_exists?'
/var/www/discourse/config/initializers/006-ensure_login_hint.rb:8:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:407:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:407:in `block in make_lambda'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:179:in `block in call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:668:in `block (2 levels) in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:667:in `catch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:667:in `block in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:180:in `call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `block in invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:109:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/reloader.rb:96:in `prepare!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application/finisher.rb:74:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:435:in `initialize!'
/var/www/discourse/config/environment.rb:7:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:411:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:559:in `block in run_tasks_blocks'
/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>'
由以下原因引起:
PG::ConnectionBad: 连接到套接字 "/var/run/postgresql/.s.PGSQL.5432" 上的服务器失败:没有那个文件或目录 (PG::ConnectionBad)
服务器是否在本地运行并接受该套接字上的连接?
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg/connection.rb:819:in `connect_start'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg/connection.rb:819:in `connect_to_hosts'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg/connection.rb:759:in `new'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/pg-1.5.4/lib/pg.rb:63:in `connect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:58:in `new_client'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:982:in `connect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:994:in `reconnect'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:662:in `block in reconnect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:661:in `reconnect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:763:in `block in verify!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:754:in `verify!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:771:in `connect!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:977:in `block in with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:976:in `with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/quoting.rb:128:in `quote_string'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/quoting.rb:76:in `quote'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/quoting.rb:122:in `quote'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:1099:in `quoted_scope'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:1076:in `data_source_sql'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:60:in `table_exists?'
/var/www/discourse/config/initializers/006-ensure_login_hint.rb:8:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:407:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:407:in `block in make_lambda'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:179:in `block in call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:668:in `block (2 levels) in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:667:in `catch'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:667:in `block in default_terminator'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:180:in `call'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `block in invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:559:in `invoke_before'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/callbacks.rb:109:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.2.1/lib/active_support/reloader.rb:96:in `prepare!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application/finisher.rb:74:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:435:in `initialize!'
/var/www/discourse/config/environment.rb:7:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:411:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.1/lib/rails/application.rb:559:in `block in run_tasks_blocks'
/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>'
任务:TOP => db:migrate => db:load_config => environment
(运行带有 --trace 的任务以查看完整跟踪)
I, [2024-12-26T12:53:47.919752 #1] INFO -- :
I, [2024-12-26T12:53:47.920249 #1] INFO -- : 正在终止异步进程
I, [2024-12-26T12:53:47.920297 #1] INFO -- : 正在向 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 87 发送 TERM
87:signal-handler (1735217627) 收到 SIGTERM,正在安排关闭...
87:M 26 Dec 2024 12:53:47.985 # 用户请求关闭...
87:M 26 Dec 2024 12:53:47.985 * 正在保存退出前的最终 RDB 快照。
87:M 26 Dec 2024 12:53:48.018 * 数据库已保存到磁盘
87:M 26 Dec 2024 12:53:48.018 # Redis 现在准备退出,再见...