Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question. Don’t forget to select tags to help index your topic!
1. Describe your incident:
We are running a Graylog 4.3 instances and we want to upgrade to Graylog 5. Reading the procedures and requirements we observe that is needed to upgrade MongoDb to 4.4 first.
When we try to upgrade MongoDB to 4.4 we went through the documentation and realize that first is necessary to install 4.2 and then 4.4. The problem is we couldn’t upgrade to 4.2 because ubuntu apt didn’ t find because EOL of 4.2
2. Describe your environment:
OS Information:
Ubuntu 20.04 (upgraded from appliance latest OVA graylog)
Kernel: Linux 5.4.0-139-generic
Service logs, configurations, and environment variables:
3. What steps have you already taken to try and solve the problem?
We tried to install mongodb-org 4.2 adding the key to the OS and then apt update but couldn’t find anything.
Then we made a mongodump and tried to install mongodb-org 4.4 via apt package manager. When we check version via dpkg --list we observ that only mongodb-org package was in version 4.4 and the others (mongodb-org-tools, mongodb-org-server, mongodb-org-shell) remains in 4.0. If we try to install all of them manually via apt then mongo doesn’t start.
systemctl status mongod.services showed: "Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false
Today we are going to test uninstallig 4.0 (backing up all mongo data) and try to install 4.4 through apt and then use mongorestore.
4. How can the community help?
If there are some procedure or any help, we will be really gratefully
The most recent version of ubuntu server that i can find mongodb packages for is 18.04 (bionic).
However, i just tested installing this package on Ubuntu 20.04 (Focal) and i didn’t get any complaints/errors and appears to have worked. Your mileage may vary.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
So following your steps we arrived to mongodb 4.2 without any problems. Then we tried to go to 4.4.24 using the same procedure and documentation from mongodb official.
Then we changed to focal because our ubuntu 20. echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list