AchillesA / maidsafe-dht

Automatically exported from code.google.com/p/maidsafe-dht
0 stars 0 forks source link

Cant connect with second node to first node #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Doing exactly what your Guide says.
(creating first node, creating second..and try to connect).

What is the expected output? What do you see instead?
Connected nodes...but i got this error :

Errormessage: (5001) UDT connect to 192.168.1.115:5000 -- Connection setup 
failure: connection timed out. Failed to join node to the network.

What version of the product are you using? On what operating system?

Using latest kaddemo on site. Ubuntu 32-bit.

Please provide any additional information below.

I cant connect, i tried many options but i wont work.
Here is a problem i got with install of the kaddemoapp.
After installation finished i got an error message, telling me the following.

There was an error registering the RPM file: rpm: please use alien to install 
rpm packages on Debian, of you are really sure use --force-debian switch. See 
README.Debian for more details. 

Original issue reported on code.google.com by p.wer...@tu-bs.de on 20 Oct 2010 at 2:12

GoogleCodeExporter commented 9 years ago

Original comment by dan.schm...@gmail.com on 20 Oct 2010 at 2:19

GoogleCodeExporter commented 9 years ago
Hi there,

I think the problem is that perhaps our section on running kaddemo doesn't 
explain very well what the process is.

What you want to do first is run the line:

./kaddemostatic -p 5000 --externalip your_ip --externalport 5000 --noconsole 
--nodeinfopath .

You need to substitute your ip in the externalip field. You can also change the 
port 5000 to any other taht suits you best. This first node generates a file 
named .kadconfig, and each subsequent node that you want to set up should have 
a particular copy of it. That's why the next instructions are:

// Create a directory for the particular node
mkdir KnodeInfo5001
// Copy the .kadconfig file for that node in particular
cp .kadconfig KnodeInfo5001/
// Run the node specifying the path to the .kadconfig that it should read
./kaddemostatic -p 5001 -k KnodeInfo5001/.kadconfig

In these lines, the name of the directory was chosen to correspond with the 
chosen port that we specify (i.e. 5001). This can be changed to suit other 
needs with no problem.

The importance or having the correct details of the first node is paramount, 
since that's what gets written to the .kadconfig and what all the other nodes 
will search.

Regarding the packages generated, you should have a .deb package that is the 
one that corresponds to ubuntu. This installer, however, installs just the 
libraries and headers of the project, since kaddemo is not yet considered 
anything but an example.

Hope this helps.

Dan

Original comment by dan.schm...@gmail.com on 20 Oct 2010 at 3:53

GoogleCodeExporter commented 9 years ago
Thanks for your answer. 
Hmm i think i understand how it works. And i even tried it with the other 
parameters ....so i tries it on many ways.
First i tried as you said, with bootstrapping logfile from first node.
That doenst work.
So i tried it again with the exact parameters of the first node (not the file, 
i used the correct adress of the first server). It doesnt work, i always cant 
get a connection.
So i think i did everything right.

It doesnt matter if i install that ubuntu .deb file ? where is it after 
installation ?

Greetings

Original comment by p.wer...@tu-bs.de on 20 Oct 2010 at 4:09

GoogleCodeExporter commented 9 years ago
Can it depens on admin rights ?
I tried to use every command with sudo...still no success..
The first node starts and even tell me that its running on the right parameters.
But the second cant get any connection to it. Not with kadconfig file, and even 
not when i use the parameters directly when i start the second one...i always 
got :

(5001) UDT connect to 192.168.1.115:5000 -- Connect setup failure: connection 
timed out.
Failed to join node to the network.

maybe you know some help

Original comment by p.wer...@tu-bs.de on 20 Oct 2010 at 4:12

GoogleCodeExporter commented 9 years ago
Are you sure your own ip is 192.168.1.115?

Original comment by dan.schm...@gmail.com on 20 Oct 2010 at 4:15

GoogleCodeExporter commented 9 years ago
maybe this could help ....

the first node cant even ping or find itself....is that right ?

Original comment by p.wer...@tu-bs.de on 20 Oct 2010 at 4:17

GoogleCodeExporter commented 9 years ago
It is worth noting this is a very old version now (many updates since), but 
should work. Perhaps you should try running it all ass root to ensure no admin 
problems. Also try 

sudo iptables -L -n

To make sure there is no fire-walling set up. Personally I would select a port 
larger than 5000 (even 5001). 

Original comment by irvine.d...@gmail.com on 20 Oct 2010 at 4:17

GoogleCodeExporter commented 9 years ago
ah i got the damn fault...sry for bothering you. must be my own stupid ;)

thanks

Original comment by p.wer...@tu-bs.de on 20 Oct 2010 at 4:19

GoogleCodeExporter commented 9 years ago
Is the IP of your computer 192.168.1.115? Could you please post the result of 
an ifconfig?

Original comment by dan.schm...@gmail.com on 20 Oct 2010 at 4:19

GoogleCodeExporter commented 9 years ago
ok, no problem. let us know if you have any other problems.

Original comment by dan.schm...@gmail.com on 20 Oct 2010 at 4:23

GoogleCodeExporter commented 9 years ago
mhh im a little bit shy to post the solution....
but ok ;) im stupid this time.
I simply dont use the wrong external ip adress. 

used your 192.168.1.115 ....my one ist 192.168.0.39.....

so hit me !!! ;)

Original comment by p.wer...@tu-bs.de on 20 Oct 2010 at 4:23