Db2

 View Only
  • 1.  Db2 Community Edition in Docker Desktop for Windows

    IBM Champion
    Posted Thu March 30, 2023 01:25 PM

    Docker Desktop for Windows; pulled Db2 11.5.8 image.
    Instance creation appears to be successful; db2start is failing with System Error. Any thoughts?
    2023-03-30 19:14:28 (*) Previous setup has not been detected. Creating the users... 
    2023-03-30 19:14:28 (*) Creating users ...
    2023-03-30 19:14:29 (*) Creating instance ... 
    2023-03-30 19:14:32 DB2 installation is being initialized.
    2023-03-30 19:14:32 
    2023-03-30 19:14:40  Total number of tasks to be performed: 4 
    2023-03-30 19:14:40 Total estimated time for all tasks to be performed: 309 second(s) 
    2023-03-30 19:14:40 
    2023-03-30 19:14:40 Task #1 start
    2023-03-30 19:14:40 Description: Setting default global profile registry variables 
    2023-03-30 19:14:40 Estimated time 1 second(s) 
    2023-03-30 19:14:40 Task #1 end 
    2023-03-30 19:14:40 
    2023-03-30 19:14:40 Task #2 start
    2023-03-30 19:14:40 Description: Initializing instance list 
    2023-03-30 19:14:40 Estimated time 5 second(s) 
    2023-03-30 19:14:43 Task #2 end 
    2023-03-30 19:14:43 
    2023-03-30 19:14:43 Task #3 start
    2023-03-30 19:14:43 Description: Configuring DB2 instances 
    2023-03-30 19:14:43 Estimated time 300 second(s) 
    2023-03-30 19:15:22 Task #3 end 
    2023-03-30 19:15:22 
    2023-03-30 19:15:22 Task #4 start
    2023-03-30 19:15:22 Description: Updating global profile registry 
    2023-03-30 19:15:22 Estimated time 3 second(s) 
    2023-03-30 19:15:22 Task #4 end 
    2023-03-30 19:15:22 
    2023-03-30 19:15:23 The execution completed successfully.
    2023-03-30 19:15:23 
    2023-03-30 19:15:27 For more information see the DB2 installation log at "/tmp/db2icrt.log.97".
    2023-03-30 19:15:27 DBI1446I  The db2icrt command is running.
    2023-03-30 19:15:27 
    2023-03-30 19:15:27 
    2023-03-30 19:15:27 DBI1070I  Program db2icrt completed successfully.
    2023-03-30 19:15:27 
    2023-03-30 19:15:27 
    2023-03-30 19:15:27 (*) Fixing /etc/services file for DB2 ... 
    2023-03-30 19:15:28 03/30/2023 17:15:28     0   0   SQL1032N  No start database manager command was issued.
    2023-03-30 19:15:28 SQL1032N  No start database manager command was issued.  SQLSTATE=57019
    2023-03-30 19:15:34 (*) Cataloging existing databases
    2023-03-30 19:15:34 ls: cannot access '/database/data/db2inst1/NODE0000': No such file or directory
    2023-03-30 19:15:34 (*) Applying Db2 license ...
    2023-03-30 19:15:34 
    2023-03-30 19:15:34 LIC1402I  License added successfully.
    2023-03-30 19:15:34 
    2023-03-30 19:15:34 
    2023-03-30 19:15:34 LIC1426I  This product is now licensed for use as outlined in your License Agreement.  USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT, LOCATED IN THE FOLLOWING DIRECTORY: "/opt/ibm/db2/V11.5/license/en_US.iso88591"
    2023-03-30 19:15:34 (*) Saving the checksum of the current nodelock file ...
    2023-03-30 19:15:35 (*) Updating DBM CFG parameters ... 
    2023-03-30 19:15:37 DB20000I  The UPDATE DATABASE MANAGER CONFIGURATION command completed 
    2023-03-30 19:15:37 successfully.
    2023-03-30 19:15:38 DB20000I  The UPDATE DATABASE MANAGER CONFIGURATION command completed 
    2023-03-30 19:15:38 successfully.
    2023-03-30 19:15:40 DB20000I  The UPDATE DATABASE MANAGER CONFIGURATION command completed 
    2023-03-30 19:15:40 successfully.
    2023-03-30 19:15:40 No Cgroup memory limit detected, instance memory will follow automatic tuning
    2023-03-30 19:15:40 (*) Remounting /database with suid... 
    2023-03-30 19:15:40 mount: /database: permission denied.
    2023-03-30 19:15:40 
    2023-03-30 19:15:40 DB2 State : Operable
    2023-03-30 19:15:40 DB2 has not been started
    2023-03-30 19:15:40 Starting DB2...
    2023-03-30 19:15:40 
    2023-03-30 19:16:41 03/30/2023 17:16:41     0   0   SQL1042C  An unexpected system error occurred.
    2023-03-30 19:16:41 SQL1032N  No start database manager command was issued.  SQLSTATE=57019
    2023-03-30 19:16:42 ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 
    2023-03-30 19:16:42 (*) All databases are now active. 
    2023-03-30 19:16:42 (*) Setup has completed.
    2023-03-30 19:16:42 false
    2023-03-30 19:16:42 
    2023-03-30 19:16:42 2023-03-30-17.16.41.591143+000 I21969E393            LEVEL: Warning
    2023-03-30 19:16:42 PID     : 14944                TID : 140339423795072 PROC : db2start
    2023-03-30 19:16:42 INSTANCE: db2inst1             NODE : 000
    2023-03-30 19:16:42 HOSTNAME: 2e6eab89925c
    2023-03-30 19:16:42 FUNCTION: DB2 UDB, base sys utilities, sqleReleaseStStLockFile, probe:16242
    2023-03-30 19:16:42 MESSAGE : Released lock on the file:
    2023-03-30 19:16:42 DATA #1 : String, 50 bytes
    2023-03-30 19:16:42 /database/config/db2inst1/sqllib/ctrl/db2strst.lck



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


  • 2.  RE: Db2 Community Edition in Docker Desktop for Windows

    IBM Champion
    Posted Tue April 25, 2023 02:47 PM

    Newer Docker for Windows image and carefully crafted envlist.txt solved this issue.



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



  • 3.  RE: Db2 Community Edition in Docker Desktop for Windows

    Posted Wed April 26, 2023 07:45 AM

    Is this image already available on icr.io/db2_community/db2?



    ------------------------------
    Hein Daddel
    ------------------------------



  • 4.  RE: Db2 Community Edition in Docker Desktop for Windows

    IBM Champion
    Posted Wed April 26, 2023 09:03 AM

    Read my entry: newer Docker for Windows image - I installed newer Docker for Windows from https://www.docker.com; I pulled Db2 image from icr.io/db2_community/db2:

    docker pull icr.io/db2_community/db2


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