9 days ago
librechat is deployed from the Railway template , which includes LibreChat and 4 products. There are no issues with 4 products. When accessing MongoDB - Deployment - no errors - Data Mongo Data UI A custom interface into your database OK - Deployment Online This service has an active deployment OK - Required Variables This service has all the necessary variables that this UI uses to connect to the database. NOT - Database Connection Database not connected MONGO_URL is formed like this. MONGO_URL="mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017" as a result, there is no connection to the database and there is no way to view logs of user requests. Please help me figure out the variables and the correct connection. All the parameters are specified during the default build and I can't figure out what needs to be fixed. Thank you.
4 Replies
9 days ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
9 days ago
I am sure that you might be making some mistakes in formulating the desired URL for the MongoDB service. For your reference, you have to specify the MONGO_URL in the variables section of the service, and there is no need for the double quotes, so that you can use process.env.MONGO_URL in the server file/code to connect with the service.
Just for demo purposes, I used other railway variables, but you can use MongoDB-related ones, without the quotes! I hope that would work. You can print out (console logging) the related environment variable in the server file, so you can check its value at runtime (inside the deploy logs)
clashing
I am sure that you might be making some mistakes in formulating the desired URL for the MongoDB service. For your reference, you have to specify the MONGO_URL in the variables section of the service, and there is no need for the double quotes, so that you can use process.env.MONGO_URL in the server file/code to connect with the service.Just for demo purposes, I used other railway variables, but you can use MongoDB-related ones, without the quotes! I hope that would work. You can print out (console logging) the related environment variable in the server file, so you can check its value at runtime (inside the deploy logs)
8 days ago
Any progress using the method I provided, invasta?
4 days ago
Any update, invasta!