Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Load Any Conversations #9300

Open
Wamy-Dev opened this issue Apr 25, 2024 · 6 comments
Open

Cannot Load Any Conversations #9300

Wamy-Dev opened this issue Apr 25, 2024 · 6 comments

Comments

@Wamy-Dev
Copy link

Describe the bug

Whenever I try and load any conversations from the browser, it fails with a 500 Internal Server Error, which this as the error in the logs.

I, [2024-04-25T17:26:43.755035 #1]  INFO -- : [a8d7a57f-ceba-4992-b866-5cb322ab1211] Completed 500 Internal Server Error in 14999ms (ActiveRecord: 14599.1ms | Allocations: 492135)

F, [2024-04-25T17:26:43.756043 #1] FATAL -- : [a8d7a57f-ceba-4992-b866-5cb322ab1211]   

[a8d7a57f-ceba-4992-b866-5cb322ab1211] Rack::Timeout::RequestTimeoutException (Request ran for longer than 15000ms ):

[a8d7a57f-ceba-4992-b866-5cb322ab1211]   

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/views/api/v1/conversations/partials/_conversation.json.jbuilder:29

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/views/api/v1/accounts/conversations/index.json.jbuilder:10

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/views/api/v1/accounts/conversations/index.json.jbuilder:9

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/views/api/v1/accounts/conversations/index.json.jbuilder:8

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/views/api/v1/accounts/conversations/index.json.jbuilder:1

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/controllers/concerns/switch_locale.rb:39:in `set_locale'

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/controllers/concerns/switch_locale.rb:17:in `switch_locale_using_account_locale'

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/controllers/concerns/request_exception_handler.rb:11:in `handle_with_exception'

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/controllers/concerns/switch_locale.rb:39:in `set_locale'

[a8d7a57f-ceba-4992-b866-5cb322ab1211] app/controllers/concerns/switch_locale.rb:12:in `switch_locale'

I, [2024-04-25T17:26:43.756240 #1]  INFO -- : source=rack-timeout id=a8d7a57f-ceba-4992-b866-5cb322ab1211 timeout=15000ms service=15002ms state=completed

I, [2024-04-25T17:26:43.799964 #1]  INFO -- : source=rack-timeout id=f6969797-1080-4480-9dd4-fd5f41418626 timeout=15000ms state=ready

To Reproduce

  1. Open up chatwoot dashboard.

Expected behavior

For all conversations to load.

Environment

Docker

Cloud Provider

None

Platform

Browser

Operating system

No response

Browser and version

No response

Docker (if applicable)

No response

Additional context

No response

@Wamy-Dev Wamy-Dev added the Bug label Apr 25, 2024
Copy link

linear bot commented Apr 25, 2024

@sojan-official
Copy link
Member

@Wamy-Dev Please add the following information

  • Chatwoot version
  • Installation environment
  • Spec of the machine
  • are there any customisation to the code

@Wamy-Dev
Copy link
Author

  • Chatwoot 3.8.0 (85aeaf2)
  • Docker Self Hosted
  • 4 CPU, 32GB ram, nvme disk
  • No customization

@sojan-official
Copy link
Member

@Wamy-Dev Could you also give the following details

  • Estimated number of conversations in the system
  • types of channels that you are using
  • Any other errors that you see in logs
  • also the spec of your database instance ?

It seems like the request is timing out. This usually happens when the Postgres query times out

@Wamy-Dev
Copy link
Author

  • Around 250 Total
  • Website + Email
  • No errors at all other than that
  • Database is hosted on Supabase using the free plan. 2-core arm, 1GB ram

@vishnu-narayanan
Copy link
Member

@Wamy-Dev Could you check the supabase db logs and see if there are timeouts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants