[Question]: librechat api pod keeps getting restarted due to mongo db duplicate key issue #4872
Replies: 1 comment 1 reply
-
If you're using Azure Cosmos DB, it's not fully supported: #1778 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is your question?
librechat api pod keeps getting restarted due to mongo db duplicate key issue.
Hello @danny-avila
we have the librechat deployed on AKS cluster and its connecting to mongo db hosted on Azure.
every now and then when users login or start using the app, for certain users we get the below error and then the pod gets restarted there by app going down. can you help me resolve the issue pelase?
version being used 0.74
ERROR :
1)
[LOGGER PARSING ERROR] Cannot read properties of undefined (reading 'additional_kwargs')
2024-12-04T09:46:22.394Z debug: [abortMessage] ID: 6750241745c9a3d081dd2d0a | [email protected] | Aborted request: {"abortKey":"ca584f2c-bcaa-4ff7-95cf-0370dd4ccb73"}
2024-12-04T09:46:22.397Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-12-04T09:46:22.398Z error: Error saving message: Duplicate key violation on the requested collection
2024-12-04T09:46:22.399Z info: ---
saveMessage
context: api/server/middleware/abortMiddleware.js2024-12-04T09:46:22.399Z error: There was an uncaught error: Duplicate key violation on the requested collection
2024-12-04T09:46:22.399Z debug: [indexSync] Clearing sync timeouts before exiting...
2024-12-03T10:45:04.737Z error: [PluginsClient] executorCall error: AbortError
2024-12-03T10:45:04.737Z debug: [PluginsClient][handleResponseMessage] Output:
{
[LOGGER PARSING ERROR] Cannot read properties of undefined (reading 'additional_kwargs')
2024-12-03T10:45:04.738Z debug: [/ask/gptPlugins]
{
[LOGGER PARSING ERROR] Cannot read properties of undefined (reading 'additional_kwargs')
2024-12-03T10:45:04.745Z debug: [abortMessage] ID: 67177056e63c9f02f7dc2590 | [email protected] | Aborted request: {"abortKey":"6e30d73b-eb05-4bc2-adc2-7f2210fce7d1"... [truncated]
2024-12-03T10:45:04.748Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-12-03T10:45:04.749Z error: Error saving message: Duplicate key violation on the requested collection
2024-12-03T10:45:04.749Z info: ---
saveMessage
context: api/server/middleware/abortMiddleware.js2024-12-03T10:45:04.750Z error: There was an uncaught error: Duplicate key violation on the requested collection
2024-12-03T10:45:04.751Z debug: [indexSync] Clearing sync timeouts before exiting...
More Details
ERROR :
1)
[LOGGER PARSING ERROR] Cannot read properties of undefined (reading 'additional_kwargs')
2024-12-04T09:46:22.394Z debug: [abortMessage] ID: 6750241745c9a3d081dd2d0a | [email protected] | Aborted request: {"abortKey":"ca584f2c-bcaa-4ff7-95cf-0370dd4ccb73"}
2024-12-04T09:46:22.397Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-12-04T09:46:22.398Z error: Error saving message: Duplicate key violation on the requested collection
2024-12-04T09:46:22.399Z info: ---
saveMessage
context: api/server/middleware/abortMiddleware.js2024-12-04T09:46:22.399Z error: There was an uncaught error: Duplicate key violation on the requested collection
2024-12-04T09:46:22.399Z debug: [indexSync] Clearing sync timeouts before exiting...
2024-12-03T10:45:04.737Z error: [PluginsClient] executorCall error: AbortError
2024-12-03T10:45:04.737Z debug: [PluginsClient][handleResponseMessage] Output:
{
[LOGGER PARSING ERROR] Cannot read properties of undefined (reading 'additional_kwargs')
2024-12-03T10:45:04.738Z debug: [/ask/gptPlugins]
{
[LOGGER PARSING ERROR] Cannot read properties of undefined (reading 'additional_kwargs')
2024-12-03T10:45:04.745Z debug: [abortMessage] ID: 67177056e63c9f02f7dc2590 | [email protected] | Aborted request: {"abortKey":"6e30d73b-eb05-4bc2-adc2-7f2210fce7d1"... [truncated]
2024-12-03T10:45:04.748Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-12-03T10:45:04.749Z error: Error saving message: Duplicate key violation on the requested collection
2024-12-03T10:45:04.749Z info: ---
saveMessage
context: api/server/middleware/abortMiddleware.js2024-12-03T10:45:04.750Z error: There was an uncaught error: Duplicate key violation on the requested collection
2024-12-03T10:45:04.751Z debug: [indexSync] Clearing sync timeouts before exiting...
What is the main subject of your question?
Other
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions