Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

deploy modules throws 404 error after upgrade to ML8 #370

Closed
JackYoungblood opened this issue Feb 9, 2015 · 5 comments
Closed

deploy modules throws 404 error after upgrade to ML8 #370

JackYoungblood opened this issue Feb 9, 2015 · 5 comments

Comments

@JackYoungblood
Copy link

I upgraded my ML server to ML8 today. Now when I deploy modules on roxy I get a 404 error even though the modules appear to have loaded properly.

Any thoughts on why I'd get the 404?

Thanks.
I issued the command: bash ml local deploy modules -v

The console showed:
loading: /cygdrive/c/Users/nizdobs/Dropbox/MarkLogic/roxy/roxy/restApp/src/ajax/test.html => /ajax/test.html using dbid: 1046177332298282927
Closing HTTP connection to localhost:8002

Loaded 15 documents from /cygdrive/c/Users/nizdobs/Dropbox/MarkLogic/roxy/roxy/restApp/src to localhost:8074/restApp-modules at 02/08/2015 06:57:07 pm

url: http://localhost:8073/v1/config/properties
ERROR: 404 "Not Found"

ERROR:

  • Note: I skipped most of the verbose messages showing the files that loaded. *
@dmcassel
Copy link
Collaborator

dmcassel commented Feb 9, 2015

"deploy modules" has multiple steps. Sounds like src got deployed to the modules database, but the properties (rest-api/config/properties.xml) failed. Try updating the server-version property to 8.

There were changes to the REST API's rewriter; I'm also wondering if that's involved.

@JackYoungblood
Copy link
Author

I had one project where I defined --server-version=8 when it was created. It too throws this error when deploying modules

@paxtonhare
Copy link
Contributor

See if this one fixes you up: #336

@joemfb
Copy link
Contributor

joemfb commented Feb 9, 2015

I'm having the same problem, and it's not #336.

I think it's a rewriter issue. All the REST API endpoints return 404.

Update: confirmed, it's a rewriter issue. Changing the rewriter to "/MarkLogic/rest-api/rewriter.xml" from "/MarkLogic/rest-api/rewriter.xqy" fixed the problem

@joemfb
Copy link
Contributor

joemfb commented Feb 12, 2015

fixed in dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants