ml-gradle local message error causing deployment to fail

204 Views Asked by At

I am trying to use ml-Gradle to deploy my application to a MarkLogic Server on an EC2 instance in AWS. I am getting the following error for any gradle command I run and I can't find any information about it on the web.

Error: Error occurred while loading REST modules: Error occurred while loading modules; host: <IP IS HERE BUT TAKEN OUT BY ME FOR THIS POST>; port: 8010; cause: Local message: /config/query not found for write. Server Message: Request failed. Error body not received from server

I know that I am hitting the correct ip address for the host and have the proper credentials. Has anyone seen this before? This deploys fine in our DEV environment, so it is strange it is not working in this environment.

1

There are 1 best solutions below

0
On

It turns out that the url rewriter on the 8010 App-Server had a strange value. It ended up containing %%mlVersion%% and not a normal url. Once I updated the url rewriter in the App Server settings to match what we had in DEV and PROD everything worked as expected. I do not know how this url rewriter value was set to a different value in the first place.