Error while running glu agent in windows

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error while running glu agent in windows

BhagatSingh
I am getting following error when I am trying to run glu agent in windows, any clue?:


2013/12/26 14:38:46.045 INFO [AgentMain] java version "1.7.0_45" | Java(TM) SE Runtime Environment (build 1.7.0_45-b18) | Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
2013/12/26 14:38:46.646 INFO [AgentMain] Agent ZooKeeper name: bhagat-agent-2
2013/12/26 14:38:46.684 INFO [ZooKeeper] Client environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
2013/12/26 14:38:46.685 INFO [ZooKeeper] Client environment:host.name=xxxxxxxxxx
2013/12/26 14:38:46.685 INFO [ZooKeeper] Client environment:java.version=1.7.0_45
2013/12/26 14:38:46.685 INFO [ZooKeeper] Client environment:java.vendor=Oracle Corporation
2013/12/26 14:38:46.685 INFO [ZooKeeper] Client environment:java.home=C:\projects\Tools\jdk1.7.0_45_x64\jre
2013/12/26 14:38:46.685 INFO [ZooKeeper] Client environment:java.class.path=lib/ant-1.8.2.jar;lib/ant-launcher-1.8.2.jar;lib/commons-cli-1.2.jar;lib/commons-io-2.1.jar;lib/groovy-all-2.0.7.jar;lib/hamcrest-core-1.1.jar;lib/ivy-2.2.0.jar;lib/jackson-annotations-2.1.4.jar;lib/jackson-core-2.1.4.jar;lib/jackson-databind-2.1.4.jar;lib/javax.servlet-2.5.0.v201103041518.jar;lib/jetty-ajp-7.6.5.v20120716.jar;lib/jetty-continuation-7.6.5.v20120716.jar;lib/jetty-http-7.6.5.v20120716.jar;lib/jetty-io-7.6.5.v20120716.jar;lib/jetty-server-7.6.5.v20120716.jar;lib/jetty-util-7.6.5.v20120716.jar;lib/jline-0.9.94.jar;lib/json-20090211.jar;lib/jsslutils-1.0.5.jar;lib/jul-to-slf4j-1.6.2.jar;lib/junit-4.10.jar;lib/log4j-1.2.16.jar;lib/mime-util-2.1.3.jar;lib/netty-3.2.2.Final.jar;lib/org.linkedin.glu.agent-api-5.4.1.jar;lib/org.linkedin.glu.agent-impl-5.4.1.jar;lib/org.linkedin.glu.agent-rest-common-5.4.1.jar;lib/org.linkedin.glu.agent-rest-resources-5.4.1.jar;lib/org.linkedin.glu.agent-server-impl-5.4.1.jar;lib/org.linkedin.glu.commands-impl-5.4.1.jar;lib/org.linkedin.glu.utils-5.4.1.jar;lib/org.linkedin.util-core-2.0.2.jar;lib/org.linkedin.util-groovy-2.0.2.jar;lib/org.linkedin.zookeeper-impl-2.0.2.jar;lib/org.restlet-2.1.2.jar;lib/org.restlet.ext.jetty-2.1.2.jar;lib/org.restlet.ext.json-2.1.2.jar;lib/org.restlet.ext.ssl-2.1.2.jar;lib/org.restlet.lib.org.json-2.0.jar;lib/servlet-api-2.5.jar;lib/sigar-1.6.4.jar;lib/slf4j-api-1.6.2.jar;lib/slf4j-log4j12-1.6.2.jar;lib/zookeeper-3.4.5.jar;/appl/pm/vendor/jdk1.7.0/lx-x86_64/lib/tools.jar
2013/12/26 14:38:46.686 INFO [ZooKeeper] Client environment:java.library.path=C:\projects\Tools\jdk1.7.0_45_x64\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\oracle\product\11.2.0\client_32;c:\oracle\product\11.2.0\client_32\bin;C:\sybase\OCS-15_0\dll;C:\sybase\OCS-15_0\bin;C:\sybase\OCS-12_5\dll;C:\sybase\OCS-15_0\lib3p;C:\sybase\DataAccess\OLEDB\dll;C:\sybase\DataAccess\ODBC\dll;C:\sybase\DataAccess\ADONET\dll;C:\sybase\IQ-15_0\bin32;C:\Program Files (x86)\AMD APP\bin\x86_64;W:\pm\pvcs\install\vm\common\bin\win32;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\projects\Tools\jdk1.7.0_45_x64\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\IBM\WebSphere MQ\bin64;C:\Program Files (x86)\IBM\WebSphere MQ\bin;C:\Program Files (x86)\IBM\WebSphere MQ\tools\c\samples\bin;C:\Windows\system32;C:\Windows;c:\xxxx\bin;c:\xxxx\dll;c:\sybase\dll;c:\sybase\bin;c:\cobol\exedll;z:\app\ims\batch;z:\app\ims\bin;z:\app\ims\util;c:\program files\businessobjects;W:\pimprod\global\bin;W:\pimprod\global\bin64;W:\pm\vendor\SymphonyClient\current\lib;W:\pm\vendor\SymphonyClient\current\lib64;.
2013/12/26 14:38:46.686 INFO [ZooKeeper] Client environment:java.io.tmpdir=C:/projects/glu/install/org.linkedin.glu.agent-server-bhagat-agent-2-12909-zkc1-5.4.1/data/tmp
2013/12/26 14:38:46.687 INFO [ZooKeeper] Client environment:java.compiler=<NA>
2013/12/26 14:38:46.687 INFO [ZooKeeper] Client environment:os.name=Windows 7
2013/12/26 14:38:46.687 INFO [ZooKeeper] Client environment:os.arch=amd64
2013/12/26 14:38:46.687 INFO [ZooKeeper] Client environment:os.version=6.1
2013/12/26 14:38:46.687 INFO [ZooKeeper] Client environment:user.name=bsingh
2013/12/26 14:38:46.688 INFO [ZooKeeper] Client environment:user.home=C:\Users\bsingh
2013/12/26 14:38:46.688 INFO [ZooKeeper] Client environment:user.dir=C:\projects\glu\install\org.linkedin.glu.agent-server-bhagat-agent-2-12909-zkc1-5.4.1\5.4.1
2013/12/26 14:38:46.690 INFO [ZooKeeper] Initiating client connection, connectString=devpmapp1.xxxx.imswest.sscims.com:2188 sessionTimeout=5000 watcher=org.linkedin.zookeeper.client.ZKClient$UniqueWatcher@6ee33b3d
2013/12/26 14:38:46.723 INFO [ClientCnxn] Opening socket connection to server devpmapp1.xxxx.imswest.sscims.com/144.77.43.31:2188. Will not attempt to authenticate using SASL (unknown error)
2013/12/26 14:38:46.725 INFO [ClientCnxn] Socket connection established to devpmapp1.xxxx.imswest.sscims.com/144.77.43.31:2188, initiating session
2013/12/26 14:38:46.732 INFO [ClientCnxn] Session establishment complete on server devpmapp1.xxxx.imswest.sscims.com/144.77.43.31:2188, sessionid = 0x142ee12d40f002c, negotiated timeout = 5000
2013/12/26 14:38:46.769 INFO [AgentMain] Agent fabric: fabric-dev
2013/12/26 14:38:47.181 WARN [AgentMain] Cannot load the Sigar library [no sigar-amd64-winnt.dll in java.library.path]... ignoring
2013/12/26 14:38:47.220 ERROR [AgentMain] unexpected error... terminating
java.io.IOException: Unable to rename C:\projects\glu\install\org.linkedin.glu.agent-server-bhagat-agent-2-12909-zkc1-5.4.1\data\config\++tmp.agent.properties.1ebb5a15-5e85-4cf3-92ca-79aa932c9038.tmp++ to C:\projects\glu\install\org.linkedin.glu.agent-server-bhagat-agent-2-12909-zkc1-5.4.1\data\config\agent.properties

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
        at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
        at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
        at org.linkedin.groovy.util.io.GroovyIOUtils.safeOverwrite(GroovyIOUtils.groovy:299)
        at org.linkedin.groovy.util.io.GroovyIOUtils$safeOverwrite$0.callStatic(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:173)
        at org.linkedin.groovy.util.io.GroovyIOUtils.safeOverwrite(GroovyIOUtils.groovy:262)
        at org.linkedin.groovy.util.io.GroovyIOUtils$safeOverwrite.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
        at org.linkedin.glu.agent.impl.storage.AgentProperties.save(AgentProperties.groovy:136)
        at org.linkedin.glu.agent.impl.storage.AgentProperties$save.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.server.AgentMain.savePersistentProperties(AgentMain.groovy:343)
        at org.linkedin.glu.agent.server.AgentMain$savePersistentProperties.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
        at org.linkedin.glu.agent.server.AgentMain.init(AgentMain.groovy:251)
        at org.linkedin.glu.agent.server.AgentMain$init.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.server.AgentMain.main(AgentMain.groovy:945)



