Beginner questions

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Beginner questions

Andrew G
Bonjour, I am experimenting with glu as a possible automated deployment solution but am running into problems.  I went through the Production Setup in the documentation and have zookeeper and console server running on box A and the agent server running on box B.  Both boxes are RHEL 5.5.  Communication to the agent via the agent-cli works, but I don't see the agent listed in the console server.  In fact, I see 2 messages in the console that suggest I have set something up incorrectly.

1. The Dashboard page at http://boxA:8080/console/ displays this:
Warning!!! Warning!!! Warning!!!
The data you are seeing is not accurate as the console is in the process of loading it from ZooKeeper
Warning!!! Warning!!! Warning!!!

2. The console also shows a red box next to the fabric name in the upper-right corner saying "NOT CONNECTED!"

So I have a few questions:

A. Are these messages expected?
B. Does the NOT CONNECTED message mean the console is not connected to zookeeper?
C. How does the Tracker component talk/listen to zookeeper?
D. If I change the port that zookeeper is listening on, do I need to change the console server in any way?
E. Does zookeeper default to the eforward port (2181) for a particular reason?

I also frequently get 500 errors in the console web app.  I see these exceptions in the console.log:

2011/11/22 12:04:42.727 ERROR [ClientCnxn] from qtp9740137-29-SendThread(devros016:2181)
java.lang.NullPointerException
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1161)

2011/11/22 12:12:14.288 ERROR [GrailsExceptionResolver] org.linkedin.glu.console.controllers.AgentsController$_closure2_closure36
java.lang.ClassNotFoundException: org.linkedin.glu.console.controllers.AgentsController$_closure2_closure36
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:417)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:370)
        at org.linkedin.glu.console.controllers.AgentsController$_closure2.doCall(AgentsController.groovy:62)
        at org.linkedin.glu.console.controllers.AgentsController$_closure2.doCall(AgentsController.groovy)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:285)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:343)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:352)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
        at java.lang.Thread.run(Thread.java:662)

2011/11/22 12:12:14.340 ERROR [GroovyPageView] Error processing GroovyPageView: I/O error reading stream for resource [ServletContext resource [/WEB-INF/grails-app/views/error.gsp]]: Could not open ServletContext resource [/WEB-INF/grails-app/views/error.gsp]
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: I/O error reading stream for resource [ServletContext resource [/WEB-INF/grails-app/views/error.gsp]]: Could not open ServletContext resource [/WEB-INF/grails-app/views/error.gsp]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:285)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:343)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:352)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/grails-app/views/error.gsp]
        ... 54 more

F. Are these due to dependency or system incompatibilities?  Note that error.gsp does exist at that location under console-server/tmp/webapp.

At this point, I'm not really sure what to try next.  I certainly appreciate any help you can provide.  Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Beginner questions

frenchyan
Administrator
Andrew

Did you try to go through the tutorial? I would suggest to first start 'simple' and make sure the tutorial works when everything is setup on a single machine. Then you can go through the production setup for running on multiple boxes. 

Clearly the errors you are seeing should not happen. You should check the warning on the production setup page: are you sure you are using the sun java vm? This is the only thing that comes to mind right now.

And finally which (glu) version are you trying?

Thanks
Yan

On Tue, Nov 22, 2011 at 10:16 AM, Andrew G [via glu] <[hidden email]> wrote:
Bonjour, I am experimenting with glu as a possible automated deployment solution but am running into problems.  I went through the Production Setup in the documentation and have zookeeper and console server running on box A and the agent server running on box B.  Both boxes are RHEL 5.5.  Communication to the agent via the agent-cli works, but I don't see the agent listed in the console server.  In fact, I see 2 messages in the console that suggest I have set something up incorrectly.

1. The Dashboard page at http://boxA:8080/console/ displays this:
Warning!!! Warning!!! Warning!!!
The data you are seeing is not accurate as the console is in the process of loading it from ZooKeeper
Warning!!! Warning!!! Warning!!!

2. The console also shows a red box next to the fabric name in the upper-right corner saying "NOT CONNECTED!"

So I have a few questions:

