aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 ... 3 4 [5]

Author Topic: Connection to Kad lost  (Read 41865 times)

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Connection to Kad lost
« Reply #60 on: July 25, 2006, 01:48:41 PM »

Well, to keep this thread alive, indeed the problem still exists, but the amount of time that the daemon can keep connected to Kad is wildly erratic. In last few weeks, with version 2.1.3 and WxGTK 2.6.3: 8 days, 6 hours, 3 days, 5 days, 12 hours, 2 days, 14 hours, 3 days.

The one thing I hope for is that the "connect Kad" command would actually do something to the daemon in the next release. If this command worked it would be easy to parse the amule.dat file, see if Kad connection is still there and if not send the connect command via amulecmd. All in an easy cron job  :)
Logged
A waste is a terrible thing to mind.

kreegee

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 160
    • http://kreegee.cycovery.com
Re: Connection to Kad lost
« Reply #61 on: July 25, 2006, 08:15:46 PM »

yeah, same observations and hopes here :) (with cvs though)
« Last Edit: July 25, 2006, 08:16:01 PM by kreegee »
Logged

nickctrl

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
May be a clue
« Reply #62 on: August 06, 2006, 02:47:16 PM »

I'm using amuled + amuleweb since quite a long time now. I'm actually running the 2.1.3 under debian. It's running with a IP filter list of 8 Mb.

I also got the Kad disconnect problem since long time, and every time after no more than 2 hours !

So, 2 days back I tried to disable IpFilter, just to see ...
And wonder of wonders, since then, no Kad disconnection problem :-)

Now in the log I get :
2006-08-04 11:50:42: Connecté à Kad (pare-feu)
2006-08-04 11:50:42: Connecté à Kad (ok)
2006-08-05 01:50:46: Connecté à Kad (pare-feu)
2006-08-05 01:50:47: Connecté à Kad (ok)

I think it's because I'm having a dynamic IP.

But now, I'm connected with ed2k & kad  ... and I can do some Kad search without any problem.

Hope it helps  :-)
Logged

nickctrl

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
bad news
« Reply #63 on: August 06, 2006, 04:53:25 PM »

The situation was getting better ... but was not solved

After one day I've got the message :

2006-08-06 15:42:36: Déconnecté de Kad

So the problem is not solved by disabling IPFilter ...
It's only occuring much less often  ( every fews days instead of every few hours ).
Logged

EvolutionCrazy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Connection to Kad lost
« Reply #64 on: August 07, 2006, 02:01:07 PM »

yeah, the problem is still here also in my system...

tired of restarting amuled everyday to get kad connecting i ended setting a cronjob to restart the amuled + amuleweb every 24hours... :(
Logged

acehigh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
Re: Connection to Kad lost
« Reply #65 on: October 24, 2006, 08:47:58 PM »

The idea of a separate daemon and graphical tool is quite good, but...

I activated a cronjob too.... :-(

sadly, but 24 hours some days is not enough...
I got kad disconnected even after an hour. (stuck to 2.1.3)


For example:
Code: [Select]
2006-10-24 03:16:11: Connected to Kad (ok)
2006-10-24 03:36:05: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:36:38: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:36:43: Kademlia Main Thread: Exception on Kad processPacket: ***NOTE: Received wrong type (0x00) in processKademliaRequest
2006-10-24 03:37:07: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:37:14: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:37:20: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
...

2006-10-24 03:52:02: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:52:03: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:52:33: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:53:07: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:55:44: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:55:55: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 03:55:56: Kademlia Main Thread: Exception on Kad processPacket: Unknown opcode 11 on CKademliaUDPListener::processPacket
2006-10-24 04:16:25: Kademlia Main Thread: Stopping Kademlia
Logged
-- In a world without doors and locks, why do we need Windows and Gates? --

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Connection to Kad lost
« Reply #66 on: October 25, 2006, 11:35:15 AM »

To get in line with the other posters here I also created a cron job, based on the example in the Wiki. And it does do the job.

I'm looking forward to a new version to see if either Kad is stable or if the 'connect kad' functionality will work. In the last case we won't have to restart the amuled, just issue the command.
Logged
A waste is a terrible thing to mind.

acehigh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
Wikii?
« Reply #67 on: October 26, 2006, 10:07:56 PM »

Ahhhhh, there is something on the wiki?
I did all by myself..... studied the way to issue cmds with amulecmd -c ,
and after that, I studied cron....
Well... The important is the final result...  :)
« Last Edit: October 26, 2006, 10:09:27 PM by acehigh »
Logged
-- In a world without doors and locks, why do we need Windows and Gates? --

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Connection to Kad lost
« Reply #68 on: October 27, 2006, 11:16:23 PM »

Hmm, I do experience a problem with my script though:
- I made a check/restart script.
- The script works fine when I run it manually as root.
- I put a call to the script in the crontab of root, it no longer works.

Perhaps somebody can explain this to me, because I have no idea why it would not function if I call it from the crontab? It[ exactly the same command line as when I run it manually, but it just doesn't do a thing. I just don't get it.
Logged
A waste is a terrible thing to mind.

acehigh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 28
Re: Connection to Kad lost
« Reply #69 on: October 27, 2006, 11:52:15 PM »

a) Bad idea to run the script as root.
I suggest you create a amule user and launch the script in the crontab of that user.
Much more secure.
b) The path: have you given the correct PATH=/usr/local/bin ... and  HOME=/home/user?

My crontab file, for example.. works well:
Code: [Select]
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
HOME=/home/userforamule

# m h  dom mon dow   command
00 02   *   *   *     bin/restartamule.sh > bin/restartamule.log 2>&1

The bin directory is from the home of 'userforamule'
Hope it helps
« Last Edit: October 27, 2006, 11:53:54 PM by acehigh »
Logged
-- In a world without doors and locks, why do we need Windows and Gates? --

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: Connection to Kad lost
« Reply #70 on: October 29, 2006, 11:35:21 AM »

If I don't run the script as root I have to start working around the amuled (re)start script, giving out rights to other users. I'd say that running as root makes it more safe in this case.

Anyway, adding the path and home settings appearantly did the job, thanks! It's now working as it should.
Logged
A waste is a terrible thing to mind.

christophocles

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Connection to Kad lost
« Reply #71 on: August 27, 2007, 08:10:28 PM »

Hi, I noticed it has been several months since the last post on this thread.  Has there been any work done to fix this problem?

I am using the shell script to check if KAD is connected and to restart amuled.  However, this seems to mess with my router because all network connections passing through the router become very slow after the script restarts amuled a few times.  I am thinking amuled is throwing off some weird UDP packets or something.  Power-cycling the router seems to make things work properly again.

I haven't seen anyone else complain of this problem.  Does this perhaps provide a clue as to whats going on?  Obviously, with this router issue, amuled with KAD is no longer an option for me until the bug gets fixed.  I really do hope someone with more experience than me can take a look at this problem again.
Logged
Pages: 1 ... 3 4 [5]