Authentication plug in error

162 views
Skip to first unread message

Jayasree Atmakuru

unread,
Jun 10, 2014, 2:24:27 AM6/10/14
to lum...@googlegroups.com
Hi,

I build lumify. And managed to open it in browser using https://localhost:8443/lumify/. But I am getting authentication plug in error.

I added the plug ins folders in /opt/lumify/plugins.

Plugins folder has two folders 1.authentication    2.visibility.

In authentication : i have 1.authentication.js    2.template.hbs.
In visibility : 1.README.md       2. display.ejs       3. form.ejs       4. visibilityDisplay.js   5. visibilityEditor.js

I added :/opt/lumify/config/lumify.proprerties:
#web plugins
web.plugins.authentication=/opt/lumify/plugins/authentication
web.plugins.visibility=/opt/lumify/plugins/visibility

Still i seeing the same plug error in for authentication.

Plese help me in fixing this.

regards,
Jayasree.A
Screen Shot 2014-06-09 at 2.22.41 pm.png

Susan Feng

unread,
Jun 10, 2014, 9:11:26 AM6/10/14
to Jayasree Atmakuru, lum...@googlegroups.com
Hello,

Please follow the following steps and let us know if you run into any more problems:

1) cd lumify-web-auth-username-only
2) mvn package
3) place the jar in the target directory in /opt/lumify/lib
4) restart jetty

- Susan

--
You received this message because you are subscribed to the Google Groups "Lumify" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lumify+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/lumify.
To view this discussion on the web visit https://groups.google.com/d/msgid/lumify/5d2ac6a8-3a78-4457-9321-67556c0f85a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2014-06-09 at 2.22.41 pm.png>

Jayasree Atmakuru

unread,
Jun 11, 2014, 9:26:20 AM6/11/14
to lum...@googlegroups.com, jayas...@gmail.com, susan...@altamiracorp.com
Hi Susan,
Thanks for the reply.

I added the jar file, then I got the login page. But I am not sure what password i need to give.
I tried lumify, root etc. But none success.
I am getting elastic search error " nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }"

Please help me.

Regards,
Jayasree.A

Susan Feng

unread,
Jun 11, 2014, 9:32:06 AM6/11/14
to Jayasree Atmakuru, lum...@googlegroups.com
Hi Jayaree,

If you are using the lumify-web-auth-username-only, it should not require a password. Are you using the newest code in our GitHub repository? Can you please send me a screen shot of the Lumify screen in addition to the error?

Thank you.

- Susan

Jayasree Atmakuru

unread,
Jun 11, 2014, 3:00:48 PM6/11/14
to lum...@googlegroups.com, jayas...@gmail.com, susan...@altamiracorp.com
Hi Susan,
Please find the screen shot attache. Also in my first query i asked about the configuration of JS (authentication, visibility) in /opt/lumify/plugins/ folder, address this do I need to keep this directory?

As in the above post I mentioned elastic search error. Below is the log from jetty server :
2014-06-11 17:18:16.764:WARN:oejs.ServletHandler:
javax.servlet.ServletException: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[FIzUpOVqQi-3Ehon1pvfjg][securegraph][0]: SearchParseException[[securegraph][0]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][1]: SearchParseException[[securegraph][1]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][2]: SearchParseException[[securegraph][2]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][3]: SearchParseException[[securegraph][3]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][4]: SearchParseException[[securegraph][4]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }
    at io.lumify.web.Router.service(Router.java:173)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
    at io.lumify.web.RequestDebugFilter.doFilter(RequestDebugFilter.java:33)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Thread.java:744)
Caused by:
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[FIzUpOVqQi-3Ehon1pvfjg][securegraph][0]: SearchParseException[[securegraph][0]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][1]: SearchParseException[[securegraph][1]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][2]: SearchParseException[[securegraph][2]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][3]: SearchParseException[[securegraph][3]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][4]: SearchParseException[[securegraph][4]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:179)
    at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:523)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
2014-06-11 17:18:16.765:WARN:oejs.ServletHandler:/lumify/login
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[FIzUpOVqQi-3Ehon1pvfjg][securegraph][0]: SearchParseException[[securegraph][0]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][1]: SearchParseException[[securegraph][1]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][2]: SearchParseException[[securegraph][2]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][3]: SearchParseException[[securegraph][3]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][4]: SearchParseException[[securegraph][4]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:179)
    at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:523)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
2014-06-11 17:18:16.840:WARN:oejs.ServletHandler:
javax.servlet.ServletException: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[FIzUpOVqQi-3Ehon1pvfjg][securegraph][0]: SearchParseException[[securegraph][0]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][1]: SearchParseException[[securegraph][1]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][2]: SearchParseException[[securegraph][2]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][3]: SearchParseException[[securegraph][3]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][4]: SearchParseException[[securegraph][4]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }
    at io.lumify.web.Router.service(Router.java:173)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
    at io.lumify.web.RequestDebugFilter.doFilter(RequestDebugFilter.java:33)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Thread.java:744)
Caused by:
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[FIzUpOVqQi-3Ehon1pvfjg][securegraph][0]: SearchParseException[[securegraph][0]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][1]: SearchParseException[[securegraph][1]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][2]: SearchParseException[[securegraph][2]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][3]: SearchParseException[[securegraph][3]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][4]: SearchParseException[[securegraph][4]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:179)
    at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:523)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
