STARTUP YaCy cannot start: String index out of range: -1

Discussion in English language.
Forumsregeln
You can start and continue with posts in english language in all other forums as well, but if you are looking for a forum to start a discussion in english, this is the right choice.

STARTUP YaCy cannot start: String index out of range: -1

Beitragvon Z24 » Sa Jul 26, 2014 9:00 am

Hi
I just started using yacy on Windows, and each time I shutdown yacy and reboot Windows I cannot get yacy to start: it returns this error in Yacy\data\log\yacy00.log:

Code: Alles auswählen
E 2014/07/26 08:46:25 STARTUP YaCy cannot start: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(Unknown Source)
   at net.yacy.crawler.HostQueue.<init>(HostQueue.java:96)
   at net.yacy.crawler.HostBalancer.<init>(HostBalancer.java:83)
   at net.yacy.crawler.data.NoticedURL.<init>(NoticedURL.java:67)
   at net.yacy.crawler.data.CrawlQueues.<init>(CrawlQueues.java:90)
   at net.yacy.search.Switchboard.<init>(Switchboard.java:820)
   at net.yacy.yacy.startup(yacy.java:192)
   at net.yacy.yacy.main(yacy.java:684)


I completely uninstalled yacy (without keeping the data), then I installed it again, I crawled a few sites for a day, then I shutdown yacy and Windows. After booting the next day I got the same error.

What could be happening?

Thanks
Z24
 
Beiträge: 3
Registriert: Sa Jul 26, 2014 8:36 am

Re: STARTUP YaCy cannot start: String index out of range: -1

Beitragvon Orbiter » Di Jul 29, 2014 10:22 am

this is a strange bug which may appear if you crawl a very large number of different hosts and something gets messed up in your file system.
I made a patch in YaCy 1.73.9216 which should prevent that YaCy stops working but also puts out an error message in your log at DATA/LOG/yacy00.log.

Please watch out for the message "hostPath name must contain a dot" in that log file and please post the message here so I can continue with a better bugfix. However, this version should nevertheless fully work (I hope so).
Orbiter
 
Beiträge: 5793
Registriert: Di Jun 26, 2007 10:58 pm
Wohnort: Frankfurt am Main

Re: STARTUP YaCy cannot start: String index out of range: -1

Beitragvon Z24 » Di Jul 29, 2014 11:02 pm

Thank you Orbiter!
How do I apply the patch, do I need to compile from source code? ( I'm just a user, I don't know how to do it with java... )
Or I'll wait for the 1.73 to be released as a Windows compiled version.

Btw, I crawled 3 hosts but one of them had a lot of links and the crawling process went on for hours.
Z24
 
Beiträge: 3
Registriert: Sa Jul 26, 2014 8:36 am

Re: STARTUP YaCy cannot start: String index out of range: -1

Beitragvon David » Sa Aug 02, 2014 11:37 am

Z24 hat geschrieben:How do I apply the patch, do I need to compile from source code?

You should be able to download and install updates from this page within your yacy settings: http://localhost:8090/ConfigUpdate_p.html
David
 
Beiträge: 170
Registriert: Di Mär 05, 2013 5:35 pm

Re: STARTUP YaCy cannot start: String index out of range: -1

Beitragvon Z24 » So Aug 03, 2014 9:44 pm

Thanks David.
I had to do a fresh install in another location to load Yacy settings and get the update, and now Yacy starts.

Orbiter, I confirm the 1.730/09227 version is working.
Here is the one error I found in the log files:
Code: Alles auswählen
I 2014/08/03 15:41:06 HostQueue opened HostQueue H:\YaCy\DATA\INDEX\freeworld\QUEUES\CrawlerCoreStacks\ctv1.ctv.ca.80 with 0 urls.
I 2014/08/03 15:41:06 HostQueue opened HostQueue H:\YaCy\DATA\INDEX\freeworld\QUEUES\CrawlerCoreStacks\vancouverisland.ctvnews.ca.80 with 0 urls.
W 2014/08/03 15:41:06 ConcurrentLog java.lang.RuntimeException: hostPath name must contain a dot: www
java.lang.RuntimeException: hostPath name must contain a dot: www
   at net.yacy.crawler.HostQueue.<init>(HostQueue.java:98)
   at net.yacy.crawler.HostBalancer.<init>(HostBalancer.java:87)
   at net.yacy.crawler.data.NoticedURL.<init>(NoticedURL.java:67)
   at net.yacy.crawler.data.CrawlQueues.<init>(CrawlQueues.java:90)
   at net.yacy.search.Switchboard.<init>(Switchboard.java:837)
   at net.yacy.yacy.startup(yacy.java:191)
   at net.yacy.yacy.main(yacy.java:683)
I 2014/08/03 15:41:06 HostQueue opened HostQueue H:\YaCy\DATA\INDEX\freeworld\QUEUES\CrawlerNoLoadStacks\download.nullsoft.com.80 with 0 urls.
I 2014/08/03 15:41:06 HostQueue opened HostQueue H:\YaCy\DATA\INDEX\freeworld\QUEUES\CrawlerNoLoadStacks\www.codelobster.com.80 with 0 urls.
I 2014/08/03 15:41:06 HostQueue opened HostQueue H:\YaCy\DATA\INDEX\freeworld\QUEUES\CrawlerNoLoadStacks\www.nirsoft.net.80 with 0 urls.
Z24
 
Beiträge: 3
Registriert: Sa Jul 26, 2014 8:36 am


Zurück zu English

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron