#MongoDB Version

1 messages · Page 1 of 1 (latest)

spiral nova
#

Is there an easy way to determine which version of MongoDB I am running? Please note. my mongodb is in terminating mode so I need a different way to determine the version, hopefully on the host server.

red walrusBOT
#

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:

  1. 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.

  1. 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.

  1. 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.

spiral nova
#

how do i tell which version came with the appsmith app itself

red walrusBOT
#

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.

spiral nova
#

how do i tell which version came with the appsmith app itself if I am running kubernetes

red walrusBOT
#

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:

  1. Find the MongoDB Deployment:
    Run:

kubectl get pods -n

red walrusBOT
plucky orchid
#

@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"
}
}

The guide provides instructions to install Appsmith using Docker.

red walrusBOT
#

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:

  1. Exec into the running Appsmith container:

kubectl exec -it

spiral nova
#

@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)

red walrusBOT
#

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:

  1. Exec into the Appsmith container:

kubectl exec -it

spiral nova
#

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?

red walrusBOT
#

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

red walrusBOT
#

Sorry about the bot replies, we?ve deactivated it. We?re glad to hear you?re now able to connect to your MongoDB.

spiral nova
#

what is the default username and password for the mongodb

#

appears its not visible

red walrusBOT
#

You can find the MongoDB connection string in the environment variable APPSMITH_DB_URL.

spiral nova
#

and how do i display the environment variable APPSMITH_DB_URL?