I’m trying to install the Deadline Repository on RHEL 9, but I always get stuck trying to connect to my MongoDB 7.0 server. I receive the following error:
Could not connect to any of the specified Mongo DB servers defined in the
"Hostname" parameter of the "settings/connection.ini" file in the root of the
Repository.
I have installed Mongo DB and created a database called “deadline10db”. I can confirm this by running mongosh, then dbs show.
I can confirm MongoDB is running. I have added the port MongoDB is using (in my case, 27017) to frewalld, and the error persists even with firewalld turned off. Why can’t the Repository installer connect to my MongoDB server?
Deadline doesn’t support MongoDB 7, at the moment it supports at most MongoDB 4.4.19.
I know there’s folks running MongoDB 5, but we don’t officially support it.
What’s likely going wrong is the repository installer is using the wrong flags when trying to hit your database. But just in case that’s not the issue - make sure the hostnames you’re providing can be resolved from the machine. Just in case it’s DNS causing you trouble.
Otherwise you’ll need to use an older version of MongoDB.
In the meantime, maybe try letting the repository installer set up the database if possible. I’m sure there’s a reason you’re manually setting up the database though.
I ended up letting the repo installer automatically configure the database, and it worked. I suppose there must have been something I was doing wrong, but I can’t figure out what.