aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file  (Read 6519 times)

moshe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11

i get ServerUDP: Sources received for unknown file every few hours as long as the UDP port is open (even when kad is not working)
when it happens the computer is working very slow and freezes for a sec frequently which is very frustrating......

i know thats not much for you to help but i don't know what info you need to help. i use the version in the repositories of ubuntu, my sorces are from http://gruk.org/server.met.gz for edonky and from  http://download.tuxfamily.org/technosalad/utils/nodes.dat for kad but it had the same problem when it had the default URL there

if you need more info just ask and i will deliver as best as i can.

thanks in advance, moshe
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #1 on: January 24, 2010, 01:42:24 AM »

This will maybe be incredibly overkill but, we may need to know what the CONTENT of the package is. This will mean compiling a debug aMule and enabling code to dump the content of unknown packets like that, which is not in place. Maybe we can get someone here (not me) to hack together a hexdump of the packet creating that, and then you can compile aMule on your own from new sources and check the debug log after it happens again. Let's see if anyone steps up to do that quick patch. Meanwhile, I'd recommend you check how to compile aMule on your computer as opposed to using the repositories version, so you can compile the modified version when we give it to you.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #2 on: January 24, 2010, 12:51:52 PM »

I can also trigger this message by executing a global search...

See, after executing a global search for "amule" I got:
Code: [Select]
2010-01-24 12:45:28: ServerUDPSocket.cpp(113): ServerUDP: Received UDP server packet from 64.27.4.231:4237, opcode (0x99)
 2010-01-24 12:45:28: ServerUDPSocket.cpp(119): ServerUDP: 108 bytes
 2010-01-24 12:45:28: 00000000  32 92 cf 20 41 3f 43 35  93 2c 34 42 c1 36 92 d1  |2.Ï A?C5.,4BÁ6.Ñ|
 2010-01-24 12:45:28: 00000010  40 1b 04 e7 35 12 04 00  00 00 02 01 00 01 34 00  |@..ç5.........4.|
 2010-01-24 12:45:28: 00000020  44 6f 77 6e 6c 6f 61 64  20 61 6d 75 6c 65 20 73  |Download amule s|
 2010-01-24 12:45:28: 00000030  65 63 75 72 65 6c 79 20  77 69 74 68 20 6e 65 77  |ecurely with new|
 2010-01-24 12:45:28: 00000040  20 53 65 63 75 72 65 64  20 42 72 6f 77 73 65 72  | Secured Browser|
 2010-01-24 12:45:28: 00000050  2e 7a 69 70 03 01 00 02  45 70 db 00 03 01 00 15  |.zip....EpÛ.....|
 2010-01-24 12:45:28: 00000060  a5 1f 00 00 03 01 00 30  a5 1f 00 00              |¥......0¥...    |
 2010-01-24 12:45:28: ServerUDPSocket.cpp(113): ServerUDP: Received UDP server packet from 64.27.4.231:4237, opcode (0x9b)
 2010-01-24 12:45:28: ServerUDPSocket.cpp(119): ServerUDP: 23 bytes
 2010-01-24 12:45:28: 00000000  32 92 cf 20 41 3f 43 35  93 2c 34 42 c1 36 92 d1  |2.Ï A?C5.,4BÁ6.Ñ|
 2010-01-24 12:45:28: 00000010  01 40 1b 04 e7 35 12                              |.@..ç5.         |
!2010-01-24 12:45:28: ServerUDPSocket.cpp(154): ServerUDP: Sources received for unknown file

i.e. the same server first sends us a fake result ("Download amule securely with new Secured Browser.zip"), then immediately sends source(s) for that fake file.

However, your case might be unrelated to this. Below is a patch that will log every packet received from servers (in debug build).
Code: [Select]
--- src/ServerUDPSocket.cpp
+++ src/ServerUDPSocket.cpp
@@ -116,6 +116,7 @@ void CServerUDPSocket::ProcessPacket(CMemFile& packet, uint8 opcode, uint32 ip,
                // Imported: OP_GLOBSEARCHRES, OP_GLOBFOUNDSOURCES & OP_GLOBSERVSTATRES
                // This makes Server UDP Flags to be set correctly so we use less bandwith on asking servers for sources
                // Also we process Search results and Found sources correctly now on 16.40 behaviour.
+               AddDebugLogLineM(false, logServerUDP, DumpMemToStr(packet.GetRawBuffer(), packet.GetLength()));
                switch(opcode){
                        case OP_GLOBSEARCHRES: {
 
« Last Edit: January 24, 2010, 12:56:27 PM by GonoszTopi »
Logged
concordia cum veritate

moshe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #3 on: February 14, 2010, 11:39:48 PM »

i didn't get what should i do to understand the problem... what more info do you need me to give you?

i didn't post here since i had some problems with my internet line so i didn't use amule for some time and after i tried http://www.amule.org/amule/index.php?topic=16690.0 and it helped for a few days

now it happens again every now and then, a few times in a day

if you need any info i will try to provide

i see i didn't post the version i use, my version is 2.2.6 from the repositories of ubuntu and i have high ID in the server and the kad connection is OK according to the log in the networks section in the kad info tab

hope it clears the problem a bit, thanks for the help
Logged

RRM

  • Sr. Member
  • ****
  • Karma: 40
  • Offline Offline
  • Posts: 444
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #4 on: February 15, 2010, 10:07:15 PM »

i didn't get what should i do to understand the problem... what more info do you need me to give you?

Nothing that you can give right now
But you can provide that info after you have compiled, installed and run a 'debug enabled' aMule build,
containing the patch that GonoszTopi provided.

I know, thats sounds awfully difficult,
but even i could do that (and it solved my problem),
and i really knew less about this stuff than you know now.
So, its totally up to you:
Do you want to learn to do all that to solve your problem?
Logged

moshe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #5 on: February 16, 2010, 02:58:29 AM »

i am willing to learn what's needed for this, after all its good not only for this... so it might help me in the future too :)
where do i download this version and how to compile it? i am on ubuntu 9.10 64 bit for desktop comp

even though i do understand a bit of the system i am kind of a newbe on this front so any help will be appreciated

ok, i downloaded the ver 2.2.6, now how to compile it?

i just found out something that might help you to figure out the problem, i tried to start amule from the consol, when the problem of the UDP didn't happen and i closed the program it closed perfectly, but when i closed the program while it gave me the line "ServerUDP: Sources received for unknown file" it didn't close properly and gave me the next output

Code: [Select]
--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/index.php?board=67.0
If possible, please try to generate a real backtrace of this crash:
    http://wiki.amule.org/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.6 using wxGTK2 v2.8.10
Running on: Linux 2.6.31-19-generic x86_64

Shutting down aMule...
aMule dialog destroyed
[2] ?? in amule [0x448504]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7ff1523da57c]
[4] ?? in /lib/libpthread.so.0 [0x7ff154084190]
[5] ?? in amule [0x4eb7e0]
[6] ?? in amule [0x4f34f9]
[7] ?? in amule [0x45bcbc]
[8] ?? in amule [0x4628f4]
[9] ?? in amule [0x44dc50]
[10] ?? in amule [0x5162bd]
[11] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff1523d6170]
[12] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff1523d7144]
[13] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff1523d7227]
[14] wxWindowBase::Close(bool) in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7ff152b5ce8a]
[15] ?? in /usr/lib/libwx_gtk2u_core-2.8.so.0 [0x7ff152a6280b]
[16] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0x7ff1510d6728]
[17] g_closure_invoke in /usr/lib/libgobject-2.0.so.0[0x7ff14faa05ae]
[18] ?? in /usr/lib/libgobject-2.0.so.0 [0x7ff14fab5983]
[19] g_signal_emit_valist in /usr/lib/libgobject-2.0.so.0[0x7ff14fab6bcc]
[20] g_signal_emit in /usr/lib/libgobject-2.0.so.0[0x7ff14fab7283]
[21] ?? in /usr/lib/libgtk-x11-2.0.so.0 [0x7ff1511dd71f]
[22] gtk_main_do_event in /usr/lib/libgtk-x11-2.0.so.0[0x7ff1510cff3a]
[23] ?? in /usr/lib/libgdk-x11-2.0.so.0 [0x7ff150d44cec]
[24] g_main_context_dispatch in /lib/libglib-2.0.so.0[0x7ff14f1f6bce]
[25] ?? in /lib/libglib-2.0.so.0 [0x7ff14f1fa598]
[26] g_main_loop_run in /lib/libglib-2.0.so.0[0x7ff14f1fa9f5]
[27] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x7ff1510d0177]
[28] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7ff152a579c8]
[29] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7ff152adc8eb]
[30] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff15237c44c]
[31] ?? in amule [0x513612]
[32] __libc_start_main in /lib/libc.so.6[0x7ff1515beabd]
[33] ?? in amule [0x447549]


--------------------------------------------------------------------------------
Aborted

it happened even though i did try to close the program, so i guess its related to my problem
« Last Edit: February 16, 2010, 03:27:39 AM by moshe »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #6 on: February 16, 2010, 09:10:17 AM »

[...]  i am on ubuntu 9.10 64 bit for desktop comp [...]
Code: [Select]
Running on: Linux 2.6.31-19-generic x86_64

Oh, so you're on 64-bit.

where do i download this version and how to compile it?

[...]

ok, i downloaded the ver 2.2.6, now how to compile it?

You'd better download a current development tarball from http://amule.sourceforge.net/tarballs/ and try that. Please read http://wiki.amule.org/index.php/HowTo_Compile_In_Ubuntu
Logged
concordia cum veritate

moshe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #7 on: February 16, 2010, 11:48:01 PM »

i did say that i use 64 bit system, could it be the reason for my problem or you just point it out?

why should i use the develop version? i want to know so i can learn the logic for solving problems like that in the future...

i will do the compiling now in the latest stable (2.2.6) and if it won't work i will try the development version, which should i try? there are a few in the link you posted here
Logged

moshe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #8 on: February 17, 2010, 02:23:54 AM »

i compiled amule and it didn't help a bit... the problem persists, i had the option --enable-debug when i ran the commands so how and what do you need me to give you so you can understand the problem and help me?

i didn't change anything from the normal install so the sources are from http://gruk.org/server.met.gz and so on
Logged

moshe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #9 on: February 18, 2010, 12:16:37 AM »

OK, i did the debugging and the result is in the attached file (i put it in a file since it was to much characters to post it in the post)

i did it with ver 2.2.6 stable which i compiled myself on ubuntu 9.10 64 bit, any ideas on how to fix it?
« Last Edit: February 18, 2010, 12:18:34 AM by moshe »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #10 on: February 20, 2010, 09:30:26 AM »

i get ServerUDP: Sources received for unknown file every few hours [...]
when it happens the computer is working very slow and freezes for a sec frequently which is very frustrating......
I can't see a relation between the two. Well, unless you have incredibly many downloads (more than some thousand).

why should i use the develop version?
Because we don't actively develop the 2.2 branch anymore. There are lots of changes since then in the current development version, which will turn into a 2.3 release (hopefully) soon.

which should i try? there are a few in the link you posted here
Always the newest version (the one with the highest revision number). Though I don't think using a development version would make any difference in this situation, the logfile you posted just sanctioned my firm belief that these messages are caused by fake (or otherwise ill-behaving) servers.
Logged
concordia cum veritate

moshe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amule 2.2.6 in ubuntu get ServerUDP: Sources received for unknown file
« Reply #11 on: February 21, 2010, 12:32:43 AM »

the problem of the speed is not connected with how many downloads i have, it happens with no downloads at all, and it happens every time the problem in amule happens and stops in the same time as much as i can tell.

if the problem is fake servers, how should i solve it? try again to do the instructions on the post http://forum.amule.org/index.php?topic=16690.0?
Logged