Issue information

Issue ID
#6779
Status
Needs more Info
Severity
None
Started
Hercules Elf Bot
Oct 11, 2012 20:59
Last Post
Hercules Elf Bot
Nov 19, 2012 8:32
Confirmation
Yes (4)
No (2)

Hercules Elf Bot - Oct 11, 2012 20:59

Originally posted by [b]Gran Rover[/b]
[Info]: Saved char 144 - Zhuby: status.
[Info]: Saved char 170 - Aragorn: status.
[Warning]: Connection to Login Server lost.

[Info]: Saved char 1178 - BeIzack: inventory status hotkeys.
[Status]: Map-server #0 has disconnected.
[Info]: Guild loaded (21 - Asgard)
[Warning]: connect_check: DDoS Attack detected from 216.245.xxx.xxx!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 216.xxx.xxx.170:69xx
[Status]: Connected to login-server (connection #5).
[Status]: Awaiting maps from map-server.


the char server goes down several times sometimes up immediately but sometimes it falls not return until it get up again q, this affects only the char server. (rev rathena16809)

This post has been edited by Gran Rover on Oct 12, 2012 15:44

Hercules Elf Bot - Oct 12, 2012 0:41

Originally posted by [b]renniw[/b]
i has a same problem in rev. rathena 16816.

Hercules Elf Bot - Oct 12, 2012 8:32

Originally posted by [b]Ryuuzaki[/b]
Same here on a dedicated machine, it seems like the mapserver loses connection to charserver for unknown reason.
The mapserver spams the charserver with requests, resulting in autoban of the own ip because of "ddos".

REV 16814

Hercules Elf Bot - Oct 12, 2012 12:12

Originally posted by [b]Gran Rover[/b]
UPP

Hercules Elf Bot - Oct 12, 2012 13:13

Originally posted by [b]Ind[/b]
this is a 2-way thing, i'd need to know what the map server says at the time the char server disconnects itself.

Hercules Elf Bot - Oct 12, 2012 14:53

Originally posted by [b]Ryuuzaki[/b]
Will post here as soon as it appears again, letting it run on my local machine too for higher chance. Maybe it helps that it even appears without any players online.

Hercules Elf Bot - Oct 12, 2012 16:23

Originally posted by [b]Gran Rover[/b]
Message Map-server console:


[Info]: Closed connection from '127.0.0.1'.
[Info]: Closed connection from '216.245.xxx.xxx'.
[Info]: Closed connection from '127.0.0.1'.
[Info]: 'Sekxxxai' logged in. (AID/CID: '2000xxx/35', Packet Ver: '30', IP: '187.147.xxx.xxx', Group '0').
[Info]: Closed connection from '127.0.0.1'.
[Info]: Closed connection from '127.0.0.1'.
[Info]: Closed connection from '216.245.xxx.xxx'.
[Info]: Closed connection from '127.0.0.1'.
[Info]: Session #6 timed out
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 216.245.xxx.xxx:6xx1
[Status]: Logging in to char server...
[Info]: Character 'Sekai' logged off.
[Info]: Session #6 timed out
[Warning]: Connection to Char Server lost.

[Status]: Connecting to 216.245.xxx.xxx:6xx1
[Status]: Logging in to char server...




[Status]: Connecting to 216.245.xxx.xxx:6xx1
[Status]: Logging in to char server...
[Warning]: Connection to Char Server lost.


[Status]: Connecting to 216.245.xxx.xxx:6xx1
[Status]: Logging in to char server...
[Warning]: Connection to Char Server lost.

etc...

Hercules Elf Bot - Oct 12, 2012 16:48

Originally posted by [b]Ind[/b]
whats the value in your /conf/packet_athena.conf stall_time field?

Hercules Elf Bot - Oct 12, 2012 17:53

Originally posted by [b]Ryuuzaki[/b]
[CODE]
// Athena sockets Configuration file
// translated (davidsiaw)

// Display debug reports (When something goes wrong during the report, the report is saved.)
debug: no
// How long can a socket stall before closing the connection (in seconds)
stall_time: 60
// Maximum allowed size for clients packets in bytes (default: 24576).
// NOTE: To reduce the size of reported packets, lower the values of defines, which
// have been customized, such as MAX_STORAGE, MAX_GUILD_STORAGE or MAX_CART.
// NOTE: Do not modify this setting, unless the client has been modified to support
// larger packets. The client will crash, when it receives larger packets.
socket_max_client_packet: 24576
//----- IP Rules Settings -----
// If IP's are checked when connecting.
// This also enables DDoS protection.
enable_ip_rules: yes
// Order of the checks
// deny,allow : Checks deny rules, then allow rules. Allows if no rules match.
// allow,deny : Checks allow rules, then deny rules. Allows if no rules match.
// mutual-failure : Allows only if an allow rule matches and no deny rules match.
// (default is deny,allow)
order: deny,allow
// order: allow,deny
// order: mutual-failture
// IP rules
// allow : Accepts connections from the ip range (even if flagged as DDoS)
// deny : Rejects connections from the ip range
// The rules are processed in order, the first matching rule of each list (allow and deny) is used
// allow: 127.0.0.1
// allow: 192.168.0.0/16
// allow: 10.0.0.0/255.0.0.0
// allow: all
// deny: 127.0.0.1

//---- DDoS Protection Settings ----
// If ddos_count connection request are made within ddos_interval msec, it assumes it's a DDoS attack
// Consecutive attempts interval (msec)
// (default is 3000 msecs, 3 seconds)
ddos_interval: 3000
// Consecutive attempts trigger
// (default is 5 attemps)
ddos_count: 5
// The time interval after which the threat of DDoS is assumed to be gone. (msec)
// After this amount of time, the DDoS restrictions are lifted.
// (default is 600000 msecs, 10 minutes)
ddos_autoreset: 600000

import: conf/import/packet_conf.txt
[/CODE]

Guess my file is virgin (unmodified)

Hercules Elf Bot - Oct 16, 2012 2:25

Originally posted by [b]renniw[/b]
I test it not crash when run on window. But it still crash on Linux
I use on Centos 64 bit. I download server which lasted REV. and no modify anything. But Still character crash.

Hercules Elf Bot - Oct 16, 2012 20:00

Originally posted by [b]Ind[/b]
[quote name='renniw' timestamp='1350354346' post='14988']
I test it not crash when run on window. But it still crash on Linux I use on Centos 64 bit. I download server which lasted REV. and no modify anything. But Still character crash.
[/quote]
please provide a gdb dump of the crash

Hercules Elf Bot - Oct 17, 2012 9:46

Originally posted by [b]renniw[/b]
Oh i use the memory(ram) in my VPS so over. It is made my character crash.

My vps has fixed ram 512 MB. and burst ram 1GB but i use it 700MB so the server is crash.

This problem for me are solved.

Thanks Ind admin for Best care (^-^)

Hercules Elf Bot - Oct 21, 2012 10:54

Originally posted by [b]cataclysmro[/b]
Same here. Using Centos x86 using the latest revision. Not a mmory probelm, My server nly use half of my server's memory. No crash dump nor memory leaks. Only ht char server disconnects.

Hercules Elf Bot - Oct 23, 2012 15:01

Originally posted by [b]zoxmox[/b]
Same here i use on Centos 64 bit

[Status]: Connecting to 127.0.0.1:25xxx
[Status]: Logging in to char server...
[Warning]: Connection to Char Server lost.

Hercules Elf Bot - Oct 31, 2012 11:08

Originally posted by [b]zoxmox[/b]
I use [url="http://trac.rathena.org/changeset/16851/rathena"][b][size="2"][color="#225985"]r16851[/color][/size][/b][/url] on Centos x64


Login_log

[quote]
[Status]: Memory manager initialised: log/login-server_sql.leaks

rAthena Development Team presents
___ __ __
_____/ | / /_/ /_ ___ ____ ____ _
/ ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/
/ / / ___ / /_/ / / / __/ / / / /_/ /
/_/ /_/ |_\__/_/ /_/\___/_/ /_/\__,_/

[url="http://rathena.org/board/"]http://rathena.org/board/[/url]

[Info]: SVN Revision: 'Unknown'.
[Info]: Server supports up to '1024' concurrent connections.
[Info]: Reading configuration file conf/login_athena.conf...
[Status]: set login_port : 29452
[Info]: Console Silent Setting: 0
[Info]: Reading configuration file conf/inter_athena.conf...
[Info]: Reading configuration file conf/import/inter_conf.txt...
[Info]: Finished reading conf/import/inter_conf.txt.
[Info]: Finished reading conf/inter_athena.conf.
[Info]: Reading configuration file conf/import/login_conf.txt...
[Info]: Finished reading conf/import/login_conf.txt.
[Info]: Finished reading conf/login_athena.conf.
[Info]: Reading the configuration file conf/subnet_athena.conf...
[Status]: Read information about 1 subnetworks.
[Info]: Initializing random number generator.
[Info]: Using account engine 'sql'.
[Status]: The login-server is ready (Server is listening on the port 29452).
[Info]: Connection request of the char-server 'Judas-Ro' @ 210.x.xx.xxx:29453 (account: 'xxx1', pass: 'xxx1', ip: '210.x.xx.xxx')
[Notice]: Authentication accepted (account: xxx1, id: 1, ip: 210.x.xx.xxx)
[Status]: Connection of the char-server 'Judas-Ro' accepted.
[Status]: Request for connection of zoxmox (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: zoxmox, id: 2000000, ip: 171.99.225.22)
[Status]: Connection of the account 'zoxmox' accepted.
[Info]: Closed connection from '171.99.225.22'.
[Status]: set users Judas-Ro : 1
[Status]: Request for connection of zoxmox (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: zoxmox, id: 2000000, ip: 171.99.225.22)
[Notice]: User 'zoxmox' is already online - Rejected.
[Info]: Closed connection from '171.99.225.22'.
[Status]: Request for connection of test02 (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: test02, id: 2000002, ip: 171.99.225.22)
[Status]: Connection of the account 'test02' accepted.
[Info]: Closed connection from '171.99.225.22'.
[Info]: Session #6 timed out
[Status]: Char-server 'Judas-Ro' has disconnected.
[Status]: Request for connection of test02 (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: test02, id: 2000002, ip: 171.99.225.22)
[Status]: Connection refused: there is no char-server online (account: test02).
[Info]: Closed connection from '171.99.225.22'.
[Status]: Request for connection of test02 (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: test02, id: 2000002, ip: 171.99.225.22)
[Status]: Connection refused: there is no char-server online (account: test02).
[Info]: Closed connection from '171.99.225.22'.
[Status]: Request for connection of test02 (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: test02, id: 2000002, ip: 171.99.225.22)
[Status]: Connection refused: there is no char-server online (account: test02).
[Info]: Closed connection from '171.99.225.22'.
[Status]: Request for connection of test02 (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: test02, id: 2000002, ip: 171.99.225.22)
[Status]: Connection refused: there is no char-server online (account: test02).
[Info]: Closed connection from '171.99.225.22'.
[Info]: Connection request of the char-server 'Judas-Ro' @ 210.x.xx.xxx:29453 (account: 'xxx1', pass: 'xxx1', ip: '210.x.xx.xxx')
[Notice]: Authentication accepted (account: xxx1, id: 1, ip: 210.x.xx.xxx)
[Status]: Connection of the char-server 'Judas-Ro' accepted.
[Status]: Request for connection of test02 (ip: 171.99.225.22).
[Notice]: Authentication accepted (account: test02, id: 2000002, ip: 171.99.225.22)
[Status]: Connection of the account 'test02' accepted.
[Info]: Closed connection from '171.99.225.22'.
[Info]: Setting accounts from char-server 1 offline.
[Status]: Char-server 'Judas-Ro' has disconnected.
[/quote]

Char_log

[quote]

[Status]: Defaulting to 210.x.xx.xxx as our IP address
[Info]: Cleaning the 'char' table...
[Info]: Cleaning the 'guild' table...
[Info]: Cleaning the 'guild_member' table...
[Info]: End of char server initilization function.
[Info]: open port 29453.....
[Status]: The char-server is ready (Server is listening on the port 29453).
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 210.x.xx.xxx:29452
[Status]: Connected to login-server (connection #5).
[Status]: Awaiting maps from map-server.
[Status]: Map-Server 0 connected: 783 maps, from IP 210.x.xx.xxx port 29454.
[Status]: Map-server 0 loading complete.
[Info]: request connect - account_id:2000000/login_id1:591580467/login_id2:1446357860
[Info]: storage load complete from DB - id: 2000000 (total: 0)
[Info]: Selected char: (Account 2000000: 1 - GM-Judas)
[Info]: Subnet check [171.99.225.22]: WAN
[Info]: mail load complete from DB - id: 150000 (total: 0)
[Status]: Map-server #0 has disconnected.
[Warning]: Connection to Login Server lost.
[Warning]: connect_check: DDoS Attack detected from 210.x.xx.xxx!
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 210.x.xx.xxx:29452
[Status]: Connected to login-server (connection #5).
[Status]: Awaiting maps from map-server.
[Info]: request connect - account_id:2000002/login_id1:1769793037/login_id2:1770888311
[Status]: Shutting down...
[Status]: Terminating...
[Notice]: Sending all users offline.
[Status]: Finished.
[Status]: Mempool: Terminating async. allocation worker and remaining pools.
[Info]: Memory manager: No memory leaks found.
[/quote]


Map_log

[quote]

[Info]: Done loading '13917' NPCs:
-'3106' Warps
-'292' Shops
-'10519' Scripts
-'3607' Spawn sets
-'87771' Mobs Cached
-'0' Mobs Not Cached
[Status]: Event 'OnInit' executed with '1634' NPCs.
[Status]: Server is 'ready' and listening on port '29454'.
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 210.x.xx.xxx:29453
[Status]: Logging in to char server...
[Status]: Successfully logged on to Char Server (Connection: '6').
[Status]: Sending maps to char server...
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.
[Status]: Event 'OnInterIfInitOnce' executed with '0' NPCs.
[Status]: Requested '34' guild castles from char-server...
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Received '34' guild castles from char-server.
[Info]: 'GM-Judas' logged in. (AID/CID: '2000000/150000', Packet Ver: '30', IP: '171.99.225.22', Group '99').
[Info]: Session #6 timed out
[Status]: Attempting to connect to Char Server. Please wait.
[Status]: Connecting to 210.x.xx.xxx:29453
[Status]: Logging in to char server...
[Info]: Session #6 timed out
[Warning]: Connection to Char Server lost.
[Status]: Connecting to 210.x.xx.xxx:29453
[Status]: Logging in to char server...
[Info]: Session #6 timed out
[Warning]: Connection to Char Server lost.
[Status]: Connecting to 210.x.xx.xxx:29453
[Status]: Logging in to char server...
[Warning]: Connection to Char Server lost.
[Status]: Connecting to 210.x.xx.xxx:29453
[Status]: Logging in to char server...
[Warning]: Connection to Char Server lost.

[/quote]

This post has been edited by zoxmox on Oct 31, 2012 16:26

Hercules Elf Bot - Oct 31, 2012 19:42

Originally posted by [b]Ind[/b]
its the faulty stall time code. will work on it.

Hercules Elf Bot - Oct 31, 2012 20:17

Originally posted by [b]Ind[/b]
Fixed in [rev=16854]

Hercules Elf Bot - Oct 31, 2012 21:38

Originally posted by [b]zoxmox[/b]
/no1 thank you /lv

Hercules Elf Bot - Nov 2, 2012 23:42

Originally posted by [b]yuckshaine[/b]
I have the same problem? How can i fix it?

Thanks

Hercules Elf Bot - Nov 3, 2012 13:51

Originally posted by [b]Ind[/b]
[quote name='yuckshaine' timestamp='1351899729' post='15302']
I have the same problem? How can i fix it? Thanks
[/quote]
update your revision

Hercules Elf Bot - Nov 3, 2012 21:41

Originally posted by [b]yuckshaine[/b]
Dont work, I have this problem.. [url="http://rathena.org/board/topic/73508-connection-to-char-server-lost-loop/"]http://rathena.org/board/topic/73508-connection-to-char-server-lost-loop/[/url]

Hercules Elf Bot - Nov 5, 2012 19:30

Originally posted by [b]Gran Rover[/b]
upp

el problema no se resolvio.

Hercules Elf Bot - Nov 8, 2012 10:14

Originally posted by [b]Feefty[/b]
hi, i already did your patch and i'm still having the problem [url="http://prntscr.com/j896q"]http://prntscr.com/j896q[/url] [url="http://prntscr.com/j89wl"]http://prntscr.com/j89wl[/url]
Thanks.

Hercules Elf Bot - Nov 9, 2012 4:04

Originally posted by [b]Ind[/b]
you all still having issues please post what server-OS and its versions you guys are running
[hr]
Also: try reducing your stall_time config in /conf/packet_athena.conf e.g. change it to 20

This post has been edited by Ind on Nov 9, 2012 4:06

Hercules Elf Bot - Nov 19, 2012 8:32

Originally posted by [b]Feefty[/b]
centos 5 32bit / latest trunk