View Full Version : Problems with warehouse
HI all
in last few days our server start crashing and most often message is:
IOThread [7][11781] (ahehe): void IOThread_common(void *arglist) -> static bool RequestPickItem(CSocket* pSocket, const unsigned char* packet) -> CWareHouse::PickItem(CSocket* pSocket, const unsigned char* packet, int nNPCClassId ) -> bool CItem::Save(bool bForceSave) -> DBConn::Execute -> DBConn::Error
Lock Stack : RW WriteLock(482406792[1cc0f188])
IOThread [6][7734] (ahehe): Lock Stack : RW WriteLock(79159576[4b7e118]) -> RW
....
any help? (cacheD crash first..) the numbers are random..
again..
IOThread [0][36703] (ahehe): void IOThread_common(void *arglist) -> static bool SellItemsPacket(CSocket* pSocket, const unsigned char* packet) -> CItem::CommitTransation() -> bool CItem::Delete() -> DBConn::Execute -> DBConn::Error
Lock Stack : RW WriteLock(487731344[1d123090])
IOThread [1][0] (good): void IOThread_common(void *arglist)
Lock Stack :
IOThread [2][0] (good): void IOThread_common(void *arglist) -> static bool RequestManipulateItem(CSocket* pSocket, const unsigned char* packet) -> CWareHouse::ManipulateItems(CSocket* pSocket, const unsigned char* packet) -> CItem::CommitTransation() -> bool CItem::Save(bool bForceSave) -> DBConn::Execute
Lock Stack : RW WriteLock(487695376[1d11a410])
Ban "ahehe" should do the trick
Hmm I found in SQL log problems with db inconsistency..
CHECKDB found 0 allocation errors and 3 consistency errors in database 'lin2world'.
...
Well the errors its showing are relating to the DB and it looks like at the end of the error theres a DB connection error.
you could search in cached logs for the last cached action... and if for every crash it's the same you'll have more info about how/why the crash occurs.
ok I repaired it all but there are still 2 errors..
Msg 8966, Level 16, State 2, Line 3
Unable to read and latch page (1:3222) with latch type SH. 23(error not found) failed.
Msg 8966, Level 16, State 2, Line 3
Unable to read and latch page (1:3789) with latch type SH. 23(error not found) failed.
Msg 8909, Level 16, State 1, Line 3
you could search in cached logs for the last cached action... and if for every crash it's the same you'll have more info about how/why the crash occurs.
I look in SQL logs and there was its problem with inconsistency..
so I run
EXEC sp_dboption 'lin2world', 'single user', 'TRUE'
DBCC CHECKDB
(lin2world, REPAIR_allow_data_loss)
now 12/14 errors fixed.. but there are last 2..
CHECKDB found 0 allocation errors and 0 consistency errors in database 'lin2world'.
DBCC execution completed. :-DD all errors done. there was problem with harddrives so I use chkdsk /f and restart ;]