ryanjdew / ml-slush-discovery-app

Quick up and running app for exploring MarkLogic data, based off of the marklogic-node slush template
Other
9 stars 7 forks source link

./ml local deploy modules : /ext/mlpm_modules/ml-index-discovery/index-discovery.xqy not found #8

Closed mstellwa closed 8 years ago

mstellwa commented 8 years ago

Using MarkLogic 8.0-4.2 on Mac with default settings. ./ml local deploy modules gives the following error:

Loaded 5 documents from /Users/mstellwa/Documents/00_MarkLogic/01_Development/ml-slush-discovery-app/src to localhost:8041/discovery-app-modules at 03/02/2016 05:15:41 pm

Loading REST extensions from /Users/mstellwa/Documents/00_MarkLogic/01_Development/ml-slush-discovery-app/rest-api/ext

Loading REST transforms from /Users/mstellwa/Documents/00_MarkLogic/01_Development/ml-slush-discovery-app/rest-api/transforms

deploying packages ... cts-extensions group-by [Error: HTTP 400: {"errorResponse":{"statusCode":400, "status":"Bad Request", "messageCode":"RESTAPI-INVALIDCONTENT", "message":"RESTAPI-INVALIDCONTENT: (err:FOER0000) Invalid content: invalid index-discovery extension: could not parse XQuery extension index-discovery; please see the server error log for detail XDMP-MODNOTFOUND: (err:XQST0059) Module /ext/mlpm_modules/ml-index-discovery/index-discovery.xqy not found; index-discovery either is not a valid module or does not provide extension functions (delete, get, put, post) in the http://marklogic.com/rest-api/resource/index-discovery namespace"}}] mats-mac:ml-slush-discovery-app mstellwa$

ryanjdew commented 8 years ago

A temporary workaround is to run ./ml local deploy modules a second time. Unfortunately this seems to be a race condition with mlcp attempting to insert a library into the database before a dependency to that library being inserted.

mstellwa commented 8 years ago

Running a second time did solve it.