500 Internal Server Error on Post create, my user account only

Hi there, not sure if this is the correct area to ask this, but wondering if someone can help me. I am an admin on my server and I can do admin things, but I can’t seem to create topics or reply to comments. Always get an internal server error.

Here’s info log of the error on my most recent attempt:

RuntimeError (A gateway connection is necessary to call this method! You'll have to do it inside any event (e.g. `ready`) or after `bot.run :async`.)
lib/post_creator.rb:609:in `update_user_counts'
lib/post_creator.rb:214:in `block in create'
lib/post_creator.rb:408:in `block (2 levels) in transaction'
lib/post_creator.rb:407:in `block in transaction'
lib/distributed_mutex.rb:33:in `block in synchronize'
lib/distributed_mutex.rb:29:in `synchronize'
lib/distributed_mutex.rb:29:in `synchronize'
lib/distributed_mutex.rb:14:in `synchronize'
lib/post_creator.rb:406:in `transaction'
lib/post_creator.rb:204:in `create'
lib/new_post_manager.rb:281:in `perform_create_post'
lib/new_post_manager.rb:219:in `perform'
app/controllers/posts_controller.rb:180:in `create'
app/controllers/application_controller.rb:395:in `block in with_resolved_locale'
app/controllers/application_controller.rb:395:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:355:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:177:in `call'

And a trace:

discordrb (3.3.0) lib/discordrb/bot.rb:673:in `gateway_check'
discordrb (3.3.0) lib/discordrb/bot.rb:156:in `servers'
plugins/discourse-discord-sync/lib/utils.rb:72:in `sync_user'
plugins/discourse-discord-sync/plugin.rb:42:in `block (3 levels) in activate!'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:427:in `instance_exec'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:427:in `block in make_lambda'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:235:in `block in halting_and_conditional'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:516:in `block in invoke_after'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:516:in `each'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:516:in `invoke_after'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:131:in `block in run_callbacks'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:137:in `run_callbacks'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:824:in `_run_save_callbacks'
activerecord (6.1.3.2) lib/active_record/callbacks.rb:457:in `create_or_update'
activerecord (6.1.3.2) lib/active_record/timestamp.rb:126:in `create_or_update'
activerecord (6.1.3.2) lib/active_record/persistence.rb:474:in `save'
activerecord (6.1.3.2) lib/active_record/validations.rb:47:in `save'
activerecord (6.1.3.2) lib/active_record/transactions.rb:298:in `block in save'
activerecord (6.1.3.2) lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/database_statements.rb:318:in `transaction'
activerecord (6.1.3.2) lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
activerecord (6.1.3.2) lib/active_record/transactions.rb:298:in `save'
activerecord (6.1.3.2) lib/active_record/suppressor.rb:44:in `save'
activerecord (6.1.3.2) lib/active_record/persistence.rb:628:in `block in update'
activerecord (6.1.3.2) lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/database_statements.rb:318:in `transaction'
activerecord (6.1.3.2) lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
activerecord (6.1.3.2) lib/active_record/persistence.rb:626:in `update'
lib/post_creator.rb:609:in `update_user_counts'
lib/post_creator.rb:214:in `block in create'
lib/post_creator.rb:408:in `block (2 levels) in transaction'
activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/transaction.rb:310:in `block in within_new_transaction'
activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/transaction.rb:308:in `within_new_transaction'
activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
activerecord (6.1.3.2) lib/active_record/transactions.rb:209:in `transaction'
lib/post_creator.rb:407:in `block in transaction'
lib/distributed_mutex.rb:33:in `block in synchronize'
lib/distributed_mutex.rb:29:in `synchronize'
lib/distributed_mutex.rb:29:in `synchronize'
lib/distributed_mutex.rb:14:in `synchronize'
lib/post_creator.rb:406:in `transaction'
lib/post_creator.rb:204:in `create'
lib/new_post_manager.rb:281:in `perform_create_post'
lib/new_post_manager.rb:219:in `perform'
app/controllers/posts_controller.rb:180:in `create'
actionpack (6.1.3.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (6.1.3.2) lib/abstract_controller/base.rb:228:in `process_action'
actionpack (6.1.3.2) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (6.1.3.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:117:in `block in run_callbacks'
app/controllers/application_controller.rb:395:in `block in with_resolved_locale'
i18n (1.8.10) lib/i18n.rb:314:in `with_locale'
app/controllers/application_controller.rb:395:in `with_resolved_locale'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:126:in `block in run_callbacks'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:137:in `run_callbacks'
actionpack (6.1.3.2) lib/abstract_controller/callbacks.rb:41:in `process_action'
actionpack (6.1.3.2) lib/action_controller/metal/rescue.rb:22:in `process_action'
actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `block in instrument'
activesupport (6.1.3.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `instrument'
actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:33:in `process_action'
actionpack (6.1.3.2) lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
activerecord (6.1.3.2) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
actionpack (6.1.3.2) lib/abstract_controller/base.rb:165:in `process'
actionview (6.1.3.2) lib/action_view/rendering.rb:39:in `process'
rack-mini-profiler (2.3.2) lib/mini_profiler/profiling_methods.rb:85:in `block in profile_method'
actionpack (6.1.3.2) lib/action_controller/metal.rb:190:in `dispatch'
actionpack (6.1.3.2) lib/action_controller/metal.rb:254:in `dispatch'
actionpack (6.1.3.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
actionpack (6.1.3.2) lib/action_dispatch/routing/route_set.rb:33:in `serve'
actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:50:in `block in serve'
actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:32:in `each'
actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (6.1.3.2) lib/action_dispatch/routing/route_set.rb:842:in `call'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.3) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.3) lib/rack/head.rb:12:in `call'
actionpack (6.1.3.2) lib/action_dispatch/http/permissions_policy.rb:22:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:355:in `call'
rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/cookies.rb:689:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (6.1.3.2) lib/active_support/callbacks.rb:98:in `run_callbacks'
actionpack (6.1.3.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
logster (2.9.6) lib/logster/middleware/reporter.rb:43:in `call'
railties (6.1.3.2) lib/rails/rack/logger.rb:37:in `call_app'
railties (6.1.3.2) lib/rails/rack/logger.rb:28:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/request_id.rb:26:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
rack (2.2.3) lib/rack/method_override.rb:24:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
actionpack (6.1.3.2) lib/action_dispatch/middleware/host_authorization.rb:92:in `call'
rack-mini-profiler (2.3.2) lib/mini_profiler/p

And Env:

hostname ssdnodes-05208-app
process_id 929
application_version 81070b323f4679e3052efe64b5db7fecada10f23
HTTP_HOST discuss.noisebridge.info
REQUEST_URI /posts
REQUEST_METHOD POST
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
HTTP_ACCEPT */*
HTTP_REFERER https://discuss.noisebridge.info/t/last-few-blockers-to-opening-the-new-space/2520
HTTP_X_FORWARDED_FOR 192.195.83.130, 192.195.83.130
HTTP_X_REAL_IP 192.195.83.130
username [removed for privacy]
time 8:08 pm
params raw [this was the actual text of the post here, removed for privacy]
--- --- --- ---
--- ---
unlist_topic false
category 64
topic_id 2520
is_warning false
archetype regular
typing_duration_msecs 17400
composer_open_duration_msecs 24151
featured_link
shared_draft false
draft_key topic_2520
nested_post true

Appreciate any help anyone can give. Regards

first thing to do here is remove the discord plugin.

What would the next step be? Just straight reinstall it?

Bumping thread for visibility