searcher UNREACHABLE

12 views
Skip to first unread message

Marino

unread,
Sep 12, 2009, 1:03:45 PM9/12/09
to hounder
Hi

I was installing hounder. After ./start-all.sh and then ./
status.sh I got:
crawler: running
indexer: running
searcher: not running <-----------------
cache-server: running
clustering-web: running


http:localhost:47050/index.do givs me in the current node list:

localhost:47041:/var/local/hounder/searcher searcher UNREACHABLE

with:

logs/hounder.log at
VelocityViewServlet : Error processing a template for path '/
monitorLog.vm'
Invocation of method 'toDate' in class com.flaptor.util.DateUtil threw
exception java.lang.NullPointerException @ /monitorLog.vm[32,50]
java.lang.NullPointerException
at com.flaptor.util.DateUtil.toDate(DateUtil.java:36)
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.apache.velocity.util.introspection.UberspectImpl
$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute
(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute
(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render
(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.ASTBlock.render
(ASTBlock.java:74)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:
448)
at org.apache.velocity.runtime.parser.node.ASTDirective.render
(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.SimpleNode.render
(SimpleNode.java:318)
at org.apache.velocity.Template.merge(Template.java:254)
at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.performMerge
(VelocityViewServlet.java:805)
at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.mergeTemplate
(VelocityViewServlet.java:762)
at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest
(VelocityViewServlet.java:555)
at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet
(VelocityViewServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
491)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:367)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
391)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at com.flaptor.util.web.MVCServlet.service(MVCServlet.java:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
491)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1074)
at com.flaptor.clusterfest.UserAuthorizationFilter.doFilter
(UserAuthorizationFilter.java:26)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1065)
at com.flaptor.util.web.CatchExceptionFilter.doFilter
(CatchExceptionFilter.java:39)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1065)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
391)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
457)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:751)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
at org.mortbay.jetty.bio.SocketConnector$Connection.run
(SocketConnector.java:217)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:475)



best regards, Marinó

Marino

unread,
Sep 16, 2009, 6:38:55 AM9/16/09
to hounder
I got the hounder up and running after 2 fixes, here they come.
I'm using Debian with 2 interfaces on the network (10.1.x.x and
157.157.xxx.xxx)

after clean install:

/var/local/hounder/searcher/start.sh
The searcher is not running
Starting the searcher...

/var/local/hounder/searcher# ./status.sh
The searcher is not running

/var/local/hounder/searcher/logs# more searcher.err
Exception in thread "main" java.lang.NoClassDefFoundError: 157/157/xxx/
xxx
Caused by: java.lang.ClassNotFoundException: 157.157.xxx.xxx
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
320)
Could not find the main class: 157.157.xxx.xxx. Program will exit.


==> FIX: I removed the 157.157.xxx.xxx from the machine, having
10.1.x.x left.

reboot

/var/local/hounder/searcher# ./start.sh
The searcher is not running
Starting the searcher...

/var/local/hounder/searcher# ./status.sh
The searcher is running


==> this left me with searcher status BAD

/var/local/hounder/searcher/logs# more hounder.log
...
ERROR [RMI TCP Connection(4)-10.1.1.4]
com.flaptor.hounder.searcher.IndexUpdatesListener - [Exception while
executing shell com
mand: rsync -r -v -t -W --delete localhost:/var/local/hounder/indexer/
indexes/copies/index-1253094780189 /var/local/hounder/sea
rcher/indexes] 2009-09-16 09:53:00,423
java.io.IOException: Cannot run program "rsync": java.io.IOException:
error=2, No such file or directory
...

apt-get install rsync

reboot

did a clean install

I had to wait a bit, first the searcher status was still BAD with No
indexId
but afer a while the it changed to GOOD,

PROBLEM SOLVED ;)
Reply all
Reply to author
Forward
0 new messages