LibreChat 0.7.8 MongoDB long startup delay #8720
Replies: 3 comments
-
This is abnormal and can't be reproduced. As the error suggests, it is likely due to indexing of documents/fields that were not indexed before your upgrade. It's possible to do indexing outside of the main application, and you will have to check the database collection schemas at the version you are updating to. Since you are doing a large version bump, I would recommend upgrading to v0.7.9 instead of v0.7.8, which may have additional indexing in place and would be easier to guide you on how to index the appropriate collections. |
Beta Was this translation helpful? Give feedback.
-
Hi Danny, Just an FYI -- we have no data in the token collection. This error shows up in our non production environments as well, but not as consistently. |
Beta Was this translation helpful? Give feedback.
-
@danny-avila is it safe to drop the index that is causing the delay and restart LibreChat 0.7.8? We tested in non-prod, it seems okay, LibreChat created the index automatically. We don’t know if this would fix the delay in production because we were not able to reproduce the problem in non-prod, but seems no harm. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Hi LibreChat team,
We have been experiencing a 14-minute delay when connecting to our production MongoDB instance after upgrading from LibreChat 0.7.4 to LibreChat 0.7.8. Every time the application restarts, we get this message: "[Optional] IoRedis not initialized for rate limiters." Then the long delay happens, and after 14 minutes, we see the error: "An error occurred while fixing Token indexes: Operation tokens.indexes() buffering timed out after 10000ms".
Despite this, our app eventually does come up successfully, but the 14-minute delay is causing issues. Any ideas on what's going wrong or how we can fix this?
I'd like to note that we do not have Redis enabled and no data in the token cluster.
I have attached a screenshot of the error I am referring to - you can see the successful 'Connected to MongoDB' after 14 minutes from the last message "IoRedis not initialized.."
Version Information
N/A
Steps to Reproduce
N/A
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions