بعد إعادة بناء التطبيق، لا يمكن تسجيل الدخول بخطأ 500

Thank god the issue has been identified, I was panicking

إعجاب واحد (1)

I had the same issue.
Solved by the thing above.
And of course ./launcher enter app

I have recently upgraded from 2.x.z? To 3.1.4.

Wanted to enable the chat plugin. Voila. ooops…no fun.

Thanks for this topic. I learned how to change Sitesettings. And, we can run again.

إعجابَين (2)

Thanks for investigating, @RGJ, the fix has now been backported to stable.

7 إعجابات

Hello! So, to be sure, can I now enable the chat plugin back again and everything will be ok?

إعجابَين (2)

Correct, the chat plugin should now work again for you on the stable branch.

إعجابَين (2)

How do I update the chat plugin only?
As the docker manager is broken, and I don’t have an easy way to just update the chat-plugin on the admin pages.

Chat is bundled with core, you don’t need to update it separately.

إعجابَين (2)

As showing above, no available new core version. So, how do I find the new stable version mentioned above?

Seems not to be released yet?

Perhaps a CLI rebuild would do it?

إعجابَين (2)

Your screenshot says you’re on 3.1.4 +2 which is the latest stable version and it includes the fix.

إعجابَين (2)

Thank you @RGJ.

So, I activated, and yes, no malfunction. It works. Let’s see if Slack can be out of the game now… :slight_smile:

إعجاب واحد (1)

Hello, I tried to swith from 3.1.4 tag to stable branch but I’m facing this error:

