HTTP ERROR 500

Keine Scheu, hier darf alles gefragt und diskutiert werden. Das ist das Forum für YaCy-Anfänger. Hier kann man 'wo muss man klicken' fragen und sich über Grundlagen zur Suchmaschinentechnik unterhalten.
Forumsregeln
Hier werden Fragen beantwortet und wir versuchen die Probleme von YaCy-Newbies zu klären. Bitte beantwortete Fragen im YaCy-Wiki http://wiki.yacy.de dokumentieren!

HTTP ERROR 500

Beitragvon vikozo » Di Sep 13, 2016 8:25 pm

guten Tag
ich bin neu und habe yacy auf einem VM Installiert, funktioniert soweit gut!
Mein Problem, im Backend klappt es, im Frontend kann ich die Suche eingeben - erhalte vorschläge - aber beim OK erhalte ich nachstehenden Fehler.
Gruss
Vinc
=========================
HTTP ERROR 500

Problem accessing /yacysearch.html. Reason:

Server Error
Caused by:

javax.servlet.ServletException: /usr/share/yacy/DATA/LOCALE/htroot/de/yacysearch.html
at net.yacy.http.servlets.YaCyDefaultServlet.handleTemplate(YaCyDefaultServlet.java:850)
at net.yacy.http.servlets.YaCyDefaultServlet.doGet(YaCyDefaultServlet.java:316)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at net.yacy.http.CrashProtectionHandler.handle(CrashProtectionHandler.java:33)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)

YaCy 1.90 - powered by Jetty -
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm

Re: HTTP ERROR 500

Beitragvon luc » Mi Sep 14, 2016 7:50 am

Hi vikozo, I hope it is not a problem if I answer in English...

Unfortunately this error stack trace is not detailed enough to track back the original error in YaCy source code.
But no problem, details sould be in your YaCy logs :
- either in the /ViewLog_p.html page (Administration > System Status > Server Log) : you should find two or more block texts with a first line starting with a 'W' character. Something like
Code: Alles auswählen
W 2016/09/14 08:29:32 org.eclipse.jetty.servlet.ServletHandler javax.servlet.ServletException: [your_yacy_path]/htroot/yacysearch.html at net.yacy.http.servlets.YaCyDefaultServlet.handleTemplate(YaCyDefaultServlet.java:878) at net.yacy.http.servlets.YaCyDefaultServlet.doGet(YaCyDefaultServlet.java:315) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812) at...

- or in [your_yacy_path]/DATA/LOG/yacy00.log, look for the text "java.lang.reflect.InvocationTargetException"

I you repost these complete error details, then we may find more easily what is going wrong.

Best regards
luc
 
Beiträge: 266
Registriert: Mi Aug 26, 2015 1:04 am

Re: HTTP ERROR 500

Beitragvon vikozo » Mi Sep 14, 2016 12:17 pm

Hello @luc
no it is not to much a Problem, just writing is more tricky.
i will check it again and tell you.
have a nice day
vinc
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm

Re: HTTP ERROR 500

Beitragvon vikozo » Mi Sep 14, 2016 4:52 pm

Solved
i deleted the VM an start a new one.
the Installation is quick and works smartfull

have a nice day
vinc
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm

Re: HTTP ERROR 500

Beitragvon luc » Do Sep 15, 2016 9:25 am

Great!

Happy playing with YaCy!
luc
 
Beiträge: 266
Registriert: Mi Aug 26, 2015 1:04 am

Re: HTTP ERROR 500

Beitragvon vikozo » Do Sep 15, 2016 6:13 pm

