Solutions

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Learn

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Community

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

Company

Stay on top of everything MarkLogic

Be the first to know! News, product information, and events delivered straight to your inbox.

Sign Me Up

 
Knowledgebase:
Ops Director 2.0.0 fails when attempting to install on MarkLogic 9.0-9
28 March 2019 02:59 AM

Summary

Installation of Ops Director 2.0.0 on MarkLogic 9.0-9 fails with the error:

This installer cannot install Ops Director on MarkLogic Server 9.0-9.

This article will explain how to resolve the error.

What the Error Means

The Ops Director 2.0.0 installer checks to make sure that the effective version for the MarkLogic cluster is between 9.0-7[.x] and 9.0-8[.x].  Attempting to install on MarkLogic 9.0-9 fails this version check.

Expanded Error Output:

FAILURE: Build failed with an exception.

* Where:

Build file '/home/mgardner/opsdirector-2.0.0/build.gradle' line: 75

* What went wrong:

Execution failed for task ':opsdirPreflight'.

> This installer cannot install Ops Director on MarkLogic Server 9.0-9

Resolving the Error

Edit the build.gradle file, which is located in the same directory as the gradlew command that is used to install Ops Director, and change the version checking to allow installation on MarkLogic 9.0-9.

Change the line that reads:

if (ever < 9000700 || ever > 9000800) {

To:

if (ever < 9000700 || ever > 9000900) {

This can also be done using sed on Linux

sed -i 's/ 9000800/ 9000900/g' build.gradle

Then run the command to install Ops Director: 

./gradlew mlDeploy

To complete the installation.

Further reading

(1 vote(s))
Helpful
Not helpful

Comments (0)