“Container has more than one token file” error when Deploying a Container

Save to PDF

Applies to: Cloudhouse Application Compatibility Packages/Containers

29/05/2020 Cliff Hobbs   ID: 586829


To fix this issue, if you plan to deploy the ACP offline, make sure it does not contain a Deploy Refresh Token. For example: deploy-refresh-Notepad++_x64.token

If you plan to deploy the ACP online, make sure it does not contain a Deploy Access Token. For example: deploy-access-Notepad++_x64.token

After removing the wrong Token, retry deploying the ACP.

If you still encounter problems, please contact your Cloudhouse Partner in the first instance (if relevant), otherwise contact Cloudhouse Support for further assistance.


When trying to deploy a Cloudhouse Application Compatibility Package (also known as a Cloudhouse Compatibility Container™) using Cloudhouse.Container.Deployment.exe, I see a window flash open then disappear.

Looking in the DeploymentWorkflowLog.txt (in the root of the ACP), I see entries like:

ERROR Cloudhouse.Container.Deployment.Program - Failed:

Cloudhouse.Container.Core.Exceptions.InvalidLicenceException: Container has more than one token file.

   at Cloudhouse.Container.Core.PackageDirectory.ValidateTokenFiles()

   at Cloudhouse.Container.Core.Licensing.LicenseService.EnableDeployLicensing()

   at Cloudhouse.Container.Deployment.DeploymentCommandFactory.Deploy()

   at Cloudhouse.Container.Deployment.Program.Main(String[] args)

ERROR Cloudhouse.Container.Deployment.Program - Exiting with code: -1


You will see this error if the ACP you are trying to deploy has both a Deploy Access Token and a Deploy Refresh Token.

Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support