Cloudhouse.Container.Usage fails with message "You must configure either file based or API based logging."

Save to PDF

Applies to: Alchemy

08/08/2022 Cliff Hobbs   ID: 343763

Resolution

To fix this issue:

  1. In the root of the Container, open Metadata.json in a text editor.
  2. Include the AuthUrl and UsageReportingUrl as shown below.
{
    "PackageId": "Appname_identifer",
    "IsTelemetryEnabled": true,
    "TelemetryApiUrl": "https://telemetry.cloudhouse.com/telemetry",
    "Icon": "%DefaultDir%\\Cloudhouse.Container.Run.exe",
    "Name": "Appname",
    "Version": "",
    "Publisher": "",
    "AuthUrl": "https://auth.cloudhouse.com/oauth/token",
    "UsageReportingUrl": "https://containers.cloudhouse.com/api/UsageEvents"
}
  1. Save the file.

Symptoms

The application fails to run in a Container when it has been deployed using the HTTPS Usage Reporting and reports the following error:

ERROR Cloudhouse.Container.Usage.UsageStoreFactory - You must configure either file based or API based logging.

Cause

The usage API is unable to report usage via HTTPS because no URL is specified in the configuration file.

Source:
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support