Thanks!
BS

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
Fixed by removing agent.properties file from C:\projects\glu\install\org.linkedin.glu.agent-server-bhagat-agent-2-12909-zkc1-5.4.1\data\config\agent.properties location.

But now I am getting following error:

2013/12/26 15:02:55.042 INFO [AgentMain] Feature [commands] => [enabled]
2013/12/26 15:02:55.114 ERROR [AgentMain] unexpected error... terminating
java.net.MalformedURLException: unknown protocol: c
        at java.net.URL.<init>(URL.java:592)
        at java.net.URL.<init>(URL.java:482)
        at java.net.URL.<init>(URL.java:431)
        at java.net.URI.toURL(URI.java:1096)
        at java_net_URI$toURL.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.groovy.util.io.GroovyIOUtils$_toFileWithTempStatus_closure1.doCall(GroovyIOUtils.groovy:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
        at groovy.lang.Closure.call(Closure.java:412)
        at groovy.lang.Closure.call(Closure.java:425)
        at org.codehaus.groovy.runtime.IOGroovyMethods.withStream(IOGroovyMethods.java:1248)
        at org.codehaus.groovy.runtime.ResourceGroovyMethods.withOutputStream(ResourceGroovyMethods.java:1508)
        at org.codehaus.groovy.runtime.dgm$846.invoke(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.groovy.util.io.GroovyIOUtils.toFileWithTempStatus(GroovyIOUtils.groovy:103)
        at org.linkedin.groovy.util.io.GroovyIOUtils$toFileWithTempStatus.callStatic(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
        at org.linkedin.groovy.util.io.GroovyIOUtils$toFileWithTempStatus.callStatic(Unknown Source)
        at org.linkedin.groovy.util.io.GroovyIOUtils.toFile(GroovyIOUtils.groovy:57)
        at org.linkedin.groovy.util.io.GroovyIOUtils$toFile$0.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.linkedin.groovy.util.io.GroovyIOUtils$toFile$0.call(Unknown Source)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.toResourceWithParents(FileSystemImpl.groovy:470)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.this$2$toResourceWithParents(FileSystemImpl.groovy)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toResourceWithParents.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toResourceWithParents.callCurrent(Unknown Source)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.toFile(FileSystemImpl.groovy:459)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.this$2$toFile(FileSystemImpl.groovy)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toFile$0.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toFile$0.callCurrent(Unknown Source)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.toFile(FileSystemImpl.groovy:454)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.this$2$toFile(FileSystemImpl.groovy)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toFile.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toFile.callCurrent(Unknown Source)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.newFileSystem(FileSystemImpl.groovy:70)
        at org.linkedin.groovy.util.io.fs.FileSystem$newFileSystem.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.server.AgentMain.createCommandsManager(AgentMain.groovy:717)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
        at org.linkedin.glu.agent.server.AgentMain.start(AgentMain.groovy:487)
        at org.linkedin.glu.agent.server.AgentMain.start(AgentMain.groovy:454)
        at org.linkedin.glu.agent.server.AgentMain.startAndWait(AgentMain.groovy:448)
        at org.linkedin.glu.agent.server.AgentMain$startAndWait.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.glu.agent.server.AgentMain.main(AgentMain.groovy:946)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
This post was updated on .
The above problem got fixed but now I am getting this error:

2013/12/26 16:55:44.267 INFO [AgentMain] Feature [commands] => [enabled]
2013/12/26 16:55:44.707 ERROR [AgentMain] unexpected error... terminating
java.util.concurrent.ExecutionException: org.linkedin.glu.agent.api.ScriptExecutionException: script=org.linkedin.glu.agent.impl.script.RootScript [/], action=install
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:188)
        at java_util_concurrent_Future$get$0.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.glu.groovy.utils.concurrent.FutureTaskExecution.get(FutureTaskExecution.groovy:278)
        at java_util_concurrent_Future$get.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.glu.agent.impl.script.ScriptManagerImpl.installRootScript(ScriptManagerImpl.groovy:82)
        at org.linkedin.glu.agent.impl.script.ScriptManager$installRootScript.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.impl.script.StateKeeperScriptManager.installRootScript(StateKeeperScriptManager.groovy:116)
        at org.linkedin.glu.agent.impl.script.ScriptManager$installRootScript.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.impl.AgentImpl.boot(AgentImpl.groovy:121)
        at org.linkedin.glu.agent.impl.AgentImpl$boot.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.server.AgentMain.start(AgentMain.groovy:494)
        at org.linkedin.glu.agent.server.AgentMain.start(AgentMain.groovy:454)
        at org.linkedin.glu.agent.server.AgentMain.startAndWait(AgentMain.groovy:448)
        at org.linkedin.glu.agent.server.AgentMain$startAndWait.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.glu.agent.server.AgentMain.main(AgentMain.groovy:946)
Caused by: org.linkedin.glu.agent.api.ScriptExecutionException: script=org.linkedin.glu.agent.impl.script.RootScript [/], action=install
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
        at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:202)
        at org.linkedin.glu.agent.impl.script.ScriptWrapperImpl$_getAvailableActionsClosures_closure1_closure3_closure4.doCall(ScriptWrapperImpl.groovy:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.groovy.util.state.StateMachineImpl.doExecute(StateMachineImpl.groovy:391)
        at org.linkedin.groovy.util.state.StateMachineImpl.this$2$doExecute(StateMachineImpl.groovy)
        at org.linkedin.groovy.util.state.StateMachineImpl$this$2$doExecute.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
        at org.linkedin.groovy.util.state.StateMachineImpl.executeAction(StateMachineImpl.groovy:319)
        at org.linkedin.groovy.util.state.StateMachine$executeAction.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
        at org.linkedin.glu.agent.impl.script.ScriptWrapperImpl$_getAvailableActionsClosures_closure1_closure3.doCall(ScriptWrapperImpl.groovy:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
        at org.linkedin.glu.agent.impl.script.ScriptWrapperImpl$__clinit__closure2_closure5_closure7.doCall(ScriptWrapperImpl.groovy:42)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaMethod.invoke(ClosureMetaMethod.java:80)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSite.invoke(PojoMetaMethodSite.java:189)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
        at org.linkedin.glu.groovy.utils.concurrent.Invocation.execute(Invocation.groovy:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
        at org.linkedin.glu.groovy.utils.concurrent.FutureTaskExecution$_closure1.doCall(FutureTaskExecution.groovy:215)
        at org.linkedin.glu.groovy.utils.concurrent.FutureTaskExecution$_closure1.doCall(FutureTaskExecution.groovy)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.glu.groovy.utils.concurrent.GluGroovyConcurrentUtils$1.call(GluGroovyConcurrentUtils.groovy:40)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java_util_concurrent_RunnableFuture$run$0.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.glu.groovy.utils.concurrent.FutureTaskExecution.run(FutureTaskExecution.groovy:167)
        at java_util_concurrent_RunnableFuture$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.linkedin.glu.agent.impl.script.ScriptExecution$_closure2.doCall(ScriptExecution.groovy:591)
        at org.linkedin.glu.agent.impl.script.ScriptExecution$_closure2.doCall(ScriptExecution.groovy)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
        at groovy.lang.Closure.call(Closure.java:412)
        at groovy.lang.Closure.call(Closure.java:406)
        at groovy.lang.Closure.run(Closure.java:490)
        at java.lang.Thread.run(Thread.java:744)
Caused by: org.linkedin.glu.agent.api.ScriptExecutionCauseException: [java.lang.NullPointerException]: Cannot get property 'class' on null object
        at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
        at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:169)
        at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:44)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
        at org.linkedin.groovy.util.io.fs.SerializableFileResource.toFR(SerializableFileResource.groovy:54)
        at org.linkedin.groovy.util.io.fs.SerializableFileResource$toFR.callStatic(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
        at org.linkedin.groovy.util.io.fs.SerializableFileResource$toFR.callStatic(Unknown Source)
        at org.linkedin.groovy.util.io.fs.SerializableFileResource.createRelative(SerializableFileResource.groovy:123)
        at org.linkedin.util.io.resource.Resource$createRelative.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.toResourceWithParents(FileSystemImpl.groovy:491)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.this$2$toResourceWithParents(FileSystemImpl.groovy)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toResourceWithParents.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl$this$2$toResourceWithParents.callCurrent(Unknown Source)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.toResource(FileSystemImpl.groovy:464)
        at org.linkedin.groovy.util.io.fs.FileSystem$toResource.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
        at org.linkedin.groovy.util.io.fs.FileSystemImpl.mkdirs(FileSystemImpl.groovy:80)
        at org.linkedin.groovy.util.io.fs.FileSystem$mkdirs.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.groovy.utils.shell.ShellImpl.mkdirs(ShellImpl.groovy)
        at org.linkedin.groovy.util.io.fs.FileSystem$mkdirs.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.impl.script.RootScript$_closure1.doCall(RootScript.groovy:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.linkedin.glu.agent.impl.script.ScriptWrapperImpl$_getAvailableActionsClosures_closure1_closure3_closure4.doCall(ScriptWrapperImpl.groovy:65)
        ... 104 more
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
I am stuck at this point. I am not sure what I am missing there. Also wondering why glu agent is going in install phase while starting.

Yan please give some clue what is going wrong there,

Thanks!
BS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

frenchyan
Administrator
I would need a little bit more details than "I am stuck at this point" in order to properly respond.

Yan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
The details (Stack trace) is in the previous post. But here are more details about what I am trying to achieve:
> I have 2 agents, 1 is running on LINUX box(same box where zookeeper and console reside), 2nd agent I am trying to run in Windows.
> In order to run glu agent in Windows I have followed following steps:
1) Copied generated distribution of Glue Windows Agent to C:\projects\glu\agent folder
2) created a windows script (.bat file) to run glu agent in Windows
3) when I start glu agent through run.bat, I did see it is making connection with zookeeper in LINUX box but gets disconnected when glu agent gets terminated because of this exception:
2013/12/26 16:55:44.707 ERROR [AgentMain] unexpected error... terminating
java.util.concurrent.ExecutionException: org.linkedin.glu.agent.api.ScriptExecutionException: script=org.linkedin.glu.agent.impl.script.RootScript [/], action=install


This is the point where I stuck. Please assist.

I have sent model, agentConfig, and run script in email.

Thanks!
BS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

frenchyan
Administrator

Please post on the forum, not to me directly...

Thanks
Yan

On Dec 30, 2013 11:31 AM, "BS [via glu]" <[hidden email]> wrote:
The details (Stack trace) is in the previous post. But here are more details about what I am trying to achieve:
> I have 2 agents, 1 is running on LINUX box(same box where zookeeper and console reside), 2nd agent I am trying to run in Windows.
> In order to run glu agent in Windows I have followed following steps:
1) Copied generated distribution of Glue Windows Agent to C:\projects\glu\agent folder
2) created a windows script (.bat file) to run glu agent in Windows
3) when I start glu agent through run.bat, I did see it is making connection with zookeeper in LINUX box but gets disconnected when glu agent gets terminated because of this exception:
2013/12/26 16:55:44.707 ERROR [AgentMain] unexpected error... terminating
java.util.concurrent.ExecutionException: org.linkedin.glu.agent.api.ScriptExecutionException: script=org.linkedin.glu.agent.impl.script.RootScript [/], action=install