A. Are these messages expected?
B. Does the NOT CONNECTED message mean the console is not connected to zookeeper?
C. How does the Tracker component talk/listen to zookeeper?
D. If I change the port that zookeeper is listening on, do I need to change the console server in any way?
E. Does zookeeper default to the eforward port (2181) for a particular reason?

I also frequently get 500 errors in the console web app.  I see these exceptions in the console.log:

2011/11/22 12:04:42.727 ERROR [ClientCnxn] from qtp9740137-29-SendThread(devros016:2181)
java.lang.NullPointerException
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1161)

2011/11/22 12:12:14.288 ERROR [GrailsExceptionResolver] org.linkedin.glu.console.controllers.AgentsController$_closure2_closure36
java.lang.ClassNotFoundException: org.linkedin.glu.console.controllers.AgentsController$_closure2_closure36
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:417)
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:370)
        at org.linkedin.glu.console.controllers.AgentsController$_closure2.doCall(AgentsController.groovy:62)
        at org.linkedin.glu.console.controllers.AgentsController$_closure2.doCall(AgentsController.groovy)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:285)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:343)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:352)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
        at java.lang.Thread.run(Thread.java:662)

2011/11/22 12:12:14.340 ERROR [GroovyPageView] Error processing GroovyPageView: I/O error reading stream for resource [ServletContext resource [/WEB-INF/grails-app/views/error.gsp]]: Could not open ServletContext resource [/WEB-INF/grails-app/views/error.gsp]
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: I/O error reading stream for resource [ServletContext resource [/WEB-INF/grails-app/views/error.gsp]]: Could not open ServletContext resource [/WEB-INF/grails-app/views/error.gsp]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:285)
        at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:343)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:352)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/grails-app/views/error.gsp]
        ... 54 more

F. Are these due to dependency or system incompatibilities?  Note that error.gsp does exist at that location under console-server/tmp/webapp.

At this point, I'm not really sure what to try next.  I certainly appreciate any help you can provide.  Thanks.


If you reply to this email, your message will be added to the discussion below:
http://glu.977617.n3.nabble.com/Beginner-questions-tp3528557p3528557.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
|

Re: Beginner questions

Andrew G
In reply to this post by Andrew G
Note that I have gone through the tutorial and everything worked except for the console-cli, which is because it requires python 2.6 but my system has many dependencies on python 2.4.

Regardless of console-cli, the tutorial has helped me verify that the main components (zookeeper, console, agent) should work in my environment.  So I'm still stuck with the aforementioned problems.
Reply | Threaded
Open this post in threaded view
|

Re: Beginner questions

Andrew G
In reply to this post by frenchyan
Sorry, Yan, just saw your post.

Yes, I have gone through the tutorial (see my 2nd post).

Yes, I made sure to use Sun's JVM instead of OpenJDK.  My specific version is:
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode)

I am using glu version 4.0.0.
Reply | Threaded
Open this post in threaded view
|

Re: Beginner questions

frenchyan
Administrator
Hmmm. I am not sure what is going on. Let me try to answer your question and see if we can make some progress:

A: no. You should not see those messages unless the console is not connected to ZooKeeper (easy to see them by simply shutting down zookeeper...)

B: yes

