Db2

 View Only
Expand all | Collapse all

db2 constantly stopping

  • 1.  db2 constantly stopping

    Posted Tue May 21, 2024 11:40 AM
      |   view attached
    Good afternoon,
    Sorry for the English, I'm Brazilian.
    I have a dataflex application using IBM DB2 Version 11.5.6 (updated yesterday to 11.5.9), I am trying several daily stops of the database, this is happening on more than one client and different servers, I can't find anything in the db2diag .log Give me some guidance, could you help me, I'm sending 30 minutes of log from one DB point to another.
    Thanks


    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------

    Attachment(s)

    txt
    db2diag.txt   3.60 MB 1 version


  • 2.  RE: db2 constantly stopping

    IBM Champion
    Posted Wed May 22, 2024 03:33 AM

    Your first problem to be addressed is OS error:

    2024-05-21-09.55.54.138000-180 E117726182F599       LEVEL: Error (OS)
    PID     : 26836                TID : 32460          PROC : db2syscs.exe
    INSTANCE: DB2                  NODE : 000           DB   : JMJSS
    APPHDL  : 0-3235               APPID: *LOCAL.DB2.240521132540
    AUTHID  : ADMINISTRADOR        HOSTNAME: serco
    EDUID   : 32460                EDUNAME: db2agent (JMJSS) 0
    FUNCTION: DB2 UDB, oper system services, sqloAuthzGetInformationFromSid, probe:10
    MESSAGE : ZRC=0x83000057=-2097151913
              
    CALLED  : OS, -, AuthzInitializeContextFromSid
    OSERR   : 87 "Parâ­¥tro incorreto."


    ------------------------------
    Jan Nelken
    ------------------------------



  • 3.  RE: db2 constantly stopping

    Posted Thu May 23, 2024 03:32 AM
    Edited by joachim stumpf Thu May 23, 2024 04:35 AM

    Hi Ricardo,

    if i translate the error message right, it says something wrong with parameters. Maybe Parameters of instance configuration. Maybe call of authentication Parameters.

    First check

    Try to connect from Db2cmdline

    db2 connect to JMJAB

    What is the error message?

    You can provide a user id and a password with 

    db2 connect to JMJAB user <your_user> using <user_pwd>

    What is the error message in both cases?

    Next step

    There is a thread discussing a similar issue

    DB2 log file error: SQL1092N "USERID does not have the authority to perform the requested command or operation"

    .

    Check your instance configuration first

    db2 get dbm cfg 

    • What is in SYSIBM_GROUP     ->?
    • What groups are in your windows environment?
    • Is this group there? Is the db2admin part of the group?
      Do you work with any central authentication system like windows active directory?

    Group names matches and for server purposes the authentication is local?

    If not change by 

    • adding a group in windows with admin rights
    • add db2admin to it
    • add same group to db2 instance

    If Everything is right there and system still didn't work. 

    Next step 

    Check db2set parameters with 

    db2set -all

    Try the following Parameter

    db2set DB2_GRP_LOOKUP=LOCAL,TOKENLOCAL

    Restart instance

    Check db2diag.log message after firstconnect

     failure sample here  The error after FirstConnect should disappear

    2024-05-21-09.31.57.849000-180 E114025009F509       LEVEL: Event
    PID     : 26836                TID : 26208          PROC : db2syscs.exe
    INSTANCE: DB2                  NODE : 000           DB   : JMJAB
    APPHDL  : 0-26                 APPID: 10.0.0.4.58599.240521123211
    AUTHID  : SERCO                HOSTNAME: serco
    EDUID   : 26208                EDUNAME: db2agent (JMJAB) 0
    FUNCTION: DB2 UDB, base sys utilities, sqeLocalDatabase::FirstConnect, probe:1000
    START   : DATABASE: JMJAB    : ACTIVATED: NO
    
    2024-05-21-09.31.57.943000-180 E114025520F599       LEVEL: Error (OS)
    PID     : 26836                TID : 17944          PROC : db2syscs.exe
    INSTANCE: DB2                  NODE : 000           DB   : JMJAB
    APPHDL  : 0-27                 APPID: *LOCAL.DB2.240521123212
    AUTHID  : SERCO                HOSTNAME: serco
    EDUID   : 17944                EDUNAME: db2agent (JMJAB) 0
    FUNCTION: DB2 UDB, oper system services, sqloAuthzGetInformationFromSid, probe:10
    MESSAGE : ZRC=0x83000057=-2097151913
    CALLED : OS, -, AuthzInitializeContextFromSid OSERR : 87 "Parâ­¥tro incorreto."

      • Does it work? If not reset by using
        • db2set DB2_GRP_LOOKUP=

    If above isn't working you have to investigate more
    What has changed ?

    • Only Db2 version or
    • Operating system or
    • Security environment

    There are more threads outside,but we have to know in which direction we investigate .


    -------------------------------------
    Kind regards
    Joachim Stumpf
    -------------------------------------



  • 4.  RE: db2 constantly stopping

    Posted Thu May 23, 2024 02:39 PM

    Hi Joachim,

    I did all the processes you sent, but without success, the "sqloAuthzGetInformationFromSid" error no longer occurs after "FirstConnect", but what is worrying me is that there are several different places with the same problem, unexpected stops, some more frequently others less
    There was no update on my system, not even on the DB2 version, I'm suspicious of Windows updates, this started happening in the last 15 days and for no apparent reason, but I have some places that haven't had an update and the problem is also happening.

    The service account used is db2admin with the correct rights and groups, I also tried using the system account and the problem is the same.

    I use several versions of DB2, 9.7.500.703, 11.1.3030.239, 11.5.6000.1809 and 11.5.9000.352.

    Windows versions are 2016 Standard, 2019 DataCenter and 2022 Stantard and all with Active Directory.

    Thanks.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------



  • 5.  RE: db2 constantly stopping

    Posted Wed May 22, 2024 04:10 AM

    Hi Ricardo,

    I agree with Jan: I would also focus on that OS-related error.

    I have not much experience with Db2 on Windows, but I think you are facing some missing privileges/access denied problem here, since sqloAuthzGetInformationFromSid and AuthzInitializeContextFromSid are not getting through and surely require some special permissions.

    I would try running the instance/DB2 service as another local user with more privileges



    ------------------------------
    Miguel Sanjurjo
    ------------------------------



  • 6.  RE: db2 constantly stopping

    Posted Wed May 22, 2024 01:52 PM

    Hi

    Thank you for the feedback, the service user is the DB2ADMIN, anyway I changed it to a full admin user, even so the error event is still in the log and the service stopping, would you have any other ideas? 

    Thanks.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------



  • 7.  RE: db2 constantly stopping

    IBM Champion
    Posted Wed May 22, 2024 05:52 PM

    You may want to check what account Db2 services are running under; you may also want to install Db2 again using Administrator as the install user and db2admin as the account Db2 services are run under - and run db2val to validate installed instance and sample database created as part of the install process.



    ------------------------------
    Jan Nelken
    ------------------------------



  • 8.  RE: db2 constantly stopping

    Posted Fri May 24, 2024 03:33 AM

    Ricardo,

    is DB2ADMIN a local user or an AD-User?

    If an AD-User, try using a local user



    ------------------------------
    Miguel Sanjurjo
    ------------------------------



  • 9.  RE: db2 constantly stopping

    Posted Fri May 24, 2024 07:38 AM

    Hello, 

    Just for the record, some group policy (GPO) denied local users from running a service. I prefer always to use AD user if the server is joined to domain.

    My points just make sure the user who is running the instance is added in administrator group and db2admns group.

    Is there any cluster configured? (HADR, FCI) if so try to failover to start the instance from the other node.

    Thanks

    Khalid ..



    ------------------------------
    Khalid Qrines
    ------------------------------



  • 10.  RE: db2 constantly stopping

    Posted Fri May 24, 2024 12:56 PM

    Hi,

    Yes, the instance is running with user DB2ADMIN, he is in the administrators and db2admns group, I believe it is not a problem with the user as the instance goes up without problems, but it works for 10 or 20 minutes, 1 or 2 hours or even all day without stopping .

    I don't have a cluster configured.

    There is one more detail that I didn't mention, users connect via RDP to the server to use the system, I don't know if it helps anything.
    Anyway, yesterday it started happening to users who don't use the server directly, they use it on their local network machine.

    Thanks.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------



  • 11.  RE: db2 constantly stopping

    Posted Fri May 24, 2024 03:13 PM

    Can you please share the output of below commands

    db2pd -

    db2 get db cfg

    db2 get dbm cfg



    ------------------------------
    Khalid Qrines
    ------------------------------



  • 12.  RE: db2 constantly stopping

    Posted Fri May 24, 2024 03:43 PM
      |   view attached

    Of course, no problem, output attached.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------

    Attachment(s)

    txt
    result_db2.txt   20 KB 1 version


  • 13.  RE: db2 constantly stopping

    Posted Fri May 24, 2024 05:06 PM

    I see there are a lot of default values which is not good, but I'm not sure if this will relate to your issue or not.

    But do you "implicitly" activate your database before connecting to the database, because if you don't where there are no connections db2 will deactivate itself. Activating the database will ensure the database up and running always even if there is no connection.

    Can you share the output of the following

    db2 get snapshot for db on <dbname>

    Thanks ..

    Khalid



    ------------------------------
    Khalid Qrines
    ------------------------------



  • 14.  RE: db2 constantly stopping

    IBM Champion
    Posted Sat May 25, 2024 04:58 AM

    If this is recurring event then I would suggest:

    1. Clean diagnostic subdirectory with all subdirectories in it - you can find location of it like this (example from my laptop):

    C:\>db2 get dbm cfg | grep -i diagpath
     Diagnostic data directory path               (DIAGPATH) = C:\PROGRAMDATA\IBM\DB2\DB2V115M9F0\DB2\ $m
     Current member resolved DIAGPATH                        = C:\PROGRAMDATA\IBM\DB2\DB2V115M9F0\DB2\DIAG0000\
     Alternate diagnostic data directory path (ALT_DIAGPATH) =
     Current member resolved ALT_DIAGPATH                    =

    If you don't have grep for windows - use this command:

    C:\>db2 get dbm cfg | find /i "diagpath"
     Diagnostic data directory path               (DIAGPATH) = C:\PROGRAMDATA\IBM\DB2\DB2V115M9F0\DB2\ $m
     Current member resolved DIAGPATH                        = C:\PROGRAMDATA\IBM\DB2\DB2V115M9F0\DB2\DIAG0000\
     Alternate diagnostic data directory path (ALT_DIAGPATH) =
     Current member resolved ALT_DIAGPATH                    =

    2. Recreate one single occurrence of the "sudden stop"

    3. Show us content of DB2DIAG location



    ------------------------------
    Jan Nelken
    ------------------------------



  • 15.  RE: db2 constantly stopping

    Posted Mon May 27, 2024 10:56 AM

    Hi Jan,

    I carried out the informed processes, attached is the db2diag with a stop after deleting the contents of the folder and an image of what the contents are now.

    Thanks.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------

    Attachment(s)

    rar
    db2diag.rar   1.12 MB 1 version


  • 16.  RE: db2 constantly stopping

    Posted Mon May 27, 2024 10:48 AM
      |   view attached

    Hi Khalid,

    The command output follows.

    Thanks.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------

    Attachment(s)

    txt
    get_snapshot.txt   31 KB 1 version


  • 17.  RE: db2 constantly stopping

    IBM Champion
    Posted Mon May 27, 2024 01:10 PM

    Your first problem:

    2024-05-26-13.30.10.803000-180 I684207F461          LEVEL: Error
    PID     : 11744                TID : 7252           PROC : db2fmp64.exe
    INSTANCE: DB2                  NODE : 000           DB   : REPODB  
    APPID   : *LOCAL.DB2.240526164244
    HOSTNAME: serco
    EDUID   : 7252
    FUNCTION: DB2 UDB, Health Monitor, hmonCheck Authority, probe:600
    DATA #1 : String, 51 bytes
    User authorization ID does not have DBADM authority
    DATA #2 : String, 8 bytes
    DB2ADMIN



    ------------------------------
    Jan Nelken
    ------------------------------



  • 18.  RE: db2 constantly stopping

    Posted Mon May 27, 2024 03:20 PM

    This REPODB database was created recently, after the start of the stops, I believe that this is not the cause because on other servers there is no such error in the log, but there is the problem of the stop. In any case, I gave the necessary permissions.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------



  • 19.  RE: db2 constantly stopping

    IBM Champion
    Posted Tue May 28, 2024 06:34 AM

    Last entry in your supplied db2diag.log of 36,998,996 bytes has timestamp: 2024-05-27-05.26.39.984000-180

    As per your picture above db2diag.log was 41,446 kb and was last updated on 2024-05-27-11.42; there is also a trap file 668.18400.trap.bin created on 2024-05-27-10.42.

    Can I see db2diag.log covering this timeframe of trap?


    To analyze trap - if it is relevant - best  way is to open a support ticket with IBM.



    ------------------------------
    Jan Nelken
    ------------------------------



  • 20.  RE: db2 constantly stopping

    Posted Wed May 29, 2024 10:14 AM
      |   view attached
    I had edited the file until the first stop, after removing it, I am sending the file with the timestamp of the trap file.


    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------

    Attachment(s)

    rar
    db2diag_2024-05-27-11.42.rar   2.20 MB 1 version


  • 21.  RE: db2 constantly stopping

    IBM Champion
    Posted Wed May 29, 2024 01:52 PM

    Fenced mode process encounters an OS error:

    2024-05-27-10.42.10.441000-180 E38461730F471        LEVEL: Error (OS)
    PID     : 668                  TID : 18400          PROC : db2fmp64.exe
    INSTANCE: DB2                  NODE : 000           DB   : JMJSS
    APPID   : 10.0.0.4.53251.240527134958
    HOSTNAME: serco
    EDUID   : 18400
    FUNCTION: DB2 UDB, oper system services, sqloSSemClose, probe:20
    MESSAGE : ZRC=0x83000006=-2097151994

    CALLED  : OS, -, CloseHandle

    and terminates:

    2024-05-27-10.42.10.451000-180 I38463702F551        LEVEL: Severe
    PID     : 668                  TID : 18400          PROC : db2fmp64.exe
    INSTANCE: DB2                  NODE : 000           DB   : JMJSS
    APPID   : 10.0.0.4.53251.240527134958
    HOSTNAME: serco
    EDUID   : 18400
    FUNCTION: DB2 UDB, trace services, sqlt_logerr_data (secondary logging function), probe:50
    MESSAGE : Fenced mode process encountered an abnormal situation...terminating
    DATA #1 : Hexdump, 4 bytes
    0x0000006A29BEF6C0 : 0000 0000


    Your best option is to open a problem with IBM Support.
    OSERR   : 6 "Identificador invßlido."



    ------------------------------
    Jan Nelken
    ------------------------------



  • 22.  RE: db2 constantly stopping

    Posted Mon June 03, 2024 08:23 AM

    Hi Jan,
    I can't open a problem with IBM support, as I use the free version, which is not supported.
    I will continue researching to try to resolve the problem, thank you all for your help.
    Thanks.



    ------------------------------
    Ricardo Cândido de Oliveira
    ------------------------------