http://coldfusion.com logo
c

Cavan Vannice

05/10/2022, 5:43 PM
Has anyone had any success/issues applying a CF2021 Enterprise license to the ortussolutions/commandbox:adobe2021 docker image in Azure App Service or Azure Pipelines? I'm still new to docker, but it works fine on my local Docker Desktop setup. I've dropped
"license":XXXXXXXXX
into
.cfconfig.json
via
cfconfig set
. I've added the
cfconfig_license=XXXXXXXXX
at multiple points. .env, dockerfile, docker-compose.yml, azure-pipelines.yml. I've also tried adding it into the pipeline and the app service variables. It seems stuck on Enterprise Trial.
b

bdw429s

05/10/2022, 5:48 PM
@Cavan Vannice Are there any clues in the console log. I'm thinking CF has some logging messages when it loads the license
Also, can you confirm if the license key made it in the cfusion/lib/license.properties file inside the server home?
c

Cavan Vannice

05/10/2022, 5:58 PM
Checking on both now
2022-05-10T180607.011490462Z [INFO ] runwar.context: May 10, 2022 140607 PM Information [main] - Starting logging... 2022-05-10T180607.036819126Z [INFO ] runwar.context: May 10, 2022 140607 PM Information [main] - Starting license... 2022-05-10T180609.706082334Z [INFO ] runwar.context: May 10, 2022 140609 PM Information [main] - /usr/local/lib/serverHome/WEB-INF/cfusion/logs/license.log initialized 2022-05-10T180609.726983369Z [INFO ] runwar.context: May 10, 2022 140609 PM Error [main] - An error has occurred while generating UUID. 2022-05-10T180609.728870281Z [INFO ] runwar.context: May 10, 2022 140609 PM Error [main] - The activation status is invalid. 2022-05-10T180609.731459898Z [INFO ] runwar.context: May 10, 2022 140609 PM Information [main] - Verifying connectivity to Adobe Licensing server. 2022-05-10T180612.453321641Z [INFO ] runwar.context: May 10, 2022 140612 PM Information [main] - ColdFusion is not activated. Attempting activation now. 2022-05-10T180612.455560056Z [INFO ] runwar.context: May 10, 2022 140612 PM Information [main] - Fetching scenario key from Adobe Licensing server. 2022-05-10T180614.759897308Z [INFO ] runwar.context: May 10, 2022 140614 PM Error [main] - The license POST request has failed. Status Code: 400 Reason: Bad Request 2022-05-10T180614.840526428Z [INFO ] runwar.context: May 10, 2022 140614 PM Error [main] - Failed to contact the Adobe Licensing server: java.lang.NullPointerException 2022-05-10T180620.298662266Z [INFO ] runwar.context: May 10, 2022 140620 PM Error [main] - The license POST request has failed. Status Code: 400 Reason: Bad Request 2022-05-10T180620.301170782Z [INFO ] runwar.context: May 10, 2022 140620 PM Error [main] - Failed to contact the Adobe Licensing server: java.lang.NullPointerException 2022-05-10T180625.760121957Z [INFO ] runwar.context: May 10, 2022 140625 PM Error [main] - The license POST request has failed. Status Code: 400 Reason: Bad Request 2022-05-10T180625.771219030Z [INFO ] runwar.context: May 10, 2022 140625 PM Error [main] - Failed to contact the Adobe Licensing server: java.lang.NullPointerException
@bdw429s Seems like maybe the container does not have to the internet to activate?
b

bdw429s

05/10/2022, 6:09 PM
Ah, interesting
That's new in 2021-- CF never used to call home
You'd need to check with Adobe to see how that works now
In the previous versions, all you needed to do was have the license key in the right place
cc/ @priyank_adobe @Mark Takata (Adobe)
c

Cavan Vannice

05/10/2022, 6:13 PM
@bdw429s Thanks Brad.
Can you comment on this @priyank_adobe or @Mark Takata (Adobe) please?
p

priyank_adobe

05/10/2022, 6:39 PM
@Cavan Vannice Let me check this and get back to you.
👍 1
c

Cavan Vannice

05/20/2022, 2:44 PM
This issue seems to be resolved with a recent update to the CommandBox docker image . The server is activates as expected now. Thanks for your help guys!