C: when you create a fabric (which is the very first thing you do when you login the first time), you give it a host:port combination for ZooKeeper. This information is used by the tracker component and under the cover simply delegate to zookeeper code. You can go to the Admin tab and verify/change the zookeeper information for your fabric (if you have moved your zookeeper to a different host but left "localhost" (which is what is used in the tutorial), it could explain why it is not working

D: yes. same way I mentioned in C (Admin tab and then fabric section...)

E: this is the default port as assigned by ZooKeeper itself (ZooKeeper is an apache product). I don't know if there is a specific reason but it is totally ok to change it. Obviously the console need to point to the right zookeeper (see C & D) as well as the agent which can be provided its ZooKeeper configuration through many ways (see documentation)

Clearly the exceptions are not ok. The class not found one is very very odd. Could you look in the war file of the console if that class even exist?

It seems that most likely at this stage it is a ZooKeeper misconfiguration either on the console side or on the agent side (or both). 4.0.0 was released very recently and although I tested it in length, it may contain some issues. If you are unable to fix the issue, I would suggest trying with the previous release (3.4.0)

I will try on my end to see if I can reproduce any issue when there is no ZooKeeper to connect to.

Thanks
Yan
Reply | Threaded
Open this post in threaded view
|

Re: Beginner questions

Andrew G
Thanks, Yan.

Actually, I was able to clear up the "NOT CONNECTED" problem in the console by specifying "localhost:2181" as the Zk Connect String for my fabric instead of using "hostname:2181".  For some reason I was thinking the zookeeper address needed to be the same as that defined in the agent.  Console is looking much better now.  Thanks for that clue.

Only problem I see now is that my agent is not listed under the Agents tab, but I do see it as an assigned agent under Admin > View agents fabric.  Is this expected?  Do I need to add the agent to the static model first?

Looks like I'm still missing something as I see this exception in the agent log (org.linkedin.glu.agent-server.out):

2011/11/22 18:06:32.066 INFO [AgentMain] Agent fabric: dev-webapps
2011/11/22 18:06:32.504 DEBUG [ClientCnxn] Reading reply sessionid:0x133cd79e4bc0003, packet:: clientPath:null serverPath:null finished:false header:: 3,4  replyHeader:: 3,20,-101  request:: '/org/glu/agents/fabrics/dev-webapps/config/config.properties,F  response::
Exception in thread "main" java.io.IOException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /org/glu/agents/fabrics/dev-webapps/config/config.properties
        at org.linkedin.zookeeper.client.ZooKeeperURLHandler$ZooKeeperURLConnection.getInputStream(ZooKeeperURLHandler.java:74)
        at org.apache.tools.ant.types.resources.URLResource.getInputStream(URLResource.java:335)
        at org.apache.tools.ant.taskdefs.LoadProperties.execute(LoadProperties.java:167)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at groovy.util.AntBuilder.performTask(AntBuilder.java:250)
        at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:212)
        at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
        at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:166)
        at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
        at org.linkedin.glu.agent.server.AgentMain$_readConfig_closure15.doCall(AgentMain.groovy:772)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
        at org.linkedin.groovy.util.ant.AntUtils.withBuilder(AntUtils.groovy:42)
        at org.linkedin.groovy.util.ant.AntUtils$withBuilder.call(Unknown Source)
        at org.linkedin.glu.agent.server.AgentMain.readConfig(AgentMain.groovy:768)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:266)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
        at org.linkedin.glu.agent.server.AgentMain.init(AgentMain.groovy:204)
        at org.linkedin.glu.agent.server.AgentMain$init.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
        at org.linkedin.glu.agent.server.AgentMain.main(AgentMain.groovy:759)
Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /org/glu/agents/fabrics/dev-webapps/config/config.properties
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
        at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:921)
        at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:950)
        at org.linkedin.zookeeper.client.ZooKeeperImpl.getData(ZooKeeperImpl.java:178)
        at org.linkedin.zookeeper.client.AbstractZooKeeper.getData(AbstractZooKeeper.java:200)
        at org.linkedin.zookeeper.client.AbstractZKClient.getData(AbstractZKClient.java:130)
        at org.linkedin.zookeeper.client.ZooKeeperURLHandler$ZooKeeperURLConnection.getInputStream(ZooKeeperURLHandler.java:62)
        ... 45 more

P.S. Sorry if posting the entire stacktrace makes this annoying to read, but I figure you may get an immediate reaction like "oh, that's the problem" from it.
Reply | Threaded
Open this post in threaded view
|

Re: Beginner questions

frenchyan
Administrator
The agent is not appearing in the console because it did not boot properly as the stack trace you are seeing is proving. I believe the issue is that you missed step 5: http://linkedin.github.com/glu/docs/latest/html/production-setup.html#step-5-prepare-zookeeper

When the agent boots it tries to read its configuration from zookeeper. The exception you are getting (NoNode for /org/glu/agents/fabrics/dev-webapps/config/config.properties) means that you have not loaded the configuration for the dev-webapps fabric and this is what is explained in step 5

After completing step 5, your agent should now boot properly

Yan

On Tue, Nov 22, 2011 at 3:23 PM, Andrew G [via glu] <[hidden email]> wrote:
Thanks, Yan.

Actually, I was able to clear up the "NOT CONNECTED" problem in the console by specifying "localhost:2181" as the Zk Connect String for my fabric instead of using "hostname:2181".  For some reason I was thinking the zookeeper address needed to be the same as that defined in the agent.  Console is looking much better now.  Thanks for that clue.

Only problem I see now is that my agent is not listed under the Agents tab, but I do see it as an assigned agent under Admin > View agents fabric.  Is this expected?  Do I need to add the agent to the static model first?

Looks like I'm still missing something as I see this exception in the agent log (org.linkedin.glu.agent-server.out):

2011/11/22 18:06:32.066 INFO [AgentMain] Agent fabric: dev-webapps
2011/11/22 18:06:32.504 DEBUG [ClientCnxn] Reading reply sessionid:0x133cd79e4bc0003, packet:: clientPath:null serverPath:null finished:false header:: 3,4  replyHeader:: 3,20,-101  request:: '/org/glu/agents/fabrics/dev-webapps/config/config.properties,F  response::
Exception in thread "main" java.io.IOException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /org/glu/agents/fabrics/dev-webapps/config/config.properties
        at org.linkedin.zookeeper.client.ZooKeeperURLHandler$ZooKeeperURLConnection.getInputStream(ZooKeeperURLHandler.java:74)
        at org.apache.tools.ant.types.resources.URLResource.getInputStream(URLResource.java:335)
        at org.apache.tools.ant.taskdefs.LoadProperties.execute(LoadProperties.java:167)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at groovy.util.AntBuilder.performTask(AntBuilder.java:250)
        at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:212)
        at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
        at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:166)
        at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
        at org.linkedin.glu.agent.server.AgentMain$_readConfig_closure15.doCall(AgentMain.groovy:772)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
        at org.linkedin.groovy.util.ant.AntUtils.withBuilder(AntUtils.groovy:42)
        at org.linkedin.groovy.util.ant.AntUtils$withBuilder.call(Unknown Source)
        at org.linkedin.glu.agent.server.AgentMain.readConfig(AgentMain.groovy:768)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:266)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
        at org.linkedin.glu.agent.server.AgentMain.init(AgentMain.groovy:204)
        at org.linkedin.glu.agent.server.AgentMain$init.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
        at org.linkedin.glu.agent.server.AgentMain.main(AgentMain.groovy:759)
Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /org/glu/agents/fabrics/dev-webapps/config/config.properties
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
        at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:921)
        at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:950)
        at org.linkedin.zookeeper.client.ZooKeeperImpl.getData(ZooKeeperImpl.java:178)
        at org.linkedin.zookeeper.client.AbstractZooKeeper.getData(AbstractZooKeeper.java:200)
        at org.linkedin.zookeeper.client.AbstractZKClient.getData(AbstractZKClient.java:130)
        at org.linkedin.zookeeper.client.ZooKeeperURLHandler$ZooKeeperURLConnection.getInputStream(ZooKeeperURLHandler.java:62)
        ... 45 more

P.S. Sorry if posting the entire stacktrace makes this annoying to read, but I figure you may get an immediate reaction like "oh, that's the problem" from it.


If you reply to this email, your message will be added to the discussion below:
http://glu.977617.n3.nabble.com/Beginner-questions-tp3528557p3529294.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
|

Re: Beginner questions

Andrew G
I must have messed up my agent by deleting the data directory.  Anyway, ran step 5 again, reinstalled the agent, and everything works now.  The agent shows up in the console and I can access logs, processes, and everything else.

Thanks again for your help, Yan.  Case closed.
Reply | Threaded
Open this post in threaded view
|

Re: Beginner questions

frenchyan
Administrator
Great news! I will try to investigate those exceptions when no zookeeper though as it should obviously not happen...

On Tue, Nov 22, 2011 at 7:20 PM, Andrew G [via glu] <[hidden email]> wrote:
I must have messed up my agent by deleting the data directory.  Anyway, ran step 5 again, reinstalled the agent, and everything works now.  The agent shows up in the console and I can access logs, processes, and everything else.

Thanks again for your help, Yan.  Case closed.


If you reply to this email, your message will be added to the discussion below:
http://glu.977617.n3.nabble.com/Beginner-questions-tp3528557p3529648.html
To start a new topic under glu, email [hidden email]
To unsubscribe from glu, click here.
NAML