• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

AUTH SERVER SHUTDOWN

Newbie Spellweaver
Joined
Dec 7, 2023
Messages
15
Reaction score
3
Hey,
After playing for 40 minutes my authserver simply shut down and in SQL in the table world info was empty...

Has this ever happened to anyone?I already deleted the entire server and redid it step by step and it still happens, has anyone experienced this?
 
Newbie Spellweaver
Joined
May 15, 2006
Messages
36
Reaction score
3
Hey,
After playing for 40 minutes my authserver simply shut down and in SQL in the table world info was empty...

Has this ever happened to anyone?I already deleted the entire server and redid it step by step and it still happens, has anyone experienced this?
As my friend wrote earlier, check the logs. If you don't have them running, run the logs in the game configs on 2
 
Upvote 0
Newbie Spellweaver
Joined
Dec 7, 2023
Messages
15
Reaction score
3
As my friend wrote earlier, check the logs. If you don't have them running, run the logs in the game configs on 2
I was wrong, in fact what is closing is the cache server, after I use BUFF or some ITEM. Here is the log, it has to do with conversion between nvchar and datetime.
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Nov 6, 2023
Messages
47
Reaction score
11
the magic is in
exNum: 242, Microsoft.Data.SqlClient.SqlException (0x80131904): A conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA instrução foi finalizada.\r\nA instrução foi finalizada.\r\n at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\r\n at Microsoft.Data.SqlClient.SqlDataReader.TryConsumeMetaData()\r\n at Microsoft.Data.SqlClient.SqlDataReader.get_MetaData()\r\n at Microsoft.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)\r\n at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)\r\n at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method)\r\n at Microsoft.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)\r\n at Microsoft.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)\r\n at BLCacheServer.DBSaveAbnormalStatusCommand.ExcuteTransactionQuery(BLDatabaseContext dbContext)\r\n at BLCacheServer.CommandProcessorTransaction2.ExcuteTransactionQuery(BLDatabaseContext dbContext, List`1 commandList, FDBConveyor errorConveyor)\r\n at BLCacheServer.CommandProcessorTransaction2.ProcessCommand()\r\n at BLCacheServer.CommandProcessor.Process()\r\nClientConnectionId:f806f9c0-fef9-4b7c-ad5b-7c74391d3587\r\nError Number:242,State:3,Class:16", "connection": {"remoteaddr":"172.16.102.20:52920"}, "thread": 388 }
{ "time": "2024-04-25 23:37:43.800", "level": "error", "message": "Shutdown by DB error(242, A conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA instrução foi finalizada.\r\nA instrução foi finalizada.)!! with command=CommandProcessorTransaction2 (79) conveyorList: [DBSaveAbnormalStatusElement usn=1, playerDBId=28428972647776257, {\"PlayerDBId\":{\"value\":28428972647776257},\"jsonArray\":\"[{\\\"DB_ID\\\":0, \\\"AbnormalStatus_CId\\\":500123, \\\"Player_DB_Id\\\":28428972647776257, \\\"Caster_Player_DB_Id\\\":28428972647776257, \\\"Level\\\":0, \\\"Remain_Duration_Sec\\\":20, \\\"Stack_Count\\\":1, \\\"State_Date\\\":\\\"2024-04-25 23:37:43.656\\\", \\\"Total_Duration_Sec\\\":20, \\\"Valid_Data\\\":1}]\",\"AbnormalDBIDList\":[]}]", "connection": {"remoteaddr":"172.16.102.20:52920"}, "thread": 388 }

but i dont understand a single word of portugese
 
Upvote 0
Newbie Spellweaver
Joined
Dec 7, 2023
Messages
15
Reaction score
3
the magic is in
exNum: 242, Microsoft.Data.SqlClient.SqlException (0x80131904): A conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA instrução foi finalizada.\r\nA instrução foi finalizada.\r\n at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\r\n at Microsoft.Data.SqlClient.SqlDataReader.TryConsumeMetaData()\r\n at Microsoft.Data.SqlClient.SqlDataReader.get_MetaData()\r\n at Microsoft.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)\r\n at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)\r\n at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method)\r\n at Microsoft.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)\r\n at Microsoft.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)\r\n at BLCacheServer.DBSaveAbnormalStatusCommand.ExcuteTransactionQuery(BLDatabaseContext dbContext)\r\n at BLCacheServer.CommandProcessorTransaction2.ExcuteTransactionQuery(BLDatabaseContext dbContext, List`1 commandList, FDBConveyor errorConveyor)\r\n at BLCacheServer.CommandProcessorTransaction2.ProcessCommand()\r\n at BLCacheServer.CommandProcessor.Process()\r\nClientConnectionId:f806f9c0-fef9-4b7c-ad5b-7c74391d3587\r\nError Number:242,State:3,Class:16", "connection": {"remoteaddr":"172.16.102.20:52920"}, "thread": 388 }
{ "time": "2024-04-25 23:37:43.800", "level": "error", "message": "Shutdown by DB error(242, A conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA conversão de um tipo de dados nvarchar em um tipo de dados datetime resultou em um valor fora do intervalo.\r\nA instrução foi finalizada.\r\nA instrução foi finalizada.)!! with command=CommandProcessorTransaction2 (79) conveyorList: [DBSaveAbnormalStatusElement usn=1, playerDBId=28428972647776257, {\"PlayerDBId\":{\"value\":28428972647776257},\"jsonArray\":\"[{\\\"DB_ID\\\":0, \\\"AbnormalStatus_CId\\\":500123, \\\"Player_DB_Id\\\":28428972647776257, \\\"Caster_Player_DB_Id\\\":28428972647776257, \\\"Level\\\":0, \\\"Remain_Duration_Sec\\\":20, \\\"Stack_Count\\\":1, \\\"State_Date\\\":\\\"2024-04-25 23:37:43.656\\\", \\\"Total_Duration_Sec\\\":20, \\\"Valid_Data\\\":1}]\",\"AbnormalDBIDList\":[]}]", "connection": {"remoteaddr":"172.16.102.20:52920"}, "thread": 388 }

