Global Data Management Forum

 View Only
Expand all | Collapse all

Net.IBM.Data.DB2 license file issues in AKS cluster

  • 1.  Net.IBM.Data.DB2 license file issues in AKS cluster

    Posted Tue August 02, 2022 11:20 AM
    Hi,

    We are using .net 6 to build a microservice which would perform CRUD operation on IBM i Series AS400 DB.
    We are using Net.IBM.Data.DB2 nuget package. We have a valid trail license for it.
    We are creating docker image of the .net 6 microservice and deploying it in AKS cluster.
    Important commands in the docker file is given below 

    FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
    WORKDIR /app
    ENV DB2_CLI_DRIVER_INSTALL_PATH="/app/clidriver" \
    LD_LIBRARY_PATH="/app/clidriver/lib" \
    LIBPATH="/app/clidriver/lib" \
    PATH=$PATH:"/app/clidriver/bin:/app/clidriver/lib" \
    DB2_COMMON_APP_DATA_PATH="/app/Logs"
    RUN apt-get -y update && apt-get install -y libxml2
    COPY ./db2consv_t.lic /app/clidriver/license/db2consv_t.lic
    COPY ./db2consv_t.lic /app/clidriver/license/UNIX/db2consv_t.lic

    We have checked and found that the license file is getting copied under/app/clidriver/license/ and /app/clidriver/license/UNIX
    Also the required files are present inside bin and lib folders.
    As per the blog article Downloading and initial configuration of Db2 .NET NuGet Packages
    Ibm remove preview
    Downloading and initial configuration of Db2 .NET NuGet Packages
    View this on Ibm >
    we have used the recommended nuget packages.

    Please note the code runs fine locally using the nuget package and license files but shows license file issues when deployed to AKS clusters
    Any help around this would be deeply appreciated

    ------------------------------
    Subhra Bhattacharjee
    ------------------------------

    #DataManagementGlobal
    #DataServerDrivers


  • 2.  RE: Net.IBM.Data.DB2 license file issues in AKS cluster

    Posted Mon October 10, 2022 11:39 AM
    Hello Subhra,
    I'm sorry i will not resolve your issue, I have the same with .net6. when i deploy in linux container based on mcr.microsoft.com/dotnet/aspnet:6.0
    Everything work good in windows but when i deploy with nuget Net.IBM.Data.Db2-lnx 6.0.0.300 package and run it in linux debian based host it fails with "ERROR [42968] [IBM] SQL1598N An attempt to connect to the database server failed because of a licensing problem. SQLSTATE=42968"

    did you solve it ?

    ------------------------------
    thomas le magourou
    ------------------------------