#MongoDB Version
1 messages · Page 1 of 1 (latest)
Hello! I?m Appsmithy, your Appsmith support bot.
To determine the MongoDB version from the host server (especially if the MongoDB process is terminating and you can't connect normally), you can try the following methods:
- Check the MongoDB Binary Directly:
If you have access to the host, run:
mongod --version
or
mongo --version
This will print the version of the MongoDB binaries installed on the server.
- Check the Process Command Line:
If the process is still running (even if terminating), you can try:
ps aux | grep mongod
Sometimes the version is included in the process arguments.
- Check Installed Packages:
- For Ubuntu/Debian:
dpkg -l | grep mongo
- For CentOS/RHEL:
rpm -qa | grep mongo
Let me know if you need more specific steps based on your OS!
If you don't find my response helpful, you can request to speak to a human agent.
how do i tell which version came with the appsmith app itself
To check which MongoDB version comes bundled with your Appsmith installation:
- Appsmith Cloud: You do not have access to the underlying MongoDB version, as it is managed by Appsmith.
- Self-hosted Appsmith (Docker):
If you are using the default Docker setup, Appsmith uses the official MongoDB Docker image. You can check the version by inspecting your docker-compose.yml file. Look for the mongo service section, for example:
yaml
mongo:
image: mongo:4.4
The tag after mongo: (e.g., 4.4) indicates the MongoDB version.
- Self-hosted Appsmith (Manual Install):
If you installed MongoDB yourself, the version depends on what you installed.
Summary:
Check your docker-compose.yml or deployment configuration for the mongo image tag to determine the MongoDB version bundled with your Appsmith setup.
Let me know if you need help locating this file or interpreting its contents!
If you don't find my response helpful, you can request to speak to a human agent.
how do i tell which version came with the appsmith app itself if I am running kubernetes
If you are running Appsmith on Kubernetes, the MongoDB version is determined by the container image specified in your MongoDB deployment manifest (YAML file).
Here?s how you can check:
- Find the MongoDB Deployment:
Run:
kubectl get pods -n
Hi @spiral nova! You might find the mongodb version you are using from the values.yml file in your k8s deployment. You should find something like: https://github.com/appsmithorg/appsmith/blob/release/deploy/helm/values.yaml
@red walrus - you are incorrect. The image this is in use is this one - index.docker.io/appsmith/appsmith-ee - it contains mongodb already, not as a separate install.
Instructions from the docs are here: https://docs.appsmith.com/getting-started/setup/installation-guides/docker
@spiral nova - if you do a command into your container - you can execute the commands that the bot has told you arleady (specifically mongod --version)
I did it and got this
db version v6.0.27
Build Info: {
"version": "6.0.27",
"gitVersion": "fc88ca137231d7457aed6265d4f32a361ae71716",
"openSSLVersion": "OpenSSL 3.0.13 30 Jan 2024",
"modules": [],
"allocator": "tcmalloc",
"environment": {
"distmod": "ubuntu2204",
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
Thank you for the clarification! You are correct: when using the appsmith/appsmith-ee image (or appsmith/appsmith), MongoDB is bundled inside the same container, not as a separate service.
To check the MongoDB version in this scenario, you should:
- Exec into the running Appsmith container:
kubectl exec -it
@plucky orchid thanks for the help. got and now i can access the database and see the raw objects. just trying to figure out how to export them so i can import them into my rebuilt server (only have the dbase and no other backups)
Glad to hear you can access the database! To export your MongoDB data from inside the Appsmith container, you can use the mongodump tool. Here?s how:
- Exec into the Appsmith container:
kubectl exec -it
am i missing something? you (the bot) keep sending what to do and it gets cut off so its not helpful since i dont have all the commands?
Thank you for your feedback! Here?s the full step-by-step process to export your MongoDB data from the Appsmith container and import it into your new server:
1. Exec into the Appsmith container:
bash
kubectl exec -it
Sorry about the bot replies, we?ve deactivated it. We?re glad to hear you?re now able to connect to your MongoDB.
You can find the MongoDB connection string in the environment variable APPSMITH_DB_URL.
and how do i display the environment variable APPSMITH_DB_URL?