:(
after some 24h of running i got the same error again. not everyware but my showing the result!
i checke my apache log but could not find a activity

have a nice day
vinc
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm

Re: HTTP ERROR 500

Beitragvon luc » Fr Sep 16, 2016 7:31 am

Ok, so you get this error but not on every search? Your YaCy install is behind an Apache front?
Again if you could post the end of the error stack trace from your YaCy logs this would certainly help (I am almost sure you can find it in either DATA/LOG/yacy00.log or DATA/LOG/yacy01.log or DATA/LOG/yacyNN.log...)
luc
 
Beiträge: 266
Registriert: Mi Aug 26, 2015 1:04 am

Re: HTTP ERROR 500

Beitragvon vikozo » Fr Sep 16, 2016 7:04 pm

W 2016/09/16 18:04:12 ConcurrentLog java.lang.NullPointerException
java.lang.NullPointerException
at net.yacy.crawler.data.CrawlQueues.autocrawlJob(CrawlQueues.java:588)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
E 2016/09/16 18:04:12 BUSYTHREAD Runtime Error in serverInstantThread.job, thread 'BusyThread net.yacy.crawler.data.CrawlQueues.autocrawlJob': null; target exception: null
java.lang.NullPointerException
at net.yacy.crawler.data.CrawlQueues.autocrawlJob(CrawlQueues.java:588)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
W 2016/09/16 18:04:22 ConcurrentLog java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
Caused by: java.lang.NullPointerException
at net.yacy.crawler.data.CrawlQueues.autocrawlJob(CrawlQueues.java:588)
... 5 more
W 2016/09/16 18:04:22 ConcurrentLog java.lang.NullPointerException
java.lang.NullPointerException
at net.yacy.crawler.data.CrawlQueues.autocrawlJob(CrawlQueues.java:588)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
W 2016/09/16 18:04:22 ConcurrentLog java.lang.NullPointerException
java.lang.NullPointerException
at net.yacy.crawler.data.CrawlQueues.autocrawlJob(CrawlQueues.java:588)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
E 2016/09/16 18:04:22 BUSYTHREAD Runtime Error in serverInstantThread.job, thread 'BusyThread net.yacy.crawler.data.CrawlQueues.autocrawlJob': null; target exception: null
java.lang.NullPointerException
at net.yacy.crawler.data.CrawlQueues.autocrawlJob(CrawlQueues.java:588)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm

Re: HTTP ERROR 500

Beitragvon vikozo » Fr Sep 16, 2016 7:08 pm

it startet to crash - when changing from own web pages to community web search and back
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm

Re: HTTP ERROR 500

Beitragvon luc » Mo Sep 19, 2016 5:28 pm

Ok vikozo, thank you for the detailed trace. It looks like there definitely is something to fix... It also reminds me some problems I experienced when often switching between the different modes.

Waiting for a better solution, as a workaround I suggest you try restarting your YaCy peer just after switching.
luc
 
Beiträge: 266
Registriert: Mi Aug 26, 2015 1:04 am

Re: HTTP ERROR 500

Beitragvon vikozo » Mo Sep 19, 2016 5:37 pm

@luc
no Problem, till now it is still working but did not change anything again...
have a nice day
vinc
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm

Re: HTTP ERROR 500

Beitragvon luc » Mi Sep 21, 2016 8:28 am

@vikozo, I reproduced your error and submitted a new mantis issue : http://mantis.tokeek.de/view.php?id=686

I will check if a fix can be easily applied.
luc
 
Beiträge: 266
Registriert: Mi Aug 26, 2015 1:04 am

Re: HTTP ERROR 500

Beitragvon luc » Do Sep 22, 2016 8:14 am

Joining efforts with reger (thanks to his reactivity and great job), this issue is now solved!

The fix will be available in the next release or already from latest sources on GitHub.
luc
 
Beiträge: 266
Registriert: Mi Aug 26, 2015 1:04 am

Re: HTTP ERROR 500

Beitragvon vikozo » Do Sep 22, 2016 9:49 am

@luc
fun it must be the first time i realy found a bug 8-) , normally i just have misconfigured something. ;)
vikozo
 
Beiträge: 11
Registriert: Di Sep 13, 2016 8:21 pm


Zurück zu Hilfe für Einsteiger und Anwender

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast