Server crashing (Ubuntu 12.04) on login

ryce
Posts: 9
Joined: Thu Jul 04, 2013 9:54 am

Server crashing (Ubuntu 12.04) on login

Post by ryce » Mon Oct 21, 2013 1:53 pm

First off - thanks so much to the DSP team. This software is awesome.

I've been running a server for about a month now on an Ubuntu 12.04 VM. It's been working great. Maybe 2 or 3 unexplained crashes.

Today, however, I cannot keep the server up. The map server is spamming a map_encipher_packet: bad packet from "ip" error whenever a user logs in. The player gets an R0 disconnection and the server crashes. No changes have been made to the host server and the DSP files have not been altered or updated. I played for a few hours this weekend, as did a few other players, with no problem.

Any thoughts? Thanks.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Server crashing (Ubuntu 12.04) on login

Post by kjLotus » Mon Oct 21, 2013 3:03 pm

Do you know what version of the client they are on?

ryce
Posts: 9
Joined: Thu Jul 04, 2013 9:54 am

Re: Server crashing (Ubuntu 12.04) on login

Post by ryce » Mon Oct 21, 2013 6:26 pm

I am using Ashita 1.0.0.4, pol.exe vc11. Updated official client last week.

Perfect performance all weekend, no changes to client or server.

ryce
Posts: 9
Joined: Thu Jul 04, 2013 9:54 am

Re: Server crashing (Ubuntu 12.04) on login

Post by ryce » Mon Oct 21, 2013 6:32 pm

Just got this error while trying to restart map server while a client was at "Downloading data...":

[Error] recv_parse: Cannot load session_key for charid 21828[timestamp]

Server crashes, though I can imagine this has nothing to do with my problem.

ryce
Posts: 9
Joined: Thu Jul 04, 2013 9:54 am

Re: Server crashing (Ubuntu 12.04) on login

Post by ryce » Tue Oct 22, 2013 12:34 pm

Additionally, I cannot create a new account. Here is the output from the login server:

Log in as existing account
[22/Oct 17:18][Info] login_parse:<steve> was connected
[22/Oct 17:18][Debug] lobbyview_parse:Incoming Packet:<26> from ip:<173.161.128.169>
[22/Oct 17:18][Debug] lobbyview_parse:Incoming Packet:<1f> from ip:<173.161.128.169>
[22/Oct 17:18][Debug] lobbydata_parse:Incoming Packet:<a1> from ip:<173.161.128.169>
[22/Oct 17:18][Debug] lobbyview_parse:Incoming Packet:<24> from ip:<173.161.128.169>
[22/Oct 17:18][Debug] lobbyview_parse:Incoming Packet:<7> from ip:<173.161.128.169>
[22/Oct 17:18][Debug] lobbydata_parse:Incoming Packet:<a2> from ip:<173.161.128.169>
[22/Oct 17:18][Info] lobbydata_parse: zoneid:(230),zoneip:(162.243.8.229),zoneport:(54230) for char:(21828)
[22/Oct 17:18][Status] lobbydata_parse: client 173.161.128.169 finished work with lobbyview
[22/Oct 17:19][Info] lobbydata_parse: steve shutdown the socket
[22/Oct 17:19][Info] lobbydata_parse: steve's login_session_data is deleted

Attempt to create new account
[22/Oct 17:28][Warning] login_parse:173.161.128.169 send unreadable data
[22/Oct 17:28][Info] login_parse:173.161.128.169shutdown socket...

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Server crashing (Ubuntu 12.04) on login

Post by whasf » Tue Oct 22, 2013 6:51 pm

Sounds like more problems with encryption and running on Linux. Unfortunately our main Linux guy hasn't been around lately so I can't really help you that much :(
-- Whasf

ryce
Posts: 9
Joined: Thu Jul 04, 2013 9:54 am

Re: Server crashing (Ubuntu 12.04) on login

Post by ryce » Wed Oct 23, 2013 12:02 pm

I'm getting these errors now as the server crashes:

[16:49:41][Error] Memory manager: args of aFree 0x0xb70569a4 is invalid pointer src/map/map.cpp line 230
[16:49:41][Error] Memory manager: args of aFree 0x0xb70570a4 is invalid pointer src/map/map.cpp line 231
[16:49:41][Error] Memory manager: args of aFree 0x0xb6c6402c is invalid pointer src/map/map.cpp line 233
[16:49:41][Error] Memory manager: args of aFree 0x0xb6c6408c is overflowed pointer src/map/map.cpp line 234
Segmentation fault

The lines referenced are part of the do_final function

void do_final(void)
{
230 aFree(g_PBuff);
231 aFree(PTempBuff);

233 aFree((void*)map_config.mysql_host);
234 aFree((void*)map_config.mysql_database);

itemutils::FreeItemList();
battleutils::FreeWeaponSkillsList();
battleutils::FreeSkillChainDamageModifiers();

petutils::FreePetList();
zoneutils::FreeZoneList();
luautils::free();

delete CTaskMgr::getInstance();
delete CVanaTime::getInstance();

Sql_Free(SqlHandle);
}

ryce
Posts: 9
Joined: Thu Jul 04, 2013 9:54 am

Re: Server crashing (Ubuntu 12.04) on login

Post by ryce » Wed Oct 30, 2013 2:50 pm

I've installed again on fresh Ubuntu instances on 2 different data centers and a VM on my local machine - same errors occur. In other words, in my experience, DSP is no longer compatible with linux. :(

Can anyone prove me wrong? Please

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Server crashing (Ubuntu 12.04) on login

Post by kjLotus » Wed Oct 30, 2013 3:34 pm

ryce wrote:I've installed again on fresh Ubuntu instances on 2 different data centers and a VM on my local machine - same errors occur. In other words, in my experience, DSP is no longer compatible with linux. :(

Can anyone prove me wrong? Please
if your ubuntu is 64-bit, i don't think it's ever been compatible

ryce
Posts: 9
Joined: Thu Jul 04, 2013 9:54 am

Re: Server crashing (Ubuntu 12.04) on login

Post by ryce » Wed Oct 30, 2013 3:40 pm

yeah - I've been careful to only use 32-bit VMs.

Post Reply