错误:引导失败

你好。我想安装这个插件,但在执行 /rebuild app 后遇到了内存不足的错误。
我增加了磁盘空间,重启了服务器,然后再次尝试 /rebuild app,但这次我不明白问题出在哪里:

/usr/local/bin/bundle:25:in `<main>'
(运行任务时使用 --trace 可查看完整堆栈跟踪)
I, [2024-03-08T19:22:34.066685 #1]  INFO -- : gem install ruby-openid -v 2.9.2 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed ruby-openid-2.9.2
1 个 gem 已安装
gem install rack-openid -v 1.4.2 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed rack-openid-1.4.2
1 个 gem 已安装
gem install omniauth-openid -v 2.0.1 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed omniauth-openid-2.0.1
1 个 gem 已安装
gem install omniauth-steam -v 1.0.6 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed omniauth-steam-1.0.6
1 个 gem 已安装
gem install omniauth-vkontakte -v 1.7.1 -i /var/www/discourse/plugins/discourse-vk-auth/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed omniauth-vkontakte-1.7.1
1 个 gem 已安装

I, [2024-03-08T19:22:34.067577 #1]  INFO -- : 正在终止异步进程
I, [2024-03-08T19:22:34.067648 #1]  INFO -- : 发送 INT 信号给 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: 42
I, [2024-03-08T19:22:34.067687 #1]  INFO -- : 发送 TERM 信号给 exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111
2024-03-08 19:22:34.068 UTC [42] LOG:  收到快速关机请求
111:signal-handler (1709925754) 收到 SIGTERM,正在调度关机...
2024-03-08 19:22:34.072 UTC [42] LOG:  正在中止任何活动事务
2024-03-08 19:22:34.078 UTC [42] LOG:  后台工作进程“逻辑复制启动器”(PID 51)已退出,退出代码为 1
2024-03-08 19:22:34.078 UTC [46] LOG:  正在关闭
2024-03-08 19:22:34.109 UTC [42] LOG:  数据库系统已关闭
111:M 08 Mar 2024 19:22:34.117 # 用户请求关机...
111:M 08 Mar 2024 19:22:34.118 * 正在退出前保存最终 RDB 快照。
111:M 08 Mar 2024 19:22:34.288 * DB 已保存到磁盘
111:M 08 Mar 2024 19:22:34.290 # Redis 现在已准备好退出,再见...


失败
--------------------
Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle exec rake db:migrate' failed with return #&lt;Process::Status: pid 3378 exit 1&gt;
失败位置:/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
引导失败,退出代码为 1
** 引导失败 ** 请向上滚动查找更早的错误消息,可能不止一个。
./discourse-doctor 可能会帮助诊断问题。
962ee73e2d4c8f902da810010d0bb70d5a784416d3b1ab80bcad7c4ff1351149
root@cv3533865:/var/discourse#

能否提供几行上面的内容?错误似乎被截断了几行。

1 个赞

好的,几分钟。医生已开始

1 个赞

算了。问题出在我想要安装的插件上:GitHub - Gonerdot/hello_plugin
我用 ChatGPT 写了一个简单的插件,因为我自己不懂 ruby,但显然有些地方出了问题。

我不知道 Ruby,但这看起来更像是 Theme component 而不是 #plugin。

2 个赞

是的。它可以是一个主题组件。你只需要一个插件来更改 Ruby 端的东西。请查看 主题开发者快速参考指南 和入门指南。

2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.