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

08/05/2019 Cliff Hobbs   ID: 343763

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 has been specified in the configuration.

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.
Source:
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support