marklogic-community / roxy

Deployment tool for MarkLogic applications. Also provides optional unit test and XQuery MVC structure
Other
87 stars 66 forks source link

Bootstrap issue with ML9 when using Roxy 1.7.4 #885

Open rskainth82 opened 6 years ago

rskainth82 commented 6 years ago

Hi,

When we bootstrap to ML 9.0.4 using Roxy 1.7.4, the path-range-indexes in the configuration file need to have collation element (empty or with value) irrespective of the scalar-type (string, int, dateTime) without which it is going to give error while bootstrap.

Error
C:\clearcase project\Path5_GENERIC_FRAMEWORK_ML_2\eie_ML_Generic_Framework\ML_Generic_Framework>ml dev6 bootstrap
Bootstrapping your project into MarkLogic 9 on xmlsboxm1d.aetna.com...
ERROR: ADMIN-INVALIDCONFIG: (err:FOER0000) Invalid configuration: range-path-index is missing collation See MarkLogic Server error log for more details.
ERROR: ... Bootstrap FAILED
ERROR: exit
ERROR: ["deploy/lib/ml.rb:170:in `exit'", "deploy/lib/ml.rb:170:in `<main>'"]

We had to update all the path-range-index with the collation element, irrespective of type of the index as shown below, in order to do successful bootstrap.

       <range-path-index>
          <scalar-type>dateTime</scalar-type>
           <collation />
          <path-expression>/hlthplcytsm:EDHTSMHealthPolicy/hlthplcytsm:healthPolicy/ofrofr:HealthPolicy/ofrofr:policyEffectiveDate/ofrss:EffectivePeriod/ofrss:datetimeBegin</path-expression>
          <range-value-positions>false</range-value-positions>
          <invalid-values>ignore</invalid-values>
        </range-path-index>

Which Operating System are you using? During our POC, where we are testing the compatibility of moving to MarkLogic 9.0-4, we tried bootstrapping from Windows machine. Not sure, whether this will make any difference though, if we change to do bootstrap from a Linux VM, as this issue seems to be related to Roxy or XQuery code behind it, which is expecting collation element to be provided, irrespective of scalar type for the path range index

Which version of MarkLogic are you using? ML 9.0-4

Which version of Roxy are you using (see version.txt)? 1.7.4

Thanks, Rupinder

grtjn commented 5 years ago

Apologies for not getting back earlier. We lost track of this issue during the holiday season. Have you tried upgrading to latest master or dev version? And did that resolve the issue?

msbakya commented 5 years ago

I see the same issue after upgrading to ML 9. It was fine with ML 8

ml local bootstrap Bootstrapping your project into MarkLogic 9 on localhost... ERROR: ADMIN-INVALIDCONFIG: (err:FOER0000) Invalid configuration: range-path-index is missing collation See MarkLogic Server error log for more details. ERROR: ... Bootstrap FAILED ERROR: exit ERROR: ["deploy/lib/ml.rb:170:in exit'", "deploy/lib/ml.rb:170:in

'"]

collation