Trying to get YaCy working with I2P, error, need help

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.

Trying to get YaCy working with I2P, error, need help

Beitragvon mcradventures » Di Jul 26, 2016 12:49 am

Greetings,

I am attempting to get YaCy working with I2P. I don't know too much about YaCy but have managed to get YaCy to index eepsites, and connect to another peer over I2P. That's where it ends. I get an error that I can't figure out (probably from lack of knowledge). If more information is needed, let me know. I would really like to get this working with I2P.

The below is part of the log from the principal peer.
Code: Alles auswählen
I 2016/07/25 18:13:04 YACY hello/server: changing remote peer '_anonufe-29231182-0' [tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p, 127.0.0.1] peerType from 'virgin' to 'senior'.
I 2016/07/25 18:13:04 YACY hello/server: responded remote peer '_anonufe-29231182-0' [tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p, 127.0.0.1] in 39 milliseconds
I 2016/07/25 18:13:21 YACY yacyClient.hello thread 'HTTPClient-http://tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p:8091/yacy/hello.html' contacted peer at tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p:8091, received 1010 bytes, time = 59 milliseconds
W 2016/07/25 18:13:21 ConcurrentLog java.lang.NullPointerException
java.lang.NullPointerException
   at net.yacy.peers.Protocol.hello(Protocol.java:238)
   at net.yacy.peers.Network$publishThread.run(Network.java:211)
E 2016/07/25 18:13:21 YACY publishThread: error with target seed {UTC=-0400,Port=8091,RCount=0,Hash=jW8wmuJ4oc5i,LastSeen=20160725221304,Name=_anonufe-29231182-0,Version=1.90009000,rI=0,NCount=0,USpeed=0,rU=0,RSpeed=0.0,IP=tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p,PeerType=senior,ISpeed=0,ICount=0,CCount=2.0,sI=0,LCount=0,sU=0,BDate=20160725221252,news=,Uptime=0,Flags=%   ,IP6=,SCount=1,JRE=1.8.0_91}: null
java.lang.NullPointerException
   at net.yacy.peers.Protocol.hello(Protocol.java:238)
   at net.yacy.peers.Network$publishThread.run(Network.java:211)
I 2016/07/25 18:13:21 YACY PeerPing: I am accessible for 0 peer(s), not accessible for 0 peer(s).
I 2016/07/25 18:13:21 YACY PeerPing: No data, staying at myType: principal
I 2016/07/25 18:13:32 YACY hello/server: responded remote virgin peer '_anonufe-29231182-0' from [tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p, 127.0.0.1], time_dnsResolve=0, time_backping=24, method=reportedip=tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p, urls=0
I 2016/07/25 18:13:32 YACY hello/server: changing remote peer '_anonufe-29231182-0' [tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p, 127.0.0.1] peerType from 'virgin' to 'senior'.
I 2016/07/25 18:13:32 YACY hello/server: responded remote peer '_anonufe-29231182-0' [tndmt4uz4nglsbfrmucdjyvuwuzcvberfurzrp53ha3tinohfgiq.b32.i2p, 127.0.0.1] in 27 milliseconds



Below is part of the log from the new peer.

Code: Alles auswählen
I 2016/07/25 18:13:02 YACY yacyClient.hello thread 'HTTPClient-http://kaddhgljo3u6gcktwtjsxrf7ok4sp7xdhw3k4vk67vehsjfxwo2q.b32.i2p:8090/yacy/hello.html' contacted peer at kaddhgljo3u6gcktwtjsxrf7ok4sp7xdhw3k4vk67vehsjfxwo2q.b32.i2p:8090, received 1002 bytes, time = 91 milliseconds
W 2016/07/25 18:13:02 ConcurrentLog java.lang.NullPointerException
java.lang.NullPointerException
   at net.yacy.peers.Protocol.hello(Protocol.java:238)
   at net.yacy.peers.Network$publishThread.run(Network.java:211)
