Error GlobalDBAgent

Results 1 to 22 of 22
  1. #1
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Question

    Helpp
    GlobalDBAgent.log
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] OnIPCAuthAccount fail (usernum: 0)
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(MSG) : [FreeTDS][SQL Server]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(CODE) : 242
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(VAR_INFO) :
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(SQLSTATE) : 22007
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(STM_TEXT) : {call cabal_sp_auth( ? , ? , ? , ? )}
    [Sat Feb 14 2015 12:31:34.821227 3064990608]: Database Connect success!
    [Sat Feb 14 2015 12:31:34.821310 3064990608]: [##ERROR##] 'OnIPCAuthAccount' fail (Database/Auth.cpp:283)
    [Sat Feb 14 2015 12:31:34.821542 3064990608]: [##ERROR##] UsrMap Fail : MainCmd(30) Ret(11B:0:283) Addr(127.0.0.1)
    Thanks!

    Someone please help me?
    I urgently need
    Last edited by cypher; 24-10-08 at 08:21 PM. Reason: fixed dbl post.


  2. #2
    Alpha Member christoper is offline
    MemberRank
    Aug 2007 Join Date
    PhP DecoderLocation
    1,560Posts

    Re: Error GlobalDBAgent

    cant see the image

  3. #3
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] OnIPCAuthAccount fail (usernum: 0)
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(MSG) : [FreeTDS][SQL Server]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(CODE) : 242
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(VAR_INFO) :
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(SQLSTATE) : 22007
    [Sat Feb 14 2015 12:31:34.725741 3064990608]: [##ERROR##] DB ERROR(STM_TEXT) : {call cabal_sp_auth( ? , ? , ? , ? )}
    [Sat Feb 14 2015 12:31:34.821227 3064990608]: Database Connect success!
    [Sat Feb 14 2015 12:31:34.821310 3064990608]: [##ERROR##] 'OnIPCAuthAccount' fail (Database/Auth.cpp:283)
    [Sat Feb 14 2015 12:31:34.821542 3064990608]: [##ERROR##] UsrMap Fail : MainCmd(30) Ret(11B:0:283) Addr(127.0.0.1)
    GlobalDBAgent.log

    not connect serve =(

  4. #4
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Error GlobalDBAgent

    Something is very wrong there, in fact looking at the SP i can't even see what it would be converting. Can you post the cabal_sp_auth stored procedure from your database?

  5. #5
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent



    /****** Object: Stored Procedure dbo.cabal_sp_auth Script Date: 2008-4-14 21:40:21 ******/



    CREATE PROCEDURE cabal_sp_auth (@id varchar(32), @password varchar(32), @login int, @ip varchar(16))
    AS
    SET NOCOUNT ON
    -- Return Value Type
    DECLARE @AR_SUCCESS int, @AR_FAILED0 int, @AR_ALREADY int, @AR_OUTFSVC int, @AR_TIMEEXP int, @AR_BLOCKIP int, @AR_BLOCKID int, @AR_FREEID int
    SET @AR_SUCCESS = 0x20
    SET @AR_FAILED0 = 0x21
    SET @AR_ALREADY = 0x22
    SET @AR_OUTFSVC = 0x23
    SET @AR_TIMEEXP = 0x24
    SET @AR_BLOCKIP = 0x25
    SET @AR_BLOCKID = 0x26
    SET @AR_FREEID = 0x27

    BEGIN TRAN

    DECLARE @rusernum as int
    DECLARE @rauthtype as int
    DECLARE @ridentityno as char(13)
    DECLARE @rlogin as int
    SELECT @rusernum=usernum, @rauthtype=authtype, @ridentityno=identityno, @rlogin=login
    FROM cabal_auth_table
    WHERE ID = @id and password = dbo.fn_md5(@password)

    IF @@ROWCOUNT = 0
    BEGIN
    COMMIT TRAN
    SELECT @AR_FAILED0
    RETURN
    END

    DECLARE @ReleaseDate DATETIME
    IF @rauthtype = 2
    BEGIN -- ?? ??
    DECLARE @isBlocked BIT
    SET @isBlocked = 1

    SELECT @ReleaseDate = ReleaseDate FROM cabal_blockuser_table WHERE UserNum = @rusernum

    IF (ISNULL(@ReleaseDate, 0) <> 0)
    BEGIN
    IF (@ReleaseDate < GETDATE() )
    BEGIN -- expired
    EXEC cabal_tool_ReleaseBlockUser @rusernum
    SET @isBlocked = 0
    END
    END

    IF @isBlocked = 1
    BEGIN
    COMMIT TRAN
    SELECT @AR_BLOCKID, @rusernum, 0
    RETURN
    END
    END
    ELSE IF @rauthtype = 3
    BEGIN -- ???? ??
    SELECT @ReleaseDate = ISNULL(ReleaseDate, 0) FROM cabal_blockuser_table WHERE UserNum = @rusernum

    IF (@ReleaseDate <> 0) AND (@ReleaseDate < GETDATE() )
    BEGIN -- expired
    EXEC cabal_tool_ReleaseBlockUser @rusernum
    END
    ELSE
    BEGIN -- blocked
    SET @ridentityno = SUBSTRING(@ridentityno, 1, 6) + '0000001'
    END
    END

    -- Check blockip
    IF EXISTS (SELECT id FROM cabal_blockip_list WHERE dbo.inet_addr(@ip) between fromip AND toip)
    BEGIN
    COMMIT TRAN
    SELECT @AR_BLOCKIP, @rusernum, 0
    RETURN
    END

    IF @rlogin <> 0
    BEGIN
    -- ?? ??? ?
    COMMIT TRAN
    SELECT @AR_ALREADY, @rusernum, @rlogin
    RETURN
    END


    -- Check Charging
    DECLARE @rType as int -- 0: free, 1: charged
    DECLARE @rServiceKind as int -- 0: free, 1: charged
    DECLARE @rExpireDate as DATETIME
    DECLARE @rPayMinutes as int

    SELECT @rType=Type,
    @rExpireDate=ExpireDate,
    @rPayMinutes=PayMinutes,
    @rServiceKind=ServiceKind
    FROM cabal_charge_auth WHERE usernum = @rusernum
    IF @@ROWCOUNT = 0
    BEGIN
    SET @rType = 0
    SET @rExpireDate = '2005-12-18 16:00'
    SET @rPayMinutes = 0
    SET @rServiceKind = 0
    END

    -- Check free ip
    DECLARE @rIsFreeIp as int
    SET @rIsFreeIp = 0

    IF EXISTS (SELECT * FROM cabal_freeip_list WHERE IP=@ip)
    BEGIN
    SET @rIsFreeIp = 1
    END


    -- Free time (everyday PM 21~22)
    DECLARE @StartFreeTime as DATETIME, @EndFreeTime as DATETIME
    SET @StartFreeTime = CONVERT(VARCHAR(11), GETDATE(), 20) + '21:00:00'
    SET @EndFreeTime = CONVERT(VARCHAR(11), GETDATE(), 20) + '21:00:00'
    IF @rExpireDate < GETDATE() and @StartFreeTime < GETDATE() and GETDATE() < @EndFreeTime
    BEGIN
    SET @rType = 2
    SET @rExpireDate = @EndFreeTime
    END

    --IF @rExpireDate < GETDATE() and @rPayMinutes <= 0 and @rIsFreeIp <> 1
    --BEGIN
    -- ?? ?? ??
    --COMMIT TRAN
    --SELECT @AR_TIMEEXP, @rusernum, @rlogin
    --RETURN
    --END

    DECLARE @AuthKey VARCHAR(32)
    SET @AuthKey = REPLACE(NEWID(), '-', '')
    UPDATE cabal_auth_table SET login = @login, logintime=GETDATE(), LastIp=@ip, AuthKey=@AuthKey WHERE usernum = @rusernum

    SELECT
    @AR_SUCCESS,
    @rusernum,
    @rlogin,
    @ridentityno,
    @rType,
    DATEDIFF(second, DATEADD(hour, DATEDIFF(hour, GETUTCDATE(), GETDATE()), '1970-01-01'), @rExpireDate), -- UTC Time
    @rPayMinutes,
    @rIsFreeIp,
    @rServiceKind,
    @AuthKey

    COMMIT TRAN

    SET NOCOUNT OFF

    GO
    Tanks

  6. #6
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Error GlobalDBAgent

    I'll check this when i get home from work tonight.

  7. #7
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    would be any possibility of wrong choice in time to install the CentOS? I am using version 5.1!

  8. #8
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Error GlobalDBAgent

    No i don't think this is anything to to with centos as the database seems to be screwing up. WHat mssql version do you use and is the db server running a 64 bit operating system?

    Try this query on your account db and see what it comes back with:
    Code:
    exec dbo.cabal_sp_auth 'login','password','client ip'
    If that errors then it is definitely something int he db. The only thing you can really do there is try to narrow it down to exactly which queries are failing. The way i do that is by commenting out all but small parts of the SP and testing it again like the above query does, if it works then i un-comment a few more bits until it falls over again and then i know what queries are causing the failure. You comment bits out like this:

    Not commented out
    /*
    Commented out
    */
    Not commented out

    Remember that bits between "if" and "begin" are treated as blocks so comment or unomment the whole of the block starting with "if" and ending in "begin".

  9. #9
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    I'm using MSSQL 2000 and Windows XP SP3 32 bits

    when you put the command, gave the following error message:

    Server: Msg 8114, Level 16, State 4, Procedure cabal_sp_auth, Line 0
    Error converting data type varchar to int.

  10. #10
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Error GlobalDBAgent

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  11. #11
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    just put numbers on login and password, but gave this error:
    [Sat Feb 14 2015 12:43:52.938919 3086130064]: [##ERROR##] OnIPCAuthAccount fail (usernum: 0)
    [Sat Feb 14 2015 12:43:52.939014 3086130064]: [##ERROR##] DB ERROR(MSG) : [FreeTDS][SQL Server]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
    [Sat Feb 14 2015 12:43:52.939062 3086130064]: [##ERROR##] DB ERROR(CODE) : 242
    [Sat Feb 14 2015 12:43:52.939106 3086130064]: [##ERROR##] DB ERROR(VAR_INFO) :
    [Sat Feb 14 2015 12:43:52.939149 3086130064]: [##ERROR##] DB ERROR(SQLSTATE) : 22007
    [Sat Feb 14 2015 12:43:52.939193 3086130064]: [##ERROR##] DB ERROR(STM_TEXT) : {call cabal_sp_auth( ? , ? , ? , ? )}
    [Sat Feb 14 2015 12:43:52.978792 3086130064]: Database Connect success!
    [Sat Feb 14 2015 12:43:52.978886 3086130064]: [##ERROR##] 'OnIPCAuthAccount' fail (Database/Auth.cpp:283)
    [Sat Feb 14 2015 12:43:52.978959 3086130064]: [##ERROR##] UsrMap Fail : MainCmd(30) Ret(11B:0:283) Addr(127.0.0.1)
    but in the sql query but did not give the error!

  12. #12
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Error GlobalDBAgent

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  13. #13
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    All right?
    Attached Thumbnails Attached Thumbnails errorr.jpg  

  14. #14
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Error GlobalDBAgent

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  15. #15
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    I tried to test and also not had success!

    =(

  16. #16
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Error GlobalDBAgent

    Quote Originally Posted by felipeluzentti View Post
    I'm using MSSQL 2000 and Windows XP SP3 32 bits

    when you put the command, gave the following error message:

    Server: Msg 8114, Level 16, State 4, Procedure cabal_sp_auth, Line 0
    Error converting data type varchar to int.
    Oops, that is my fault. I missed one of the values so that would have failed. It should be:
    Code:
    exec dbo.cabal_sp_auth 'login','password',0,'client ip'
    Sorry

  17. #17
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    without errors!
    Attached Thumbnails Attached Thumbnails errorrr.jpg   errorrr2.jpg  

  18. #18
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: Error GlobalDBAgent

    Ok, iif that gets added and still fails then i'm not sure. Where did you get your db files from, are they mine or another?

  19. #19
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    all files that I am using are your!

  20. #20
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Error GlobalDBAgent

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  21. #21
    Valued Member FelipeLuzentti is online now
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    108Posts

    Re: Error GlobalDBAgent

    I did, I did everything about 6 times and gave the same problem, would not you send me your database?

  22. #22
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Error GlobalDBAgent

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.



Advertisement