Elasticsearch groovy script loading error -


i have installed elasticsearch 2.4.3 on our new ubuntu servers. while starting server got error.

2016-12-22 20:22:56,199][info ][script                   ] [frrole-esprod-data-2-vm4] compiling script file [/etc/elasticsearch/scripts/userintel_updates.groovy] [2016-12-22 20:22:56,201][warn ][script                   ] [frrole-esprod-data-2-vm4] failed load/compile script [userintel_updates] scriptexception[error compiling script 5fe76475eb1c3c852696768a11f91509af4f6564]; nested: multiplecompilationerrorsexception[startup failed: not instantiate global transform class groovy.grape.grabannotationtransformation specified @ jar:file:/usr/share/elasticsearch/modules/lang-groovy/groovy-2.4.6-indy.jar!/meta-inf/services/org.codehaus.groovy.transform.asttransformation  because of exception java.lang.classnotfoundexception: groovy.grape.grabannotationtransformation  not instantiate global transform class org.codehaus.groovy.ast.builder.astbuildertransformation specified @ jar:file:/usr/share/elasticsearch/modules/lang-groovy/groovy-2.4.6-indy.jar!/meta-inf/services/org.codehaus.groovy.transform.asttransformation  because of exception java.lang.classnotfoundexception: org.codehaus.groovy.ast.builder.astbuildertransformation  2 errors ];     @ org.elasticsearch.script.groovy.groovyscriptengineservice$2.run(groovyscriptengineservice.java:164)     @ org.elasticsearch.script.groovy.groovyscriptengineservice$2.run(groovyscriptengineservice.java:145)     @ java.security.accesscontroller.doprivileged(native method)     @ org.elasticsearch.script.groovy.groovyscriptengineservice.compile(groovyscriptengineservice.java:145)     @ org.elasticsearch.script.scriptservice$scriptchangeslistener.onfileinit(scriptservice.java:543)     @ org.elasticsearch.watcher.filewatcher$fileobserver.onfilecreated(filewatcher.java:256)     @ org.elasticsearch.watcher.filewatcher$fileobserver.init(filewatcher.java:166)     @ org.elasticsearch.watcher.filewatcher$fileobserver.createchild(filewatcher.java:173)     @ org.elasticsearch.watcher.filewatcher$fileobserver.listchildren(filewatcher.java:188)     @ org.elasticsearch.watcher.filewatcher$fileobserver.ondirectorycreated(filewatcher.java:299)     @ org.elasticsearch.watcher.filewatcher$fileobserver.init(filewatcher.java:162)     @ org.elasticsearch.watcher.filewatcher$fileobserver.access$000(filewatcher.java:75)     @ org.elasticsearch.watcher.filewatcher.doinit(filewatcher.java:65)     @ org.elasticsearch.watcher.abstractresourcewatcher.init(abstractresourcewatcher.java:36)     @ org.elasticsearch.watcher.resourcewatcherservice.add(resourcewatcherservice.java:133)     @ org.elasticsearch.watcher.resourcewatcherservice.add(resourcewatcherservice.java:126)     @ org.elasticsearch.script.scriptservice.<init>(scriptservice.java:191)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)     @ java.lang.reflect.constructor.newinstance(constructor.java:423)     @ org.elasticsearch.common.inject.defaultconstructionproxyfactory$1.newinstance(defaultconstructionproxyfactory.java:50)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:86)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.singlemethodinjector.inject(singlemethodinjector.java:70)     @ org.elasticsearch.common.inject.membersinjectorimpl.injectmembers(membersinjectorimpl.java:96)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:95)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.factoryproxy.get(factoryproxy.java:54)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.factoryproxy.get(factoryproxy.java:54)     @ org.elasticsearch.common.inject.injectorimpl$4$1.call(injectorimpl.java:823)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.injectorimpl$4.get(injectorimpl.java:818)     @ org.elasticsearch.common.inject.multibindings.multibinder$realmultibinder.get(multibinder.java:271)     @ org.elasticsearch.common.inject.multibindings.multibinder$realmultibinder.get(multibinder.java:195)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.factoryproxy.get(factoryproxy.java:54)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.injectorimpl$4$1.call(injectorimpl.java:823)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.injectorimpl$4.get(injectorimpl.java:818)     @ org.elasticsearch.common.inject.spi.providerlookup$providerimpl.get(providerlookup.java:50)     @ org.elasticsearch.common.inject.multibindings.mapbinder$realmapbinder$1.get(mapbinder.java:323)     @ org.elasticsearch.common.inject.multibindings.mapbinder$realmapbinder$1.get(mapbinder.java:318)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.factoryproxy.get(factoryproxy.java:54)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.factoryproxy.get(factoryproxy.java:54)     @ org.elasticsearch.common.inject.injectorimpl$4$1.call(injectorimpl.java:823)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.injectorimpl$4.get(injectorimpl.java:818)     @ org.elasticsearch.common.inject.multibindings.multibinder$realmultibinder.get(multibinder.java:271)     @ org.elasticsearch.common.inject.multibindings.multibinder$realmultibinder.get(multibinder.java:195)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.singleparameterinjector.inject(singleparameterinjector.java:42)     @ org.elasticsearch.common.inject.singleparameterinjector.getall(singleparameterinjector.java:66)     @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:85)     @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:104)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter$1.call(providertointernalfactoryadapter.java:47)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:886)     @ org.elasticsearch.common.inject.providertointernalfactoryadapter.get(providertointernalfactoryadapter.java:43)     @ org.elasticsearch.common.inject.scopes$1$1.get(scopes.java:59)     @ org.elasticsearch.common.inject.internalfactorytoprovideradapter.get(internalfactorytoprovideradapter.java:46)     @ org.elasticsearch.common.inject.injectorbuilder$1.call(injectorbuilder.java:201)     @ org.elasticsearch.common.inject.injectorbuilder$1.call(injectorbuilder.java:193)     @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:879)     @ org.elasticsearch.common.inject.injectorbuilder.loadeagersingletons(injectorbuilder.java:193)     @ org.elasticsearch.common.inject.injectorbuilder.injectdynamically(injectorbuilder.java:175)     @ org.elasticsearch.common.inject.injectorbuilder.build(injectorbuilder.java:110)     @ org.elasticsearch.common.inject.guice.createinjector(guice.java:93)     @ org.elasticsearch.common.inject.guice.createinjector(guice.java:70)     @ org.elasticsearch.common.inject.modulesbuilder.createinjector(modulesbuilder.java:46)     @ org.elasticsearch.node.node.<init>(node.java:213)     @ org.elasticsearch.node.node.<init>(node.java:140)     @ org.elasticsearch.node.nodebuilder.build(nodebuilder.java:143)     @ org.elasticsearch.bootstrap.bootstrap.setup(bootstrap.java:194)     @ org.elasticsearch.bootstrap.bootstrap.init(bootstrap.java:286)     @ org.elasticsearch.bootstrap.elasticsearch.main(elasticsearch.java:45) caused by: org.codehaus.groovy.control.multiplecompilationerrorsexception: startup failed: not instantiate global transform class groovy.grape.grabannotationtransformation specified @ jar:file:/usr/share/elasticsearch/modules/lang-groovy/groovy-2.4.6-indy.jar!/meta-inf/services/org.codehaus.groovy.transform.asttransformation  because of exception java.lang.classnotfoundexception: groovy.grape.grabannotationtransformation  not instantiate global transform class org.codehaus.groovy.ast.builder.astbuildertransformation specified @ jar:file:/usr/share/elasticsearch/modules/lang-groovy/groovy-2.4.6-indy.jar!/meta-inf/services/org.codehaus.groovy.transform.asttransformation  because of exception java.lang.classnotfoundexception: org.codehaus.groovy.ast.builder.astbuildertransformation  2 errors      @ org.codehaus.groovy.control.errorcollector.failiferrors(errorcollector.java:310)     @ org.codehaus.groovy.control.processingunit.completephase(processingunit.java:144)     @ org.codehaus.groovy.control.processingunit.gotophase(processingunit.java:163)     @ org.codehaus.groovy.control.compilationunit.compile(compilationunit.java:536)     @ groovy.lang.groovyclassloader.doparseclass(groovyclassloader.java:298)     @ groovy.lang.groovyclassloader.parseclass(groovyclassloader.java:268)     @ groovy.lang.groovyclassloader.parseclass(groovyclassloader.java:254)     @ org.elasticsearch.script.groovy.groovyscriptengineservice$2.run(groovyscriptengineservice.java:159)     ... 182 more 

scripts working on our other cluster running elasticsearch 2.4.0. idea why might happening.

is possible, importing special classes in scripts, not supported , need whitelisted? see https://www.elastic.co/guide/en/elasticsearch/reference/2.4/modules-scripting-security.html

you try disabling security manager , see happens (even though should turn on in production!) first try.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -