aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: [SOLVED] amuled + kad + amuleweb  (Read 9573 times)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: [SOLVED] amuled + kad + amuleweb
« Reply #15 on: September 14, 2005, 01:58:52 PM »

well the server and source exchange work a lot faster then kad. so it could be that your max-sources are already "full"
so amule does not look at the kad network to find sources anymore, since it does not need any.
as a test maybe disable ed2k network, and only connect to kad.
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: [SOLVED] amuled + kad + amuleweb
« Reply #16 on: September 14, 2005, 02:55:32 PM »

done.

Quote
MaxUpload=0
MaxDownload=0
SlotAllocation=0
Autoconnect=0
ConnectToKad=1
ConnectToED2K=0
MaxSourcesPerFile=400
MaxConnections=1000
MaxConnectionsPerFiveSeconds=60

Quote
Statistics
   Uptime: 14:37 mins
   Transfer
      Session UL:DL Ratio (Total): Not available
      Uploads
         Uploaded Data (Session (Total)): 77.55 MB (2.970 TB)
            eMule: 78.67 MB
         Total Overhead (Packets): 197 kB (8k)
         File Request Overhead (Packets): 187 kB (8k)
         Source Exchange Overhead (Packets): 0 bytes (0)
         Server Overhead (Packets): 0 bytes (0)
         Kad Overhead (Packets): 0 bytes (0)
         Active Uploads: 2
         Waiting Uploads: 48
         Total successful upload sessions: 9
         Total failed upload sessions: 0
         Average upload time: 2:51 mins
      Downloads
         Downloaded Data (Session (Total)): 0 bytes (369.61 GB)
         Total Overhead (Packets): 28 kB (662)
         File Request Overhead (Packets): 21 kB (587)
         Source Exchange Overhead (Packets): 16 bytes (1)
         Server Overhead (Packets): 0 bytes (0)
         Kad Overhead (Packets): 0 bytes (0)
         Found Sources: 13
            Passive: 13 (100.00%)
         Active Downloads (chunks): 0

If I use Autoconnect=1 amuled freeze with this logfile:

Quote
2005-09-14 14:57:35: Creditfile loaded, 34264 clients are known
2005-09-14 14:57:35: Loading ipfilter.dat files.
2005-09-14 14:57:35: Loaded 0 IP-ranges from 'ipfilter.dat'. 0 malformed lines were discarded.
2005-09-14 14:57:35: Loaded 0 IP-ranges from 'ipfilter_static.dat'. 0 malformed lines were discarded.
2005-09-14 14:57:35: Loading server.met file: /home/p2p/.aMule/server.met
2005-09-14 14:57:35: 72 servers in server.met found
2005-09-14 14:57:36: Found 40 part files
2005-09-14 14:57:36: *** TCP socket (ECServer) listening on 0.0.0.0:4712
2005-09-14 14:57:40: Found 303 known shared files
2005-09-14 14:57:40: Connecting

ps -e | grep amule returns me nothing...
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: [SOLVED] amuled + kad + amuleweb
« Reply #17 on: September 14, 2005, 03:08:09 PM »

ok, it was a try...
I dont think you can connect to kad yet with amulecmd, or amuleweb so its no real help if autoconnect does not work for soem reason.
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: [SOLVED] amuled + kad + amuleweb
« Reply #18 on: September 14, 2005, 03:44:04 PM »

Almost solved :D Now i have to shutdown and exit home so tonight or tomorrow i'll make some other test and post the results.

Bye
Logged

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: [SOLVED] amuled + kad + amuleweb
« Reply #19 on: September 14, 2005, 03:47:12 PM »

I can confirm that kad (at least for amuled) will only work when starting with Autoconnect=1 in amule.conf. "connect" in amulecmd or amuleweb does not have the effect of connecting to kademlia.

I tried the advice of but to no avail. Kad won't be connected, if not through autoconnect...

@DigitoErgoSum
I don't have any freeze or crash either, when autoconnecting (using CVS-20050910 on Debian Sarge).
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: [SOLVED] amuled + kad + amuleweb
« Reply #20 on: September 14, 2005, 05:15:54 PM »

Not only for amuled but for amule master gui too....kad is only connected when autoconnect is enabled.....
ahhh...in order to use kad you must open udp port nº(tcp+3) to work correctly...so you need 3 open ports,2 udp and 1 tcp....  :)

Cheers....
Logged
Linux user nº289016 at Linux counter

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: [SOLVED] amuled + kad + amuleweb
« Reply #21 on: September 14, 2005, 10:04:57 PM »

In tomorrow's CVS, amulecmd will be able to connect to ed2k/kad/both. Check the "help" command :P
Logged
concordia cum veritate

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: [SOLVED] amuled + kad + amuleweb
« Reply #22 on: September 15, 2005, 12:34:24 AM »

Hey...that would be nice.....
 :baby:

Cheers.....
Logged
Linux user nº289016 at Linux counter

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: [SOLVED] amuled + kad + amuleweb
« Reply #23 on: September 15, 2005, 03:03:24 AM »

I saw that running amuled with /usr/bin/amuled instead of /etc/init.d/amuled start as root makes kad partially work (5kb in 15 min, no sources found, firewalled)... The problem is that it run in super-user mode... :(
Running /usr/bin/amuled as p2p user with autoconnect=1 create this output:

Quote
verbo p2p # sudo -u p2p env HOME=/home/p2p /usr/bin/amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
Loading temp files from /dati/aMule/Temp/.
Loading PartFile 40 of 40
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672


aMule terminated after throwing an instance of 'CryptoPP::OS_RNG_Err'
        Version: aMuled CVS using  v2.6.1 (Snapshot: Tue Sep 13 07:02:04 CEST 2005)
        what(): OS_Rng: open /dev/urandom operation failed with error 13
        backtrace:
[2] wxEntry(int&, char**) in /usr/lib/libwx_base-2.6.so.0[0xb7ed01cb]
[3] main in amuled.cpp:124
[4] __libc_start_main in /lib/libc.so.6[0xb7b68525]
[5] wxEvtHandler::ProcessEvent(wxEvent&) in :0

Quote
verbo p2p # ls /dev/urandom -la
crw-rw----  1 root root 1, 9 Sep 15 01:36 /dev/urandom
Logged

DigitoErgoSum

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: [SOLVED] amuled + kad + amuleweb
« Reply #24 on: September 15, 2005, 03:24:24 AM »

Wonderful !!!  8o Now it works !!!
I've solved "kad-firewalled" problem with a nodes.dat downloaded from the web.
After a chown p2p /dev/urandom, autoconnect start works without problems and kad connects in 15 sec.
Is there another solution for /dev/urandom ?

Thank you all for your help  :baby:
Logged
Pages: 1 [2]