Chat unusable after update

A forum I help run was updated a few minutes ago, and chat seems to be unusable now (the UI for chat doesn’t show up, and attempting to use chat in tabs that haven’t been reloaded since the update results in an error).
Here’s an example of an error logged to /var/discourse/shared/standalone/log/rails/production.log when a chat API endpoint is accessed.

Started POST "/chat/api/direct-message-channels.json" for 0.0.0.0 at 2024-06-08 00:39:26 +0000
Processing by Chat::Api::DirectMessagesController#create as JSON
  Parameters: {"target_usernames"=>["Firepup650"], "name"=>""}
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms | Allocations: 4098)
LoadError (cannot load such file -- /var/www/discourse/plugins/chat/lib/service_runner.rb)
app/helpers/with_service_helper.rb:13:in `with_service'
app/controllers/application_controller.rb:423:in `block in with_resolved_locale'
app/controllers/application_controller.rb:423:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:393:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:277:in `call'
1 Like

It seems like commit 39902c148fd198b9608158f6a9d6082274f51b90 caused web-based updates on instances that haven’t been updated since (not sure when, but sometime on or after May 10) to result in chat being unusable post-update.