This is the point where I stuck. Please assist.

I have sent model, agentConfig, and run script in email.

Thanks!
BS


If you reply to this email, your message will be added to the discussion below:
http://glu.977617.n3.nabble.com/Error-while-running-glu-agent-in-windows-tp4026387p4026393.html
To start a new topic under glu, email [hidden email]
To unsubscribe from glu, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
Hi Yan,

Waiting for your reply on above issue.

Thanks!
BS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
After adding a if condition in RootScript groovy class, I am able to run Agent in windows and it is also recognized by glu console.

Please see below in snapshot


I am not sure if that is the fix for me.

Changes are in bold below:

 def install = {
    rootPath = mountPoint
    if(rootPath.name != ""){       
          shell.mkdirs(rootPath)
    }
 }

Yan please assist.

Thanks!
BS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

frenchyan
Administrator
Changing the root script to add the "if" statement is going around the real problem. So it will most likely fail at some other point later.

In this specific case I do not know why it is failing. glu is not supported on Windows. There are a couple of people working on porting it and maybe they can help you or have any idea what is going on (this is why it is important to post in the forum so that everybody can see/help).

But my best advise is that, if you want to move forward with glu on Windows, you should compile build and attach a debugger to the agent and/or console to figure out why it is failing on Windows.

Yan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
Thanks Yan,