2014-06-11 17:18:16.841:WARN:oejs.ServletHandler:/lumify/login
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[FIzUpOVqQi-3Ehon1pvfjg][securegraph][0]: SearchParseException[[securegraph][0]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][1]: SearchParseException[[securegraph][1]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][2]: SearchParseException[[securegraph][2]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][3]: SearchParseException[[securegraph][3]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }{[FIzUpOVqQi-3Ehon1pvfjg][securegraph][4]: SearchParseException[[securegraph][4]: from[0],size[100]: Parse Failure [Failed to parse source [{"from":0,"size":100,"query":{"function_score":{"query":{"match_all":{}},"script_score":{"script":"_score  * sqrt(inEdgeMultiplier * (1 + doc['__inEdgeCount'].value)) * sqrt(outEdgeMultiplier * (1 + doc['__outEdgeCount'].value))","params":{"outEdgeMultiplier":1.1,"inEdgeMultiplier":1.2}}}},"post_filter":{"and":{"filters":[{"terms":{"__elementType":["vertex"]}},{"term":{"http://lumify.io/user/username_exactMatch":"root"}},{"term":{"http://lumify.io#conceptType_exactMatch":"http://lumify.io/user"}}]}}}]]]; nested: QueryParsingException[[securegraph] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting disabled]; }
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:179)
    at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:523)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)"
Screen Shot 2014-06-12 at 12.22.09 am.png

Susan Feng

unread,
Jun 11, 2014, 3:03:55 PM6/11/14
to Jayasree Atmakuru, lum...@googlegroups.com
You do not need to keep the /opt/lumify/plugins directory. In addition, according to the screenshot you’ve attached it looks like Lumify is only asking for a username. I’m not sure where you are entering password.

- Susan 

For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2014-06-12 at 12.22.09 am.png>

Jayasree Atmakuru

unread,
Jun 11, 2014, 3:43:51 PM6/11/14
to lum...@googlegroups.com, jayas...@gmail.com, susan...@altamiracorp.com
I dint get option for password at all, it is just asking for username only.
I have two folders lumify-web-auth-username-only, lumify-web-auth-username-password.
I have jars in both the folders.
Can I add the other jar.
Also please give more input about adding jars to lib folder in /opt/lumify/ folder. Do I need add jars of all modules to get the feature?
Please clarify.
...

Susan Feng

unread,
Jun 11, 2014, 3:50:42 PM6/11/14
to Jayasree Atmakuru, lum...@googlegroups.com
Depending on what type of Authentication you would like to use is which jar you would put in that directory. For instance, if you didn’t care about the user password you would use username only and if you want password you would put the username-password jar.

- Susan

Jayasree Atmakuru

unread,
Jun 12, 2014, 2:44:20 AM6/12/14
to lum...@googlegroups.com
what are the default  values for username-only jar and username-password.jar?

Susan Feng

unread,
Jun 12, 2014, 8:19:48 AM6/12/14
to Jayasree Atmakuru, lum...@googlegroups.com
Each of those jars are different types of authentication for your users. If you use the username only authentication,  your user will only need to provide a username of their choice. If you use the username and password option, your user will need to provide a username and password of their choice.

- Susan

> --
> You received this message because you are subscribed to the Google Groups "Lumify" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to lumify+un...@googlegroups.com.
> Visit this group at http://groups.google.com/group/lumify.

> To view this discussion on the web visit https://groups.google.com/d/msgid/lumify/240b733d-bb19-4da2-aeaf-a13ee8542bbd%40googlegroups.com.

Jeff Kunkle

unread,
Jun 12, 2014, 9:12:00 AM6/12/14
to lum...@googlegroups.com
It's important to note that the username only authentication is really no authentication at all and is only intended for development or demo use.
> To view this discussion on the web visit https://groups.google.com/d/msgid/lumify/39c5089a1d55478190a4e228f0d39a56%40BN1PR01MB086.prod.exchangelabs.com.

Jayasree Atmakuru

unread,
Jun 12, 2014, 10:10:40 AM6/12/14
to lum...@googlegroups.com

Hi Jeff,

From which file the username and password are comparing. I tried all general username and password. But getting "Invalid Username and password error". (Where should I mention username and password of my choice)

And the service it is calling "https://localhost:8443/lumify/user/me" is showing 403 forbidden error in web console.
Please find the screen shot.

regards,
jayasree.A
Screen Shot 2014-06-12 at 7.38.29 pm.png

justin...@gmail.com

unread,
Jun 12, 2014, 9:18:52 PM6/12/14
to lum...@googlegroups.com, jayas...@gmail.com, susan...@altamiracorp.com
Even though it sounds like others have address at least some of your issue it looks like you need to enable scripting in elasticsearch. Scripts are used to calculate the score of some of the elements stored there. Versions 1.1 and earlier have scripting enabled by default but 1.2 turned it off because of security issues. It was the kind of security issue that can return arbitrary files so it's kind of a big deal...

this can be added to your elasticsearch.yml file:
script.disable_dynamic: false

Jayasree Atmakuru

unread,
Jun 16, 2014, 3:51:53 AM6/16/14
to lum...@googlegroups.com, jayas...@gmail.com, susan...@altamiracorp.com
Thank you, I did then same change to my elastice search yaml file. And it worked. Thanks again. 
Message has been deleted

Matteo Busanelli

unread,
Mar 5, 2015, 6:17:43 AM3/5/15
to lum...@googlegroups.com
Hi all,
    I have the same problem. How can I set username and passowrd for admin or add new user using lumify-web-auth-username-password plugins ?

At the moment I have no way to log in!

Thanx,
MB

David Singley

unread,
Mar 6, 2015, 11:05:03 AM3/6/15
to lum...@googlegroups.com

It is available in the CLI jar:

mvn package -pl tools/cli -am -DskipTests

And then you can run it with no options to see the usage:

java -jar tools/cli/target/lumify-cli-0.4.1-SNAPSHOT-with-dependencies.jar UserAdmin

or start by listing the current users:

java -jar tools/cli/target/lumify-cli-0.4.1-SNAPSHOT-with-dependencies.jar UserAdmin list -t

Reply all
Reply to author
Forward
0 new messages