cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error downloading dynatrace configuration using monaco?

nakb
Guide

Hi I am using dynatrace SAAS and getting below error while downloading configuration using the monaco cli.

 

CLI version - 1.4.0

 

Command:

NEW_CLI=1 monaco download -e environments.yaml

 

Error:

--- GETTING CONFIGS for application-web
ERROR Cannot unmarshal API response for existing objects: invalid character '<' looking for beginning of value
ERROR error getting client list from api application-web invalid character '<' looking for beginning of value
ERROR error getting configs from API application-web %!v(MISSING)

14 REPLIES 14

ChadTurner
DynaMight Legend
DynaMight Legend

@nakb are you still running into download issues? What did you have to do to correct this? 

-Chad

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

Have you try it with Monaco V2?

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

@AntonPineiro 
Maybe because v1 is still default and hardcoded in docs)
So everyone who wants just to try - will download the old version.
https://dynatrace.github.io/dynatrace-configuration-as-code/Get-started/installation

Slawa_0-1691841741906.png

 

Hi,

I use Monaco V2 normally I have never got similar issue.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Hello @AntonPineiro I am using Monaco v2.9.2 but still getting error when deploying configuration:

Error we got in the logs is below (Environment Name is hidden on purpose as its client information😞

2023-11-16T16:35:40+01:00       info    Loading manifest "/learn-monaco-auto-tag/manifest.yaml". Restrictions: groups=[], environments=[]
2023-11-16T16:35:41+01:00       error   Could not connect to environment "development-environment" (https://{environmentid}.live.dynatrace.com😞 failed to query version of Dynatrace environment: HTTP request failed: Get "https://{environmentid}/live.dynatrace.com/api/v1/config/clusterversion" data-saferedirecturl="https://{environmentid}/live.dynatrace.com/api/v1/config/clusterversion&source=gmail&ust=1700302975691000&usg=AOvVaw2HOyOiXPcGuJZpFAUGtV21" target=_blank>live.dynatrace.com/api/v1/config/clusterversion": proxyconnect tcp: dial tcp: lookup http on 0.0.0.0:53: no such host (0.0.0.0 is replaced IP as original one is client DNS IP)
2023-11-16T16:35:41+01:00       error   Please verify that this environment is a Dynatrace Classic environment.
2023-11-16T16:35:41+01:00       error   Error: unable to verify Dynatrace environment generation

Hi,

You need to change placeholder "{environmentid}" for your tenant id.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

I already did that, I did not paste environment ID here due to security reasons. But its still failing with same error.

Since the server where we are deploying Monaco is in client network so do we need additional ports/URLs which needs to be opened for this to work?

Hi,

You should be able to reach Dynatrace tenant APIs.

Looks like you cannot reach it.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Yes we are able to reach Dynatrace tenant APIs when we use curl but I dont know why Monaco is sending this error.

We have raised case which vendor has moved from P2 to P3 and its been 2 days since we received a reply. Dont know how to proceed with this now.

Julius_Loman
DynaMight Legend
DynaMight Legend

@Raj  are you sure your URL is correct? I see some extra slash there:

https://{environmentid}/live.dynatrace.com/api/v1/config/clusterversion

Also are you using HTTP proxy? If so, is there any chance your proxy is blocking some requests?

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Yes @Julius_Loman we have double checked and its correct. The extra slash pasted due to hiding the environment tenant name while pasting here. The error URL which Monaco gave - we used same to hit a curl and it was successful.

We are using HTTP proxy and exported it as well as tried to pass proxy in same command line while trying to deploy configuration but everytime it gives same error

"proxyconnect tcp: dial tcp: lookup http on 0.0.0.0:53: no such host (0.0.0.0 is replaced IP as original one is client DNS IP)
2023-11-16T16:35:41+01:00       error   Please verify that this environment is a Dynatrace Classic environment.
2023-11-16T16:35:41+01:00       error   Error: unable to verify Dynatrace environment generation"

Julius_Loman
DynaMight Legend
DynaMight Legend

Does your proxy require authentication? 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Yes it does and credentials are passed as well during command run. 😑

Julius_Loman
DynaMight Legend
DynaMight Legend

Try to encode any special character in your username and password in the exported HTTPS_PROXY using url encoding.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts