我尝试使用 nx 命令上传主题:
nx theme:upload:watch theme_name
但是,当我运行此命令时,我收到以下错误:
对 https://example.com/admin/themes/import.json 的错误 500
由于此错误,主题上传过程失败。有人能帮我了解可能是什么原因导致此问题以及如何解决吗?
我尝试使用 nx 命令上传主题:
nx theme:upload:watch theme_name
但是,当我运行此命令时,我收到以下错误:
对 https://example.com/admin/themes/import.json 的错误 500
由于此错误,主题上传过程失败。有人能帮我了解可能是什么原因导致此问题以及如何解决吗?
nx?您要找的不是 discourse_theme 吗?
[quote=“saish, post:1, topic:398471”]
https://example.com/admin/themes/import.json 出现 错误 500
由于此错误,主题上传过程失败。有谁能帮我了解可能是什么原因导致了此问题以及如何解决吗?
[/quote]请分享错误日志 (example.com/logs),以便我们能更好地提供帮助。
您是在尝试 Install the Discourse Theme CLI console app to help you build themes 还是 https://meta.discourse.org/t/installing-a-theme-or-theme-component/63682?
不,我已经安装了 Discourse 主题命令行工具 (CLI),我只是在上传它。
而且我运行该命令并非每次都会出现此错误;它只是偶尔发生。
除非存在我不知道的现有问题/错误,否则我们仍然需要查看日志才能知道 500 具体意味着什么
2
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:224:in block in Plugin::In 12 Mar 7:22 am 2 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:253:inblock in Plugin::In
12 Mar 7:22 am
8
ActionView::Template::Error (No route matches {action: “votes_feed”, controller: “list”}) app/views/list/list.erb:136 app/views/list/list.erb:134 lib/topic_list_responder.rb:16:in 'block (2 levels) in
12 Mar 10:31 am
OIDC 调试:请求 POST https://example.com/api/auth/oauth2/token Headers: {“User-Agent” => “Faraday v2.14.1”, “Content-Type” => “application/x-www-form-urlencoded”} Body: {“client_id”
14 Mar 1:15 am
OIDC 调试:响应状态 200 来自 POST https://example.com/api/auth/oauth2/token Headers: {“user-agent” => "Discourse/2026.3.0-latest-37d307e061fe6acfb6a0b76e9808e0fc7a203fdd; +https
14 Mar 1:15 am
OIDC 调试:请求 GET https://example.com/api/auth/oauth2/userinfo Headers: {“User-Agent” => “Faraday v2.14.1”, “Authorization” => “Bearer QhHsKrkVzuYupCFPEvmGPRYKQEQNtqRw”} Body:
14 Mar 1:15 am
OIDC 调试:响应状态 200 来自 GET https://example.com/api/auth/oauth2/userinfo Headers: {“user-agent” => "Discourse/2026.3.0-latest-37d307e061fe6acfb6a0b76e9808e0fc7a203fdd; +htt
14 Mar 1:15 am
17
NoMethodError (undefined method ‘more_topics_url=’ for nil) app/controllers/list_controller.rb:89:in ‘block (2 levels) in class:ListController’ app/controllers/application_controller.rb:443:in 'bloc
14 Mar 1:32 am
6
OIDC 日志:从 https://example.com/api/auth/.well-known/openid-configuration 获取发现文档
14 Mar 2:43 am
7
OIDC 日志:发现文档是 — scopes_supported: - openid - profile - email - offline_access issuer: https://example.com/api/auth authorization_endpoint: https://example.com/ap
14 Mar 2:43 am
3
弃用通知:OmniAuth 策略 ‘oidc’ 在回调 URL 中包含重复的 script_name。很可能是 callback_url 方法将 script_name 与 callback_path 拼接起来了。OmniAuth v2 包含
14 Mar 2:43 am
4
OIDC 日志:从缓存加载发现文档
14 Mar 2:43 am
4
OIDC 日志:发现文档是 — scopes_supported: - openid - profile - email - offline_access issuer: https://example.com/api/auth authorization_endpoint: https://example.com/ap
14 Mar 2:43 am
3
弃用通知:OmniAuth 策略 ‘oidc’ 在回调 URL 中包含重复的 script_name。很可能是 callback_url 方法将 script_name 与 callback_path 拼接起来了。OmniAuth v2 包含
14 Mar 2:43 am
OIDC 调试:请求 POST https://example.com/api/auth/oauth2/token Headers: {“User-Agent” => “Faraday v2.14.1”, “Content-Type” => “application/x-www-form-urlencoded”} Body: {“client_id”
14 Mar 2:43 am
OIDC 调试:响应状态 200 来自 POST https://example.com/api/auth/oauth2/token Headers: {“user-agent” => "Discourse/2026.3.0-latest-37d307e061fe6acfb6a0b76e9808e0fc7a203fdd; +https
14 Mar 2:43 am
OIDC 调试:请求 GET https://example.com/api/auth/oauth2/userinfo Headers: {“User-Agent” => “Faraday v2.14.1”, “Authorization” => “Bearer RPuKTUJEVFePFlsoNSxeWkXUEiQFBAaD”} Body:
14 Mar 2:43 am
OIDC 调试:响应状态 200 来自 GET https://example.com/api/auth/oauth2/userinfo Headers: {“user-agent” => "Discourse/2026.3.0-latest-37d307e061fe6acfb6a0b76e9808e0fc7a203fdd; +htt
14 Mar 2:43 am
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:152:in block in Plugin::In 14 Mar 3:20 am 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:156:inblock in Plugin::In
14 Mar 3:20 am
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:160:in block in Plugin::In 14 Mar 3:20 am 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:164:inblock in Plugin::In
14 Mar 3:20 am
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:173:in block in Plugin::In 14 Mar 3:20 am 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:189:inblock in Plugin::In
14 Mar 3:20 am
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:209:in block in Plugin::In 14 Mar 3:20 am 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:224:inblock in Plugin::In
14 Mar 3:20 am
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:253:in block in Plugin::In 14 Mar 3:20 am MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) 找不到:No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb 14 Mar 8:44 am MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) 找不到:No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb 14 Mar 8:44 am ActionView::Template::Error (No route matches {action: "votes_feed", controller: "list"}) app/views/list/list.erb:136 app/views/list/list.erb:134 lib/topic_list_responder.rb:16:in 'block (2 levels) in 14 Mar 1:52 pm 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:152:inblock in Plugin::In
14 Mar 9:11 pm
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:156:in block in Plugin::In 14 Mar 9:11 pm 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:160:inblock in Plugin::In
14 Mar 9:11 pm
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:164:in block in Plugin::In 14 Mar 9:11 pm 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:173:inblock in Plugin::In
14 Mar 9:11 pm
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:189:in block in Plugin::In 14 Mar 9:11 pm 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:209:inblock in Plugin::In
14 Mar 9:11 pm
弃用通知:add_to_serializer 的 respect_plugin_enabled 参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:224:in block in Plugin::In 14 Mar 9:11 pm 弃用通知:add_to_serializer的respect_plugin_enabled参数应作为关键字参数传递 在 /var/www/discourse/plugins/eas-progressive-user/plugin.rb:253:inblock in Plugin::In
14 Mar 9:11 pm
19
MiniRacer::ScriptTerminatedError (terminated) lib/asset_processor.rb:169:in MiniRacer::Context#call’ lib/asset_processor.rb:169:in block in AssetProcessor.v8_call’ lib/asset_processor.rb:168:in 'Thr
11:58 am
弃用通知:OmniAuth 策略 ‘oidc’ 在回调 URL 中包含重复的 script_name。很可能是 callback_url 方法将 script_name 与 callback_path 拼接起来了。OmniAuth v2 包含
12:30 pm
弃用通知:OmniAuth 策略 ‘oidc’ 在回调 URL 中包含重复的 script_name。很可能是 callback_url 方法将 script_name 与 callback_path 拼接起来了。OmniAuth v2 包含
12:30 pm
5
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) 找不到:No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb
12:30 pm
5
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-ASN.mmdb) 找不到:No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-ASN.mmdb
12:30 pm
这些是日志
请将您的帖子格式化在三个反引号中:
```
此处是日志
```
谢谢!
从您的构建中移除此项以开始。虽然这些只是弃用警告,但数量太多了,我不会相信将该插件作为我构建的一部分。