Yes, I am running Agent in debug mode in Idea on Windows. I didn't spend much time on the root script as I was targeting to complete a full cycle and then go for right solution wherever I found problem.

Just an FYI:
I also added a new method in org.linkedin.glu.groovy.utils.shell.ShellImpl class to untar and move artifact to mount location, it is written in Java(or later in groovy) and so far it is working fine. I am trying to replace things which we are doing through commands with Java/Groovy to remove the environment dependency in deployment cycle (wherever it is possible).

Please advise if you have more ideas.

Thanks!
BS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
frenchyan wrote
Changing the root script to add the "if" statement is going around the real problem. So it will most likely fail at some other point later.

In this specific case I do not know why it is failing. glu is not supported on Windows. There are a couple of people working on porting it and maybe they can help you or have any idea what is going on (this is why it is important to post in the forum so that everybody can see/help).

But my best advise is that, if you want to move forward with glu on Windows, you should compile build and attach a debugger to the agent and/or console to figure out why it is failing on Windows.

Yan
Hi Yan,
I removed if condition today from RootScript which I added earlier and it was working even if I was getting the same exception. This exception comes only at the agent start time.  I think I am good now.

From agent log, just after "java.util.concurrent.ExecutionException: org.linkedin.glu.agent.api.ScriptExecutionException: script=org.linkedin.glu.agent.impl.script.RootScript [/], action=install"

