Skip to content

A license file was not provided at the expected location: /opt/staging/pd.profile/server-root/pre-setup/PingAuthorize.lic #97

@RyanGhd

Description

@RyanGhd

Hi team,

Running the following docker-compse, throws license error:

docker-compose -f docker-compose.yaml logs -f

Error

A license file was not provided at the expected location: /opt/staging/pd.profile/server-root/pre-setup/PingAuthorize.lic

To reproduce the error
I have done the following steps:

  • obtained a valid devops username/key (https://devops.pingidentity.com/get-started/devopsRegistration/)
  • generated the config file using pingctl config
  • copied the variables from ~/.pingidentity/config into ~/pingidentity/devops. ( ~/pingidentity/devops already has PING_IDENTITY_DEVOPS_USER and PING_IDENTITY_DEVOPS_KEY).
  • manually added PING_IDENTITY_DEVOPS_USER and PING_IDENTITY_DEVOPS_KEY to cdr.env
  • run docker-compose.yaml
docker-compose -f docker-compose.yaml logs -f
  • docker-compose throws the following error

Error details

    ################################################################################
                    Ping Identity DevOps Docker Image
    
           Version: pingauthorizepap-alpine_3.15-al11-9.0.0.0-220303-98471
       DevOps User: 
          Hostname: a20283f39d08
           Started: Sat Mar  5 21:54:43 UTC 2022
    ################################################################################
    
    ################################################################################



----- Starting hook: /opt/staging/hooks/10-start-sequence.sh
Initializing server for the first time

----- Starting hook: /opt/staging/hooks/17-check-license.sh
A license file was not provided at the expected location: /opt/staging/pd.profile/server-root/pre-setup/PingAuthorize.lic
No credentials were provided to retrieve an evaluation license.

##################################################################################
############################        ALERT        #################################
##################################################################################
#
# License File could not be found at the expected location
# /opt/staging/pd.profile/server-root/pre-setup/PingAuthorize.lic
# An evaluation license could not be obtained from PingIdentity either.
#
#
# More info on obtaining your DevOps User and Key can be found at:
#      https://devops.pingidentity.com/get-started/devopsRegistration/
#
##################################################################################
CONTAINER FAILURE: License File absent
  • In addition, I tried to use pingctl to generate the license file using the following commands:
    pingctl license
    pingctl license PingAuthorize
    but it throws the following error:
/home/linuxbrew/.linuxbrew/bin/pingctl: 839: shift: can't shift that many

Platform
OS: windows 11
WSL 2 Distro: Ubuntu-20.04
Docker Desktop Version: 4.5.1
Docker Compose: 1.29.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions