FAIL notice in Mongo install process

Hi there,

iam new to Trudesk and just wanted to check it out. Maybe thats the solution i was looking for a long time now…

But when i launch the install script i get the following error all the time:

Is there anything i can do to fix that?

Iam using Ubuntu 20.04 LTS (fresh installation) on a fresh test VM: 2cores / 2GB Ram

Thank you <3

I wonder if Ubuntu updated its package of MongoDB and it is trying to pull the updated package which may not be compatible with the commands that are run in the install script. I will do some testing.
The docker install may be a better option for you.

1 Like

Thank you for your answer. I solved the MongoDB Problems with following steps:

  1. Stop the mongod process by issuing the following command:-
sudo service mongod stop
  1. Remove any MongoDB packages that you had previously installed:-
sudo apt-get purge mongodb-org*
  1. Remove MongoDB databases and log files:-
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb
  1. Import the public key used by the package management system:-
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
  1. The following instruction is for Ubuntu 20.04 (Focal):-
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
  1. Update Apt
sudo apt-get update
  1. Install MongoDB 4.4.x (Now available 4.4.15)
sudo apt-get install -y mongodb-org=4.4.15 mongodb-org-server=4.4.15 mongodb-org-shell=4.4.15 mongodb-org-mongos=4.4.15 mongodb-org-tools=4.4.15
  1. Use mongod --version to check if it is successfully installed

Be sure, after that you have to start the Mongo shell with command: “mongo”.
And then create a DB for trudesk and the user you want to use later on.

Create DB (if you use a not existing DB it will automatically create one):

use trudesk

Create User:

db.createUser(
  {
    user: "UsernameHere",
    pwd:  passwordPrompt(),   // will ask you to enter a pw
    roles: [ { role: "readWrite", db: "thedbnamehereyouwanttocreatetheuserfor" },
             { role: "read", db: "reporting" } ]
  }
)
1 Like