Resolution
To fix this issue:
- In the root of the Container, open Metadata.json in a text editor.
- 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" }
- 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.