E 2016/07/25 18:13:02 YACY publishThread: error with target seed {UTC=-0400,Port=8090,RCount=0,Hash=rqSdw4MOl7vi,LastSeen=20160725221221,Name=_anonufe-29160459-0,Version=1.90009000,rI=0,NCount=0,USpeed=0,rU=0,RSpeed=0.0,IP=kaddhgljo3u6gcktwtjsxrf7ok4sp7xdhw3k4vk67vehsjfxwo2q.b32.i2p,PeerType=principal,ISpeed=0,ICount=0,CCount=0.0,sI=0,LCount=0,seedURL=http://qbmqolrdw732vzqtrlp75zil4tr4nckh5onppzhhox2jbtymmasa.b32.i2p/seed.txt,sU=0,BDate=20160725221141,news=,Uptime=0,Flags=%   ,IP6=,SCount=0,JRE=1.8.0_91}: null
java.lang.NullPointerException
   at net.yacy.peers.Protocol.hello(Protocol.java:238)
   at net.yacy.peers.Network$publishThread.run(Network.java:211)
I 2016/07/25 18:13:02 YACY PeerPing: I am accessible for 0 peer(s), not accessible for 0 peer(s).
I 2016/07/25 18:13:02 YACY PeerPing: No data, staying at myType: virgin


I would appreciate any and all help. Thank you.
mcradventures
 
Beiträge: 2
Registriert: Mo Jul 25, 2016 10:47 pm

Re: Trying to get YaCy working with I2P, error, need help

Beitragvon luc » Di Jul 26, 2016 9:02 pm

Hi, how do you proceed to connect to your I2P peer? Did you create a custom Network Definition file (something like yacy.network.[yournetwork].unit) and used it in /ConfigNetwork_p.html? I suppose this the first thing to do, as was done for the ZeroNet network for example...
By the way, looking at your error stack trace, it looks like your peer tried to perform DNS resolution on your other peer address. Of course if did not found anything and returned null, but the null result is indeed not very well handled : it is likely the ie.getHostAddress() instruction which triggers that obscure NullPointerException.
At that point, I have not currently enough YaCy network definitions knowldge to predict if it may be correctly configured to handle I2P without further developments, but maybe @Orbiter will have some tips for you...
luc
 
Beiträge: 245
Registriert: Mi Aug 26, 2015 1:04 am

Re: Trying to get YaCy working with I2P, error, need help

Beitragvon mcradventures » Mi Jul 27, 2016 2:41 am

luc hat geschrieben:Hi, how do you proceed to connect to your I2P peer? Did you create a custom Network Definition file (something like yacy.network.[yournetwork].unit) and used it in /ConfigNetwork_p.html? I suppose this the first thing to do, as was done for the ZeroNet network for example...
By the way, looking at your error stack trace, it looks like your peer tried to perform DNS resolution on your other peer address. Of course if did not found anything and returned null, but the null result is indeed not very well handled : it is likely the ie.getHostAddress() instruction which triggers that obscure NullPointerException.
At that point, I have not currently enough YaCy network definitions knowldge to predict if it may be correctly configured to handle I2P without further developments, but maybe @Orbiter will have some tips for you...


I'm new to YaCy, but below is the config:
Code: Alles auswählen
yacy.init (changes):
network.unit.definition = defaults/yacy.network.i2p.unit
network.group.definition = defaults/yacy.network.i2p.group
remoteProxyUse=true
remoteProxyUse4SSL=true
remoteProxyHost=127.0.0.1
remoteProxyPort=4444
remoteProxyNoProxy=127\..*,localhost
seedUploadMethod=File
seedFilePath=Data/eepsite/docroot/seed.txt
seedURL=http://qbmqolrdw732vzqtrlp75zil4tr4nckh5onppzhhox2jbtymmasa.b32.i2p/seed.txt
peername=I2PYaCy
yacyDebugMode=true
staticIP=kaddhgljo3u6gcktwtjsxrf7ok4sp7xdhw3k4vk67vehsjfxwo2q.b32.i2p
browserPopUpTrigger=false
clienttimeout=90000
crawler.clientTimeout=90000
proxy.clientTimeout=90000
indexControl.timeout=180000
indexDistribution.timeout=180000
indexTransfer.timeout=360000
CRDistOn=false
CRDist1Target=
proxyClient=localhost,127\.0\.0\.1


The yacy.network.i2p.unit (for principle peer) is:
Code: Alles auswählen
network.unit.name=i2pworld
network.unit.description=Yacy network for I2P
network.unit.domain=any
network.unit.search.time=4
network.unit.dhtredundancy.junior=1
network.unit.dhtredundancy.senior=1
network.unit.bootstrap.seedlist0=http://qbmqolrdw732vzqtrlp75zil4tr4nckh5onppzhhox2jbtymmasa.b32.i2p/seed.txt
network.unit.update.location0=http://yacy.net/Download.html
network.unit.update.location1=http://latest.yacy.de
network.unit.protocol.control=uncontrolled

The other peer has the "network.unit.dhtredundancy.senior" changed to 3.

yacy.network.i2p.group file is empty.
yacy.networks file contains:
defaults/yacy.network.i2p.unit

There are three total I2P tunnels being used. One is used for eepsite indexing (port 4444), another is used for the seed.txt (qbmqolrdw732vzqtrlp75zil4tr4nckh5onppzhhox2jbtymmasa.b32.i2p), and the third is used for allowing access to the YaCy (YaCy port).

For testing, one peer is a principle peer. The other a senior peer. Both are ran on the same computer using different ports and different I2P tunnels to avoid conflicts. Since the connections are going over I2P, there shouldn't be a problem with this I wouldn't think. They seem to be able to see each other, they seem to be able to exchange hellos. They seem to have issues actually connecting to each other and the error in the original post might be the culprit. The ultimate goal of this little project is decentralized eepsite indexing on I2P. Nothing currently exists like it on I2P and I want to bring it to I2P. Any help would be appreciated.

NOTE: Due to being new to YaCy, there may be problems with the configuration. Everything other than the above is pretty much stock.
mcradventures
 
Beiträge: 2
Registriert: Mo Jul 25, 2016 10:47 pm


Zurück zu English

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron