Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #006779

  • 0 - None Assigned

  • Needs More Info

Issue Confirmations

  • Yes (4)No (2)
Photo

Crash char server

Posted by Hercules Bot on 11 October 2012 - 08:59 PM

Originally posted by Gran Rover
[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)

Originally posted by renniw
i has a same problem in rev. rathena 16816.

Originally posted by Ryuuzaki
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

Originally posted by Gran Rover
UPP

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

Originally posted by Ryuuzaki
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.

Originally posted by Gran Rover
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...

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

Originally posted by Ryuuzaki
// 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

Guess my file is virgin (unmodified)

Originally posted by renniw
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.

Originally posted by Ind

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.

please provide a gdb dump of the crash

Originally posted by renniw
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 (^-^)

Originally posted by cataclysmro
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.

Originally posted by zoxmox
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.

Originally posted by zoxmox
I use r16851 on Centos x64


Login_log

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

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

http://rathena.org/board/   

[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.


Char_log

[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.



Map_log

[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.


Edited by zoxmox, 31 October 2012 - 04:26 PM.


Originally posted by Ind
its the faulty stall time code. will work on it.

Originally posted by Ind
Fixed in [rev=16854]

Originally posted by zoxmox
/no1  thank you /lv

Originally posted by yuckshaine
I have the same problem? How can i fix it?

Thanks

Originally posted by Ind

I have the same problem? How can i fix it? Thanks

update your revision

Originally posted by yuckshaine
Dont work, I have this problem.. http://rathena.org/b...rver-lost-loop/