Unable to install repository; can't connect to Mongo DB server

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.

Thanks for answering! I switched to 4.4.19 and I’m still getting the same error.

I have MongoDB installed on the same host that I am installing the repository on. I can successfully ping the hostname, so it’s not DNS.

Do you have any other ideas?

Odd - could be that there’s something else in the installer is failing at. Could you get us the installer log?

Also I’m assuming you’re following the manual database installation steps?

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.

1 Like