2014/01/08 14:33:12.842 WARN [GroovyLangUtils]
Detected unexpected exception
[Invalid state detected:
        [scriptDefinition:
                [mountPoint:/, parent:null, scriptFactory:
                        [class:org.linkedin.glu.agent.impl.script.FromClassNameScriptFactory, className:org.linkedin.glu.agent.impl.script.RootScript],
                        initParameters:[:]
                ],
                scriptState:[script:[rootPath:/],
                        stateMachine:[currentState:installed]
                ]
        ]
]
[ignored]: java.util.concurrent.ExecutionException: org.linkedin.glu.agent.api.ScriptExecutionException: script=org.linkedin.glu.agent.impl.script.RootScript [/], action=install

2014/01/08 14:33:12.844 INFO [StateKeeperScriptManager] Restoring state:
[
        scriptDefinition:[mountPoint:/projects/glu/agent/apps/sample/i001, parent:/, scriptFactory:[class:org.linkedin.glu.agent.impl.script.FromLocationScriptFactory,
        location:http://devpmapp1:8181/glu/repository/scripts/org.linkedin.glu.script-jetty-5.4.1/PopcornGluScript1.groovy, localScriptFile:file:/C:/projects/glu/agent/org.linkedin.glu.agent-server-bhagat-agent-2-12910-zkc1-5.4.1/data/tmp/projects/glu/agent/apps/sample/i001/__tmp414888877Dir/PopcornGluScript1.groovy], initParameters:[tags:[frontend, webapp], pingCommand:java -cp popcorn-example-1.1-SNAPSHOT.jar;%JAVA_HOME%/lib/tools.jar com.pimco.popcorn.example.FindApp -name popcorn-example-1.1-SNAPSHOT.jar -popcorn example-1, queue.manager:ibmmq://myibm@betapmmq:1414/betapmmq.queue.manager/SYSTEM.DEF.SVRCONN, spring.http.port:28996, stopCommand:java -cp popcorn-example-1.1-SNAPSHOT.jar;%JAVA_HOME%/lib/tools.jar com.pimco.popcorn.example.ShutdownApp -name popcorn-example-1.1-SNAPSHOT.jar -popcorn example-1, skeleton:http://devpmapp1:8181/glu/repository/tgzs/popcorn.tar.gz, startCommand:java -jar popcorn-example-1.1-SNAPSHOT.jar -c scripts/config.properties, http.port:28998, popcorn.jmx.name:example-1, metadata:[product:product1, container:[name:sample], cluster:c1, version:1.0.0]]], scriptState:[script:[version:@script.version@], stateMachine:[currentState:NONE]]
]

2014/01/08 14:33:13.115 INFO [/projects/glu/agent/apps/sample/i001]
installScript(
        [
                mountPoint:/projects/glu/agent/apps/sample/i001, parent:/, scriptFactory:[class:org.linkedin.glu.agent.impl.script.FromLocationScriptFactory, location:http://devpmapp1:8181/glu/repository/scripts/org.linkedin.glu.script-jetty-5.4.1/PopcornGluScript1.groovy, localScriptFile:file:/C:/projects/glu/agent/org.linkedin.glu.agent-server-bhagat-agent-2-12910-zkc1-5.4.1/data/tmp/projects/glu/agent/apps/sample/i001/__tmp414888877Dir/PopcornGluScript1.groovy], initParameters:[tags:[frontend, webapp], pingCommand:java -cp popcorn-example-1.1-SNAPSHOT.jar;%JAVA_HOME%/lib/tools.jar com.pimco.popcorn.example.FindApp -name popcorn-example-1.1-SNAPSHOT.jar -popcorn example-1, queue.manager:ibmmq://myibm@betapmmq:1414/betapmmq.queue.manager/SYSTEM.DEF.SVRCONN, spring.http.port:28996, stopCommand:java -cp popcorn-example-1.1-SNAPSHOT.jar;%JAVA_HOME%/lib/tools.jar com.pimco.popcorn.example.ShutdownApp -name popcorn-example-1.1-SNAPSHOT.jar -popcorn example-1, skeleton:http://devpmapp1:8181/glu/repository/tgzs/popcorn.tar.gz, startCommand:java -jar popcorn-example-1.1-SNAPSHOT.jar -c scripts/config.properties, http.port:28998, popcorn.jmx.name:example-1, metadata:[product:product1, container:[name:sample], cluster:c1, version:1.0.0]]
        ]
)
2014/01/08 14:33:13.186 WARN [GroovyLangUtils] Detected unexpected exception [ignored]: java.lang.reflect.UndeclaredThrowableException: null

==========================================================

Good news is that I am able to perform following actions from console on Windows Client: 
-Agent
    - View Details
    - Deploy
    - ps
    - Zookeeper Sync
Project/Mount Point:
  - View Details
  - ps
  - Deploy
  - Undeploy
  - Bounce
  - Start
  - Stop
  - Redeploy
  - Force Uninstall

Need to work on:
   Logs: main | gc | more...

Thanks!
BS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

lukestephenon
Hello,

I've got the agent running on windows (started with cygwin) without needing to change the root script.   My fork is https://github.com/lukestephenson/glu.

Luke
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

BhagatSingh
This post was updated on .
Thanks lukestephenon.
Our company doesn't want to go with Cygwin. I am able to run Glu Agent in Windows after making few changes in the following classes:
1- org.linkedin.glu.groovy.utils.shell.ShellImpl
2- org.linkedin.groovy.util.io. GroovyIOUtils​
3- org.linkedin.glu.groovy.utils.shell.ShellExec​
4- org.linkedin.util.io.resource.internal.AbstractResource

Also added few Java classes to untar artifacts.


Thanks!
BS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error while running glu agent in windows

lukestephenon
Hi Bhagat.

Are the changes you made available on a github fork anywhere?

Thanks

Luke
Loading...