"Package metadata file <path>\chmetadata.json is not found in package directory" error when deploying an Alchemy Compatibility Package

Save to PDF

Applies to: Alchemy

12/10/2022 Cliff Hobbs   ID: 599309

Resolution

To fix this issue, make sure the chmetadata.json file is present in the root folder of the Cloudhouse Alchemy Compatibility Package.

For example, the root folder of the Compatibility Package in the example below is location 1, not 2 which is where the command was run from.

Graphic showing correct and incorrect folder locations

Tip 

The Compatibility Package folder (which is where you should be running Cloudhouse.Container.Deployment.exe from), is the one that contains the Cloudhouse executables and the chmetadata.json file.

Once you have located the Compatibility Package's root folder, change to it and retry the deployment.

If the chmetadata.json is missing, restore the Compatibility Package from backup or recreate the Compatibility Package.

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

Symptoms

When deploying a Compatibility Package, I receive the following error:

ERROR Cloudhouse.Container.Deployment.Program - Failed:

Cloudhouse.Container.Core.Exceptions.ConfigurationFileNotFoundException: Package metadata file <path>\chmetadata.json is not found in package directory.

   at Cloudhouse.Container.Core.PackageMetadataFile.Parse(String path)

   at Cloudhouse.Container.Core.PackageDirectory..ctor(String path)

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

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

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

Cause

This error is caused if the Cloudhouse.Container.Deployment.exe is unable to find the chmetadata.json which should be in the root folder of the Compatibility Package you are trying to deploy.

Source:
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support