roxy icon indicating copy to clipboard operation
roxy copied to clipboard

bootstrap failing on Windows in 1.7.7, but not 1.7.5

Open patrickmcelwee opened this issue 7 years ago • 9 comments

The issue

Short description of the problem:

What are the steps to reproduce the problem?

  1. Change the bootstrap port from 8000 on Windows in local.properties (because the prospect's laptop had an unchangeable port conflict):

    bootstrap-port-five=8010 qconsole-port=8010

  2. Run java -jar roxy.jar local bootstrap

  3. Get error on setup:do-setup, expected 2 args, got 3, probably because the connection_string is being appended to the POST: https://github.com/marklogic-community/roxy/blob/master/deploy/lib/server_config.rb#L1637

Tech Specs

Which Operating System are you using?

Windows 7 (over WebEx with a prospect, so I have very little ability to further debug)

Which version of MarkLogic are you using?

9.0-2

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

Was using the 1.7.7 jar. Downgrading to 1.7.5 fixed it.

patrickmcelwee avatar Aug 14 '17 20:08 patrickmcelwee

Hmm, more likely the jar is out of sync. setup:do-setup is only invoked from https://github.com/marklogic-community/roxy/blob/2715ab5004ef7094f8216882b52469c708cfef32/deploy/lib/server_config.rb#L891..

grtjn avatar Aug 15 '17 04:08 grtjn

@RobertSzkutak could you take a peek at this?

grtjn avatar Aug 15 '17 04:08 grtjn

Thanks Geert ... that's actually the line I should have linked to. I could see the properties map being passed through

patrickmcelwee avatar Aug 15 '17 13:08 patrickmcelwee

Ah, I understand now. Yep, it is definitely a version sync problem. I had an older version of Roxy in deploy/, but a newer version of the jar, and in the meantime, the function signature changed a couple months ago: https://github.com/marklogic-community/roxy/commit/4abf5c6c2483968cdcd032e76ea9d755ef47b892#diff-252a0a5c799a8b8a7d685b2f74202806R879

It makes sense. I'll just put a note in the wiki page on Roxy jars that you should grab the same jar version as your local Roxy (in version.txt).

patrickmcelwee avatar Aug 15 '17 13:08 patrickmcelwee

I don't have wiki editing privileges ... here is the page: https://github.com/marklogic-community/roxy/wiki/Run-Roxy-as-a-Jar.

patrickmcelwee avatar Aug 15 '17 13:08 patrickmcelwee

Not sure it is required to have same version of the roxy jar as you have local, as it is supposed to use lib files from within the jar. It would be like you upgraded Roxy basically, but without replacing all files.

I still suspect something is wrong with the jar.

grtjn avatar Aug 15 '17 13:08 grtjn

I gave you edit privs nonetheless..

grtjn avatar Aug 15 '17 13:08 grtjn

FWIW I did do my JAR testing on Windows. My testing includes trying a suite of a combination of functions. I can't say I've tried a JAR with older Ruby files but offhand I would expect the JAR would act independent of those. I should be able to look into this and do some further testing tonight.

RobertSzkutak avatar Aug 16 '17 13:08 RobertSzkutak

Another mention of this by Stephen Crook, trying to use roxy.jar 1.7.7 with RunDMC. He had the same error message, which went away when reverting to roxy.jar 1.7.5.

I think the culprit lies in the fact that roxy is taking server_config.rb from the jar, but setup.xqy from filesystem. The xqy file is included in the jar, but roxy is simply not looking there..

     0 Fri Aug 04 15:05:00 CEST 2017 roxy/lib/xquery/
 16696 Fri Aug 04 15:05:00 CEST 2017 roxy/lib/xquery/cpf.xqy
246216 Fri Aug 04 15:05:00 CEST 2017 roxy/lib/xquery/setup.xqy
  3618 Fri Aug 04 15:05:00 CEST 2017 roxy/lib/xquery/triggers.xqy

grtjn avatar Nov 28 '17 19:11 grtjn