latest upgrade: container already in use and "user not found " #12076
Replies: 2 comments 2 replies
-
|
These are two separate issues:
This happens when the old container still exists. Running docker compose down before pulling the new version and running docker compose up should
This suggests your MongoDB data may not be accessible anymore. To help narrow down the cause, could you provide:
In the meantime, you can check if your user data still exists by running: docker exec -it <your-mongo-container> mongoshThen: use LibreChat;
db.users.findOne({ email: "xxxxx@yyy.edu" });If the user document is there, the issue is likely a connection/config mismatch. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Danny, below is my deploy-compose yaml file, the db.users.findOne query returns 'nul' for each user i try but I did not not use the -v option . I am not sure which version i was running prior upgrade but it ran into this i have been running this update script nightly for the last 6 months: I run this nightly to purge messages that are reaching an expiration threshold #! /usr/bin/env python3
import sys, datetime
try:
import pymongo
except:
print('pymongo missing, to install run:\n python3 -m pip install --upgrade pymongo')
sys.exit(1)
"""
# Some organizations want to purge older messages
# to stay compliant with their regulatory framework
"""
DAYSAGO=90
PORT='27018'
client = pymongo.MongoClient(f"mongodb://127.0.0.1:{PORT}")
# print(client.server_info())
db = client['LibreChat']
messages = db['messages']
files = db['files']
# Calculate the date X days ago from today
time_ago = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=DAYSAGO)
# Delete all messages and files where 'createdAt' is older than X days
messages_result = messages.delete_many({"createdAt": {"$lt": time_ago}})
files_result = files.delete_many({"createdAt": {"$lt": time_ago}})
# Output the result of the deletion
print(f"Deleted {messages_result.deleted_count} messages.")
print(f"Deleted {files_result.deleted_count} files.") |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am just doing an update the latest version:
First I get this
and after deleting the old chat-meilisearch container I get this, user not found
any ideas what this could be ?
Beta Was this translation helpful? Give feedback.
All reactions