I can confirm that we've also seen this behaviour on our development system.

Our development box is running 64-bit Ubuntu Precise (kernel 3.2.0) and the filesystem is xfs.

It's not a common problem but we've sometimes observed it happening once or twice per day. As with the OP the only solution seems to be to restart the MarkLogic server.



Iain.


On 11/12/12 22:00, Marc Young wrote:
It seems that in MarkLogic 6 (I'm running 6.0.1-1), the server is caching filesystem files. Is there a way to disable this? I just spent a good amount of time fixing syntax errors for a 500 error that kept complaining about lines that no longer existed. The only way to get it to see my changes was to restart the app-server.

*For example:*
$ rm src/xq/lib/file.xqy
$ file /opt/measures/ml/src/xq/lib/file.xqy
/opt/measures/ml/src/xq/lib/file.xqy: ERROR: cannot open `/opt/measures/ml/src/xq/lib/file.xqy' (No such file or directory)

*The transaction after this:*
POST http://server:8100/cm/api/test

 -- response --
500 Internal Server Error
Content-Type:  text/html; charset=UTF-8

Server:  MarkLogic

Content-Length:  1147

Connection:  Keep-Alive

Keep-Alive:  timeout=1, max=96

<html xmlns="http://www.w3.org/1999/xhtml";><head><title>500 Internal Server Error XDMP-UNEXPECTED</title><meta name="robots" content="noindex,nofollow"/><link rel="stylesheet" href="static/error.css"/></head><body><span class="error"><h1>500 Internal Server Error</h1><h2>XDMP-UNEXPECTED</h2><h3>XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Rbrace_, expecting Comma_ or Rpar_ or SemiColon_</h3><p><div style="margin-left: 1em"><p><b>err:XPST0003: </b><b>XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Rbrace_, expecting Comma_ or Rpar_ or SemiColon_</b></p><div style="margin-left: 1em"><div style="margin-left: 1em;"><div style="margin-top: 1ex;">In <tt>/src/xq/lib/file.xqy</tt> on line 186</div></div></div></div><div style="margin-left: 1em"><p><b>err:XPST0003: </b><b>XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected $end, expecting Function30_ or Percent_</b></p><div style="margin-left: 1em"><div style="margin-left: 1em;"><div style="margin-top: 1ex;">In <tt>/src/xq/lib/file.xqy</tt> on line 226</div></div></div></div></p></span></body></html>

*After Restarting the server*
POST http://server:8100/cm/api/login

 -- response --
500 Internal Server Error
Content-Type:  text/html; charset=UTF-8

Server:  MarkLogic

Content-Length:  735

Connection:  Keep-Alive

Keep-Alive:  timeout=1, max=96

<html xmlns="http://www.w3.org/1999/xhtml";><head><title>500 Internal Server Error SVC-FILOPN</title><meta name="robots" content="noindex,nofollow"/><link rel="stylesheet" href="static/error.css"/></head><body><span class="error"><h1>500 Internal Server Error</h1><h2>SVC-FILOPN</h2><h3>SVC-FILOPN: File open error: open '/opt/measures/ml/src/xq/lib/file.xqy': No such file or directory</h3><p><div style="margin-left: 1em"><p><b>SVC-FILOPN: File open error: open '/opt/measures/ml/src/xq/lib/file.xqy': No such file or directory</b></p><div style="margin-left: 1em"><div style="margin-left: 1em;"><div style="margin-top: 1ex;">In <tt>/src/xq/test/syntax.xqy</tt> on line 69</div></div></div></div></p></span></body></html>



_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to