but i dont understand a single word of portugese
Oh sorry, my bad !!!
exNum: 242, Microsoft.Data.SqlClient.SqlException (0x80131904): Converting an nvarchar data type to a datetime data type resulted in an out-of-range value.\r\nConverting an nvarchar data type to a datetime data type resulted in an out-of-range value.\r\ nInstruction has been completed.\r\nInstruction has been completed\r\n at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\r\n at Microsoft.Data.SqlClient.SqlDataReader.TryConsumeMetaData()\r\n at Microsoft.Data.SqlClient.SqlDataReader.get_MetaData()\r\n at Microsoft.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)\r\n at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)\r\n at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method)\r\n at Microsoft.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)\r\n at Microsoft.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)\r\n at BLCacheServer.DBSaveAbnormalStatusCommand.ExcuteTransactionQuery(BLDatabaseContext dbContext)\r\n at BLCacheServer.CommandProcessorTransaction2.ExcuteTransactionQuery(BLDatabaseContext dbContext, List`1 commandList, FDBConveyor errorConveyor)\r\n at BLCacheServer.CommandProcessorTransaction2.ProcessCommand()\r\n at BLCacheServer.CommandProcessor.Process()\r\nClientConnectionId:f806f9c0-fef9-4b7c-ad5b-7c74391d3587\r\nError Number:242,State:3,Class:16", "connection": {"remoteaddr":"172.16.102.20:52920"}, "thread": 388 }

{ "time": "2024-04-25 23:37:43.800", "level": "error", "message": "Shutdown by DB error(242, Converting an nvarchar data type to a datetime data type resulted in an out-of-range value.\r\nConverting an nvarchar data type to a datetime data type resulted in an out-of-range value.\r\ nThe statement has been completed.\r\nThe statement has been completed.)!! with command=CommandProcessorTransaction2 (79) conveyorList: [DBSaveAbnormalStatusElement usn=1, playerDBId=28428972647776257, {\"PlayerDBId\":{\"value\":28428972647776257},\"jsonArray\":\"[{\\\"DB_ID\\\":0, \\\"AbnormalStatus_CId\\\":500123, \\\"Player_DB_Id\\\":28428972647776257, \\\"Caster_Player_DB_Id\\\":28428972647776257, \\\"Level\\\":0, \\\"Remain_Duration_Sec\\\":20, \\\"Stack_Count\\\":1, \\\"State_Date\\\":\\\"2024-04-25 23:37:43.656\\\", \\\"Total_Duration_Sec\\\":20, \\\"Valid_Data\\\":1}]\",\"AbnormalDBIDList\":[]}]", "connection": {"remoteaddr":"172.16.102.20:52920"}, "thread": 388 }

This error occurs when I use an item or buff (warcry for example) with the Crusader class and the IPPIN race
 
Upvote 0
Newbie Spellweaver
Joined
Nov 6, 2023
Messages
47
Reaction score
11
The error is
Converting an nvarchar data type to a datetime data type resulted in an out-of-range value.

In
DBSaveAbnormalStatusElement

Thats probably a wrong
Item (what gives this buff: 500123) or error in database. What is the itemid? I gonna try to reproduce
 
Upvote 0
Newbie Spellweaver
Joined
Dec 7, 2023
Messages
15
Reaction score
3
The error is
Converting an nvarchar data type to a datetime data type resulted in an out-of-range value.

In
DBSaveAbnormalStatusElement

Thats probably a wrong
Item (what gives this buff: 500123) or error in database. What is the itemid? I gonna try to reproduce
Create a Ippin Crusader, and in level 4 use the Ability Warcry, the item i've reward from a quest i don't remember the name now... and i'm in job now... in home i can check the name of item, but try to replicate with the buff of crusader class and ippin race

The error is
Converting an nvarchar data type to a datetime data type resulted in an out-of-range value.

In
DBSaveAbnormalStatusElement

Thats probably a wrong
Item (what gives this buff: 500123) or error in database. What is the itemid? I gonna try to reproduce
Hi, i'm in home now, and a take a SS from the item and from the skill who cause this crash on CacheServer.

I found the solution for this...
in the SQL function i've just added this: set dateformat ymd

the two full function:
ALTER PROCEDURE BLSP_Native_SaveAbnormalStatus
@PlayerDB_Id BIGINT,
@jsonArrayStr NVARCHAR(MAX)
AS
BEGIN
SET NOCOUNT ON
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
set dateformat ymd

Declare @AbnormalStatus table (
DB_ID BIGINT
, AbnormalStatus_CId INT
, Player_DB_Id BIGINT
, Caster_Player_DB_Id BIGINT
, Level INT
, Stack_Count INT
, State_Date DATETIME
, Remain_Duration_Sec BIGINT
, Total_Duration_Sec BIGINT
, Valid_Data INT
, DB_ID_TYPE VARCHAR(10)
, PRIMARY KEY (DB_ID)
)

-- DB_ID ������ ���� CHID ȹ��
declare @CHID BIGINT
select @CHID = CHID * power(CAST(2 AS BIGINT), CAST(48 AS BIGINT)) FROM DBWorldServerId;


-- �ű� INSERT �� �ʿ��� ������
INSERT INTO @AbnormalStatus
SELECT @CHID + NEXT VALUE FOR DBAbnormalStatus_Seq as DB_ID
, AbnormalStatus_CId , Player_DB_Id , Caster_Player_DB_Id, Level , Stack_Count , State_Date , Remain_Duration_Sec ,Total_Duration_Sec , Valid_Data
, 'NEW' DB_ID_TYPE
FROM OpenJson(@jsonArrayStr)
WITH (
DB_ID BIGINT '$.DB_ID',
AbnormalStatus_CId INT '$.AbnormalStatus_CId',
Player_DB_Id BIGINT '$.Player_DB_Id',
Caster_Player_DB_Id BIGINT '$.Caster_Player_DB_Id',
Level INT '$.Level',
Stack_Count INT '$.Stack_Count',
State_Date DATETIME '$.State_Date',
Remain_Duration_Sec BIGINT '$.Remain_Duration_Sec',
Total_Duration_Sec BIGINT '$.Total_Duration_Sec',
Valid_Data INT '$.Valid_Data'
)
WHERE DB_ID = 0


-- UPDATE �� �ʿ�������
INSERT INTO @AbnormalStatus
SELECT DB_ID , AbnormalStatus_CId , Player_DB_Id , Caster_Player_DB_Id, Level , Stack_Count , State_Date , Remain_Duration_Sec ,Total_Duration_Sec , Valid_Data
, 'OLD' DB_ID_TYPE
FROM OpenJson(@jsonArrayStr)
WITH (
DB_ID BIGINT '$.DB_ID',
AbnormalStatus_CId INT '$.AbnormalStatus_CId',
Player_DB_Id BIGINT '$.Player_DB_Id',
Caster_Player_DB_Id BIGINT '$.Caster_Player_DB_Id',
Level INT '$.Level',
Stack_Count INT '$.Stack_Count',
State_Date DATETIME '$.State_Date',
Remain_Duration_Sec BIGINT '$.Remain_Duration_Sec',
Total_Duration_Sec BIGINT '$.Total_Duration_Sec',
Valid_Data INT '$.Valid_Data'
)
WHERE DB_ID > 0


--select * from @AbnormalStatus

-- DB_ID �� ������ UPDATE / ������ INSERT
MERGE DBAbnormalStatus AS A
USING @AbnormalStatus AS B
ON A.DB_ID = B.DB_ID
WHEN MATCHED THEN
UPDATE
SET A.AbnormalStatus_CId = B.AbnormalStatus_CId
, A.Caster_Player_DB_Id = B.Caster_Player_DB_Id
, A.Level = B.Level
, A.Player_DB_Id = B.Player_DB_Id
, A.Remain_Duration_Sec = B.Remain_Duration_Sec
, A.Stack_Count = B.Stack_Count
, A.State_Date = B.State_Date
, A.Total_Duration_Sec = B.Total_Duration_Sec
, A.updated_at = GETDATE()
, A.Valid_Data = B.Valid_Data
WHEN NOT MATCHED THEN
INSERT ( AbnormalStatus_CId, Caster_Player_DB_Id, DB_ID, Level, Player_DB_Id, Remain_Duration_Sec, Stack_Count, State_Date, Total_Duration_Sec, Valid_Data )
VALUES ( B.AbnormalStatus_CId, B.Caster_Player_DB_Id, B.DB_ID, B.Level, B.Player_DB_Id, B.Remain_Duration_Sec, B.Stack_Count, B.State_Date, B.Total_Duration_Sec, B.Valid_Data );


-- ������ Ȯ��
select DB_ID_TYPE, DB_ID, Valid_Data
FROM @AbnormalStatus

RETURN 0
END

-----------------------------------------------------------------------------

ALTER PROCEDURE BLSP_Native_LoadAbnormalStatus
@PlayerDB_Id BIGINT
AS
BEGIN
SET NOCOUNT ON
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
set dateformat ymd

SELECT DB_ID, AbnormalStatus_CId, Caster_Player_DB_Id, Level, Stack_Count, State_Date, Remain_Duration_Sec,
Total_Duration_Sec, Valid_Data FROM DBAbnormalStatus WHERE Player_DB_Id = @PlayerDB_Id

RETURN 0
END
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Back
Top