URGENT: Failed to initialize site default: ArgumentError type
/home/matteo/discourse/lib/site_settings/type_supervisor.rb:156:in `to_rb_value'
/home/matteo/discourse/lib/site_setting_extension.rb:247:in `block (2 levels) in refresh!'
/home/matteo/discourse/lib/site_setting_extension.rb:246:in `map'
/home/matteo/discourse/lib/site_setting_extension.rb:246:in `block in refresh!'
/home/matteo/discourse/lib/site_setting_extension.rb:238:in `synchronize'
/home/matteo/discourse/lib/site_setting_extension.rb:238:in `refresh!'
/home/matteo/discourse/config/initializers/005-site_settings.rb:20:in `block (2 levels) in <main>'
/home/matteo/discourse/lib/freedom_patches/rails_multisite.rb:8:in `block in safe_each_connection'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:82:in `with_connection'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:92:in `each_connection'
/home/matteo/discourse/lib/freedom_patches/rails_multisite.rb:6:in `safe_each_connection'
/home/matteo/discourse/config/initializers/005-site_settings.rb:18:in `block in <main>'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:445:in `instance_exec'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:445:in `block in make_lambda'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:686:in `catch'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:686:in `block in default_terminator'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:200:in `block in halting'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:595:in `block in invoke_before'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:595:in `each'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:595:in `invoke_before'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:106:in `run_callbacks'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/reloader.rb:88:in `prepare!'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:32:in `instance_exec'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:32:in `run'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `each'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `call'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:60:in `run_initializers'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/application.rb:372:in `initialize!'
/home/matteo/discourse/config/environment.rb:7:in `<top (required)>'
<internal:/home/matteo/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/matteo/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
config.ru:7:in `block in <main>'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:125:in `instance_eval'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:125:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn.rb:54:in `eval'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn.rb:54:in `block in builder'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:821:in `build_app!'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:140:in `start'
/home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/bin/unicorn:128:in `<top (required)>'
/home/matteo/discourse/bin/unicorn:96:in `load'
/home/matteo/discourse/bin/unicorn:96:in `block in <main>'
/home/matteo/discourse/bin/unicorn:95:in `fork'
/home/matteo/discourse/bin/unicorn:95:in `<main>'
/home/matteo/discourse/lib/site_settings/type_supervisor.rb:156:in `to_rb_value': type (ArgumentError)

      raise ArgumentError.new :type
            ^^^^^^^^^^^^^^^^^^^^^^^
	from /home/matteo/discourse/lib/site_setting_extension.rb:247:in `block (2 levels) in refresh!'
	from /home/matteo/discourse/lib/site_setting_extension.rb:246:in `map'
	from /home/matteo/discourse/lib/site_setting_extension.rb:246:in `block in refresh!'
	from /home/matteo/discourse/lib/site_setting_extension.rb:238:in `synchronize'
	from /home/matteo/discourse/lib/site_setting_extension.rb:238:in `refresh!'
	from /home/matteo/discourse/lib/site_setting_extension.rb:513:in `block in setup_methods'
	from /home/matteo/discourse/config/initializers/100-push-notifications.rb:13:in `block in <main>'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:445:in `instance_exec'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:445:in `block in make_lambda'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:686:in `catch'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:686:in `block in default_terminator'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:200:in `block in halting'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:595:in `block in invoke_before'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:595:in `each'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:595:in `invoke_before'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/callbacks.rb:106:in `run_callbacks'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/reloader.rb:88:in `prepare!'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:32:in `instance_exec'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:32:in `run'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `each'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `call'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/initializable.rb:60:in `run_initializers'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.5.1/lib/rails/application.rb:372:in `initialize!'
	from /home/matteo/discourse/config/environment.rb:7:in `<top (required)>'
	from <internal:/home/matteo/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/home/matteo/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from config.ru:7:in `block in <main>'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:125:in `instance_eval'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rack-2.2.8/lib/rack/builder.rb:125:in `initialize'
	from config.ru:1:in `new'
	from config.ru:1:in `<main>'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn.rb:54:in `eval'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn.rb:54:in `block in builder'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:821:in `build_app!'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb:140:in `start'
	from /home/matteo/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/unicorn-6.1.0/bin/unicorn:128:in `<top (required)>'
	from /home/matteo/discourse/bin/unicorn:96:in `load'
	from /home/matteo/discourse/bin/unicorn:96:in `block in <main>'
	from /home/matteo/discourse/bin/unicorn:95:in `fork'
	from /home/matteo/discourse/bin/unicorn:95:in `<main>'

so I’m not able to use the 3.1.4 (chat issue + undefined method 'keys' for nil:NilClass Application Trace | Framework Trace | Full Trace (eval):76:in '_fast_attributes' app/controllers/application_controller.rb:650:in 'preload_current_user_data' app/controllers/application_controller.rb:445:in 'preload_json' app/controllers/application_controller.rb:421:in 'block in with_resolved_locale' app/controllers/application_controller.rb:421:in 'with_resolved_locale' lib/middleware/omniauth_bypass_middleware.rb:74:in 'call' lib/content_security_policy/middleware.rb:12:in 'call' lib/middleware/gtm_script_nonce_injector.rb:10:in 'call' config/initializers/100-quiet_logger.rb:20:in 'call' config/initializers/100-silence_logger.rb:29:in 'call' lib/middleware/missing_avatars.rb:22:in 'call' lib/middleware/turbo_dev.rb:31:in 'call'nor the stable branch; main is working but is a beta5 version.
Using standard setup on Ubuntu (no Docker)

Someone can help me please?
Thanks a lot

This solved the issue for me for now, as well.

I’m using bitnami/discourse:latest and it’s currently using version 3.1.4 at Commits · discourse/discourse · GitHub

@rsmithlal I’ve got the same error when using the version 3.1.4 of Discourse Bitnami

The fix mentioned above is available only on 3.1.5 and not 3.1.4

The fix provided by @moggleif works as workaround, but we must wait for the new release by Bitnami (version 3.1.5) to fix it

إعجاب واحد (1)

I ended up migrating to the official installation method. It really wasn’t worth the hassle trying to figure out how to work with the Bitnami image.

I only used Bitnami in the first place because it was used as the base image in the Cosmos Server app marketplace.

I’m now running on version 3.3.0-beta1.

4 إعجابات

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