Dynatrace / libbuildpack-dynatrace

Common resources used for Dynatrace integration in Cloudfoundry Buildpacks.
Apache License 2.0
1 stars 4 forks source link

OneAgent Error during PCF deployment #27

Open vonsolo29 opened 1 year ago

vonsolo29 commented 1 year ago

We are in the process of implementing App only monitoring on our Pivotal Cloud Foundry Apps. On some of them we are getting an error when trying to fetch and update the OneAgent config. What can we do to fix this. You can see form the error below the app is able to connect to the SaaS tenant, download and install the OneAgent but then errors out.

2023-04-12T15:24:27.647-05:00 [STG/0] [OUT] Dynatrace service credentials found. Setting up Dynatrace OneAgent.

2023-04-12T15:24:27.647-05:00 [STG/0] [OUT] Downloading 'https://{environmentid}.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas-sh/latest?bit...' to '/tmp/paasInstaller.sh'

2023-04-12T15:24:32.389-05:00 [STG/0] [OUT] -----> Starting Dynatrace OneAgent installer

2023-04-12T15:24:33.490-05:00 [STG/0] [OUT] Dynatrace OneAgent installed.

2023-04-12T15:24:33.493-05:00 [STG/0] [OUT] -----> Setting up Dynatrace OneAgent injection...

2023-04-12T15:24:33.494-05:00 [STG/0] [OUT] [31;1mERROR[0m Failed to fetch OneAgent config from API: Get "/v1/deployment/installer/agent/processmoduleconfig": unsupported protocol scheme ""

2023-04-12T15:24:33.494-05:00 [STG/0] [OUT] [31;1mERROR[0m Error during agent config update: Get "/v1/deployment/installer/agent/processmoduleconfig": unsupported protocol scheme ""

2023-04-12T15:24:33.494-05:00 [STG/0] [OUT] [31;1mERROR[0m After Compile: Get "/v1/deployment/installer/agent/processmoduleconfig": unsupported protocol scheme ""

2023-04-12T15:24:33.498-05:00 [STG/0] [ERR] Failed to compile droplet: Failed to run finalize script: exit status 13

rbamberger commented 1 year ago

Hi @vonsolo29. We need to take a closer look at that, but we need more information like the PCF Version, which Buildpack was used, and the Buildpack Version. Also, is it always the same applications? May I ask you to create a dedicated support ticket for it at https://support.dynatrace.com/

vonsolo29 commented 1 year ago

Its an Angular/IONIC App Buildpack: staticfile v1.5.36 Stack: cflinuxfs3 (Cloud Foundry Linux-based filesystem - Ubuntu Bionic 18.04 LTS) App devs can use CF CLI version 6 or 7