编辑帖子时出现“500 error”错误

Hi. I get “500 error” error while editing posts. not all of them have this problem. I tried safe mode on. I add image and error log. I’ve updated to the latest version but I’m still having trouble. can you help me?

for example: Teknolojik Aletlerin Sebep Olduğu Hastalıklar Nelerdir? - Hastalıklar - Sesan Forum

NoMethodError (undefined method `downcase' for nil:NilClass) /var/www/discourse/app/models/global_setting.rb:107:in `s3_bucket_name'

/var/www/discourse/app/models/global_setting.rb:107:in `s3_bucket_name'
/var/www/discourse/app/models/site_setting.rb:157:in `absolute_base_url'
/var/www/discourse/lib/url_helper.rb:60:in `secure_proxy_without_cdn'
/var/www/discourse/lib/url_helper.rb:79:in `cook_url'
/var/www/discourse/app/models/topic_link.rb:180:in `ensure_entry_for'
/var/www/discourse/app/models/topic_link.rb:128:in `block (2 levels) in extract_from'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `block in transaction'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/usr/local/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `transaction'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/transactions.rb:212:in `transaction'
/var/www/discourse/app/models/topic_link.rb:126:in `block in extract_from'
/var/www/discourse/app/models/topic_link.rb:124:in `each'
/var/www/discourse/app/models/topic_link.rb:124:in `extract_from'
/var/www/discourse/lib/post_revisor.rb:207:in `revise!'
/var/www/discourse/app/controllers/topics_controller.rb:369:in `update'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/base.rb:196:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:135:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.1/lib/active_support/notifications.rb:180:in `block in instrument'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.1/lib/active_support/notifications.rb:180:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/base.rb:136:in `process'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.1/lib/action_view/rendering.rb:39:in `process'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.1.4/lib/mini_profiler/profiling_methods.rb:104:in `block in profile_method'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal.rb:191:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal.rb:252:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/routing/route_set.rb:51:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/routing/route_set.rb:33:in `serve'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/journey/router.rb:49:in `block in serve'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/journey/router.rb:32:in `each'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/journey/router.rb:32:in `serve'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/routing/route_set.rb:837:in `call'
/var/www/discourse/lib/middleware/omniauth_bypass_middleware.rb:68:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/tempfile_reaper.rb:15:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/conditional_get.rb:38:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'
/var/www/discourse/lib/content_security_policy/middleware.rb:12:in `call'
/var/www/discourse/lib/middleware/anonymous_cache.rb:318:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:232:in `context'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:226:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/cookies.rb:648:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:101:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/logster-2.5.1/lib/logster/middleware/reporter.rb:43:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.1/lib/rails/rack/logger.rb:38:in `call_app'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.1/lib/rails/rack/logger.rb:28:in `call'
/var/www/discourse/config/initializers/100-quiet_logger.rb:18:in `call'
/var/www/discourse/config/initializers/100-silence_logger.rb:31:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/var/www/discourse/lib/middleware/enforce_hostname.rb:17:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/method_override.rb:22:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_dispatch/middleware/host_authorization.rb:77:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.1.4/lib/mini_profiler/profiler.rb:296:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/message_bus-2.2.3/lib/message_bus/rack/middleware.rb:57:in `call'
/var/www/discourse/lib/middleware/request_tracker.rb:181:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.1/lib/rails/engine.rb:526:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.1/lib/rails/railtie.rb:190:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-6.0.1/lib/rails/railtie.rb:190:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/urlmap.rb:68:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `each'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:605:in `process_client'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:700:in `worker_loop'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:548:in `spawn_missing_workers'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:144:in `start'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/bin/unicorn:128:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `load'
/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `<main>'

根据堆栈跟踪,您的站点设置中似乎存在无效的 URL 条目?

我不太明白你具体是什么意思。

您的站点设置中包含一个无效的 URL,这导致了错误。请仔细检查您修改后的站点设置。

您是否在未填写存储桶名称的情况下启用了 S3 上传功能?这本来不应该发生,但看起来确实如此。

我检查了设置,认为没有问题。但查看日志时,发现了一个新错误,目前我尚无法解决。

我在多个页面上都遇到了同样的问题,这影响了网站的整体使用。

例如:https://medikalbulut.org/t/sgk-medula-web-servisleri-kullanim-kilavuzu/1581

Job exception: undefined method 'downcase' for nil:NilClass

/var/www/discourse/app/models/global_setting.rb:107:in `s3_bucket_name'
/var/www/discourse/app/models/site_setting.rb:157:in `absolute_base_url'
/var/www/discourse/lib/url_helper.rb:60:in `secure_proxy_without_cdn'
/var/www/discourse/lib/url_helper.rb:79:in `cook_url'
/var/www/discourse/app/models/topic_link.rb:180:in `ensure_entry_for'
/var/www/discourse/app/models/topic_link.rb:128:in `block (2 levels) in extract_from'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `block in transaction'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
/usr/local/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:281:in `transaction'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/transactions.rb:212:in `transaction'
/var/www/discourse/app/models/topic_link.rb:126:in `block in extract_from'
/var/www/discourse/app/models/topic_link.rb:124:in `each'
/var/www/discourse/app/models/topic_link.rb:124:in `extract_from'
/var/www/discourse/app/jobs/regular/process_post.rb:53:in `extract_links'
/var/www/discourse/app/jobs/regular/process_post.rb:37:in `execute'
/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rails_multisite-2.0.7/lib/rails_multisite/connection_management.rb:63:in `with_connection'
/var/www/discourse/app/jobs/base.rb:221:in `block in perform'
/var/www/discourse/app/jobs/base.rb:217:in `each'
/var/www/discourse/app/jobs/base.rb:217:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:196:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:164:in `block (2 levels) in process'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/middleware/chain.rb:138:in `block in invoke'
/var/www/discourse/lib/sidekiq/pausable.rb:138:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/middleware/chain.rb:140:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/middleware/chain.rb:143:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:163:in `block in process'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/job_retry.rb:111:in `local'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq.rb:37:in `block in <module:Sidekiq>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:257:in `stats'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/job_logger.rb:13:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/job_retry.rb:78:in `global'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:124:in `block in dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/logger.rb:10:in `with'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/job_logger.rb:33:in `prepare'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:123:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:162:in `process'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:78:in `process_one'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/processor.rb:68:in `run'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/util.rb:15:in `watchdog'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/sidekiq-6.0.3/lib/sidekiq/util.rb:24:in `block in safe_thread'

我仍然遇到这个问题。有些页面没有问题,但其他页面会出现这种情况。有时会出现以下问题,看起来像是 JavaScript 问题。

VM82:1 PUT https://medikalbulut.org/posts/2068 500
(anonymous) @ VM82:1
XMLHttpRequest.send @ includes.js?v=7e0146095db5a4bd0c9ae1b165d69e56:757
send @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:9851
ajax @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:9448
i @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:10221
(anonymous) @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70335
n @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70843
o @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:10235
update @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:16809
update @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:12532
update @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:9961
save @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:10015
(anonymous) @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:14834
g @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70136
k @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70309
C @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70295
t.invoke @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64637
t.flush @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64527
t.flush @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64731
t._end @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:65307
t.end @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64993
t._run @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:65362
t.run @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:65042
h @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:51824
r.success @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:10180
n @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:3305
fireWith @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:3435
l @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:9547
(anonymous) @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:9799
load (async)
send @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:9818
ajax @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:9448
i @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:10221
(anonymous) @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70335
n @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70843
o @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:10235
update @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:13933
(anonymous) @ _application-b00d9e09c75d5d7ecef09d201960762fe0e5d6fe45ad5b02d98085db754b78ac.js:14803
g @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70136
k @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70309
(anonymous) @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:70374
t.invoke @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64637
t.flush @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64527
t.flush @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64731
t._end @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:65307
t.end @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:64993
t._run @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:65362
t._join @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:65336
t.join @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:65053
p @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:51878
(anonymous) @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:44419
r @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:48299
handleEvent @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:44415
handleEvent @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:43352
(anonymous) @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:43742
dispatch @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:5251
v.handle @ _ember_jquery-c2cca4a19fd4c70eabc95b010a6d7643955ec2a2251aeb1d70f625773eebea21.js:5058
Show 42 more frames

以下设置的精确值是什么:

  • s3 存储桶名称
  • 启用 s3 上传
  • 安全媒体

如下所示

image

您是否已配置 CDN?

不,我不使用 CDN。我只使用 Cloudflare。

您是否启用了 Cloudflare 优化?如果是,请尝试将云朵图标从橙色改为灰色。

Cloudflare 优化已关闭。我已将 Cloudflare 设置为灰色模式。我尝试过,但问题依旧,仍然出现 500 错误。

image

您当然可以仅将 Cloudflare 用作 DNS,但根据我的经验,Discourse 与 Cloudflare 代理的结合从未顺利过。我建议避免这样做。您可以使用其他 CDN,有很多选择。

但我觉得问题不在 Cloudflare,因为到目前为止我们从未遇到过任何问题。此外,所有帖子目前也都没有问题,只有一些帖子出现了状况。

@Celil,我最近也遇到了同样的问题——当我尝试提交时:

@@ -1,37 +1,40 @@
-1.	## **Problem**
+#### Problem
 
-	<!-- In the space below this line, describe briefly how the problem appears to a user. -->
+	<!-- In the space below this line, describe briefly how the problem appears to a user. -->
 
-	Installing https://kojipkgs.fedoraproject.org//packages/nextcloud-client/3.12.1/1.fc40/x86_64/nextcloud-client-3.12.1-1.fc40.x86_64.rpm (from https://koji.fedoraproject.org/koji/rpminfo?rpmID=37986784) causes neither the button icons nor context menu entries whatsoever to render:
-	> ![Screenshot_20240327_140512|391x500](upload://zYLry4EObChENbAFMLVWHd0V52u.png)
+Installing [`nextcloud-client-3.12.1-1.fc40`](https://kojipkgs.fedoraproject.org//packages/nextcloud-client/3.12.1/1.fc40/x86_64/nextcloud-client-3.12.1-1.fc40.x86_64.rpm) [^1] causes neither the button icons nor context menu entries whatsoever to render:
+[^1]: [`koji.fedoraproject.org/koji/rpminfo?rpmID=37986784`](https://koji.fedoraproject.org/koji/rpminfo?rpmID=37986784)
 
-	## **Cause**
+> ![`Screenshot_20240327_140512|391x500`](upload://zYLry4EObChENbAFMLVWHd0V52u.png)
 
-	<!-- If we know what causes the issue, describe that in one or two lines, without getting deeply technical. -->
-	<!-- Link to other posts explaining technical details if it seems useful. -->
-
-Not yet known.
+#### Causes
+
+	<!-- If we know what causes the issue, describe that in one or two lines, without getting deeply technical. -->
+	<!-- Link to other posts explaining technical details if it seems useful. -->
+
+Not yet known.
 
-1.	## **Related Issues**
+#### Related Issues
 
-	<!-- Replace both instances of NNNN with the bugzilla bug ID in the Bugzilla line below. -->
-	<!-- If there are more than one related bug, copy to new lines for each. -->
+	<!-- Replace both instances of NNNN with the bugzilla bug ID in the Bugzilla line below. -->
+	<!-- If there are more than one related bug, copy to new lines for each. -->
 
-1.	https://bugzilla.redhat.com/show_bug.cgi?id=2271842#c0
-1.	[quote="Mr. Beedell, Roke Julian Lockhart (RJLB), post:5, topic:109827, username:rokejulianlockhart"]
-	https://github.com/nextcloud/desktop/issues/6594#issue-2213769118
-		[/quote]
+-\t[`bugzilla.redhat.com/show_bug.cgi?id=2271842`](https://bugzilla.redhat.com/show_bug.cgi?id=2271842#c0)
 
-	<!-- If there are upstream trackers covering this issue, you could link them here too. -->
-	<!-- You may also want to link to related discussions on Ask Fedora. -->
-	<!-- And, if there are similar problems that are NOT this one, note that too, with links. -->
+-\t[quote="Mr. Beedell, Roke Julian Lockhart (RJLB), post:5, topic:109827, username:rokejulianlockhart"]
+	[`github.com/nextcloud/desktop/issues/6594`](https://github.com/nextcloud/desktop/issues/6594#issue-2213769118)
+	[/quote]
 
-1.	## **Workarounds**
+	<!-- If there are upstream trackers covering this issue, you could link them here too. -->
+	<!-- You may also want to link to related discussions on Ask Fedora. -->
+	<!-- And, if there are similar problems that are NOT this one, note that too, with links. -->
 
-	<!-- When the issue is solved, change this to "Solution" and mark a reply, below, with that solution. -->
+#### Workarounds
 
-	<!-- If there are steps users can take to mitigate the problem, list those here. -->
+	<!-- When the issue is solved, change this to "Solution" and mark a reply, below, with that solution. -->
 
-None yet.
+
+	<!-- If there are steps users can take to mitigate the problem, list those here. -->
+
+None yet.

…作为 discussion.fedoraproject.org/t/109827/1 的新内容,我观察到:

~~~JSON { "log": { "version": "1.2", "creator": { "name": "Firefox", "version": "150.0a1" }, "browser": { "name": "Firefox", "version": "150.0a1" }, "pages": [ { "id": "page_1", "pageTimings": { "onContentLoad": -1, "onLoad": -1 }, "startedDateTime": "2026-03-17T21:53:04.873+00:00", "title": "https://discussion.fedoraproject.org/t/button-iconography-absent-in-nextcloud-client/109827" } ], "entries": [ { "startedDateTime": "2026-03-17T21:53:04.873+00:00", "request": { "bodySize": 151, "method": "PUT", "url": "https://discussion.fedoraproject.org/t/109827/tags", "httpVersion": "HTTP/2", "queryString": [], "headersSize": 1800, "postData": { "mimeType": "application/x-www-form-urlencoded", "params": [ { "name": "tags[0][id]", "value": "395" }, { "name": "tags[0][name]", "value": "kde" }, { "name": "tags[0][slug]", "value": "kde" }, { "name": "tags[1][id]", "value": "947" }, { "name": "tags[1][name]", "value": "f40" }, { "name": "tags[1][slug]", "value": "f40" } ], "text": "tags%5B0%5D%5Bid%5D=395&tags%5B0%5D%5Bname%5D=kde&tags%5B0%5D%5Bslug%5D=kde&tags%5B1%5D%5Bid%5D=947&tags%5B1%5D%5Bname%5D=f40&tags%5B1%5D%5Bslug%5D=f40" } }, "response": { "status": 500, "statusText": "", "httpVersion": "HTTP/2", "cookies": [], "content": { "mimeType": "text/html; charset=utf-8", "size": 658, "text": "\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n \u003ctitle\u003eOops - Error 500\u003c/title\u003e\n \u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n \u003ch1\u003eOops\u003c/h1\u003e\n \u003cp\u003eThe software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.\u003c/p\u003e\n \u003cp\u003eDetailed information about the error was logged, and an automatic notification generated. We'll take a look at it.\u003c/p\u003e\n \u003cp\u003eNo further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.\u003c/p\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n" }, "redirectURL": "", "headersSize": 526, "bodySize": 1184 }, "cache": {}, "timings": { "blocked": 0, "dns": 0, "connect": 0, "ssl": 0, "send": 0, "wait": 354, "receive": 0 }, "time": 354, "_securityState": "secure", "serverIPAddress": "184.105.99.43", "connection": "443", "pageref": "page_1" }, { "startedDateTime": "2026-03-17T21:53:05.743+00:00", "request": { "bodySize": 103, "method": "POST", "url": "https://discussion.fedoraproject.org/presence/update", "httpVersion": "HTTP/2", "queryString": [], "headersSize": 1843, "postData": { "mimeType": "application/x-www-form-urlencoded", "params": [ { "name": "client_id", "value": "df74222a2ae04283b0bd48d210ba2dab" }, { "name": "present_channels[]", "value": "/discourse-presence/edit/285884" } ], "text": "client_id=df74222a2ae04283b0bd48d210ba2dab&present_channels%5B%5D=%2Fdiscourse-presence%2Fedit%2F285884" } }, "response": { "status": 200, "statusText": "", "httpVersion": "HTTP/2", "content": { "mimeType": "application/json; charset=utf-8", "size": 40, "text": "{\"/discourse-presence/edit/285884\":true}" }, "redirectURL": "", "headersSize": 1468, "bodySize": 1508 }, "cache": {}, "timings": { "blocked": 0, "dns": 0, "connect": 0, "ssl": 0, "send": 0, "wait": 207, "receive": 0 }, "time": 207, "_securityState": "secure", "serverIPAddress": "184.105.99.43", "connection": "443", "pageref": "page_1" } ] } } ~~~

我已从该 HAR 中删除了 \$\.log\.entries\[\d+\]\.request\.headers

我通过删除 kdef40 标签解决了这个问题。因此,问题似乎在于错误消息不够具有描述性。

题外话

然而,所有后续的修改尝试:

@@ -38,3 +38,11 @@ None yet.
 	<!-- If there are steps users can take to mitigate the problem, list those here. -->
 
 None yet.
+
+---
+
+#### 题外话
+
+此帖子应该被标记,但无法被标记:
+
+https://meta.discourse.org/t/i-get-500-error-error-while-editing-post/136500/17?u=rokejulianlockhart
\ No newline at end of file

……都失败了,并出现了我在其他地方遇到的错误: