PtokaX forum

PtokaX => Bugs => Topic started by: Elix on 09 October, 2008, 19:02:50

Title: Users have same ip addresses
Post by: Elix on 09 October, 2008, 19:02:50
Strange bug in 0.4.1.1-posix (run on freebsd).

After some days hub start to see many users under same ip, but ips are different!
Restart helps, but every day restarts isn't a good idea...
Title: Re: Users have same ip addresses
Post by: ATAG on 09 October, 2008, 19:23:38
We run 0.4.1.1 on ubuntu and gentoo with several thousand users but I never faced this problem. Can you show some example?
Title: Re: Users have same ip addresses
Post by: Elix on 12 October, 2008, 18:35:46
Today it happened again.
I see many same ips in user list. When i check ips using lua script, i see same addresses too.

Perhaps this is related to option #53 (Check IP in commands). Now i turned it on, perhaps this will help.

Also, how can i view some debug log?
Title: Re: Users have same ip addresses
Post by: ATAG on 12 October, 2008, 23:28:13
Quote from: Elix on 12 October, 2008, 18:35:46
Also, how can i view some debug log?
With the UDP Debug Receiver (http://www.ptokax.org/files/PX-UDP-DBG-RECV-2.2.1.7z) and the "!debug <udp_port>" command :)
Title: Re: Users have same ip addresses
Post by: Elix on 14 October, 2008, 18:29:31
Nothing... Debug log is empty.
Also this bug goes every two days, and i restart a hub.
Title: Re: Users have same ip addresses
Post by: Elix on 15 October, 2008, 04:28:18
All scripts i wrote myself :)

it appears that the number of users with the same address is no more than setting #112 - Maximum users from same IP.

I don't think that the error was in one script, because all the scripts see user with one address, although it should be another.
And hub sends $UserIP with this ip too.
Title: Re: Users have same ip addresses
Post by: ATAG on 15 October, 2008, 14:24:36
Have you got some compile warnings?
Title: Re: Users have same ip addresses
Post by: Snooze on 17 October, 2008, 16:57:27
This could be done by a simple "firewall" and/or "router" error config, either hardware or software.
I suggest checking both.

/Snooze
Title: Re: Users have same ip addresses
Post by: Elix on 21 November, 2008, 13:13:14
Again :(

In debug:

19:11:06 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:07 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:08 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:09 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:10 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:11 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:12 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:13 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:14 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:15 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:16 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:17 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:18 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:19 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
...
Title: Re: Users have same ip addresses
Post by: ?StIfFLEr?? on 21 November, 2008, 14:16:53
With the UDP Debug Receiver and the "!debug <udp_port>" command
Thanks ATAG
+1
Title: Re: Users have same ip addresses
Post by: Elix on 21 November, 2008, 20:52:12
I started ptokax on another server (freebsd too). 0 users, only me.

I see a lot of messages: "[ERR] accept() for port 411 has returned an INVALID_SOCKET" every one second.
What is it? :)
Title: Re: Users have same ip addresses
Post by: ATAG on 21 November, 2008, 22:19:37
Try higher port number then 1024...
Title: Re: Users have same ip addresses
Post by: Elix on 21 November, 2008, 22:58:19
Quote from: ATAG on 21 November, 2008, 22:19:37
Try higher port number then 1024...

[ERR] accept() for port 4000 has returned an INVALID_SOCKET
[ERR] accept() for port 56734 has returned an INVALID_SOCKET

This is very strange :)
Title: Re: Users have same ip addresses
Post by: Elix on 22 November, 2008, 17:34:27
Also, there are no error messages when hub runs on windows.
Title: Re: Users have same ip addresses
Post by: bastya_elvtars on 22 November, 2008, 18:47:02
I am in no way a programmer but digging through the web I found that invalid_socket should not be returned under Unix. Look at this page (http://ubuntuforums.org/archive/index.php/t-903776.html).
Title: Re: Users have same ip addresses
Post by: ATAG on 22 November, 2008, 23:06:31
You will get this message on any (but 2) errors in accept(). The "timering" (1 error/sec) is very interesting :)