[英]Receiving 404 error when trying to integrate dynatrace agent into s4sdk-based application
I am trying to integrate dynatrace with my s4sdk-based application following the steps mentioned here: 我正在尝试按照此处提到的步骤将dynatrace与基于s4sdk的应用程序集成:
https://www.dynatrace.com/support/help/cloud-platforms/cloud-foundry/application-only/deploy-oneagent-on-sap-cloud-platform-for-application-only-monitoring/ https://www.dynatrace.com/support/help/cloud-platforms/cloud-foundry/application-only/deploy-oneagent-on-sap-cloud-platform-for-application-only-monitoring/
Only exception : I am using a trial account of dynatrace instead of setting up an account via SAP marketplace. 唯一的例外 :我正在使用dynatrace的试用帐户,而不是通过SAP marketplace设置帐户。
When trying to push my application I receive the following error during the staging phase: 尝试推送我的应用程序时,我在暂存阶段收到以下错误:
Staging app and tracing logs...
[...]
Downloaded 'PostgreSQL JDBC Driver', version '42.2.5' in 0.2 s.
Downloaded 'SAP JVM Memory Calculator', version '1.8.0' in 0.1 s.
SEVERE: Unhandled exception in Buildpack main method: https://[envId].live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?include=java&bitness=64&Api-Token=[apiToken] returned '404', download failed.Failed to compile droplet: Failed to compile droplet: exit status 9
Exit status 223
EDIT: Accessing the link from my PC or after connecting to the container via ssh works without any problem. 编辑:从我的电脑访问链接或通过ssh连接到容器后,没有任何问题。
So the question to me is whether I am required to use the SAP app center for aquiring dynatrace, or if the error lies somewhere else? 所以我的问题是我是否需要使用SAP应用程序中心来获取dynatrace,或者错误是否位于其他地方?
{
"apitoken": "[apiToken]",
"environmentid": "[envId]",
"tag:SAP CP": "",
"tag:Region": "Frankfurt"
}
---
applications:
- name: address-manager
memory: 1024M
timeout: 300
random-route: true
path: application/target/address-manager-application.jar
buildpacks:
- sap_java_buildpack
env:
TARGET_RUNTIME: main
SPRING_PROFILES_ACTIVE: 'cloud'
JBP_CONFIG_DEBUG: '{enabled: true}'
services:
- my-xsuaa
- my-destination
- my-logging-service
- dynatrace-service
First, to answer your question: 首先,回答你的问题:
So the question to me is whether I am required to use the SAP app center for aquiring dynatrace, or if the error lies somewhere else?
所以我的问题是我是否需要使用SAP应用程序中心来获取dynatrace,或者错误是否位于其他地方?
To validate that I also registered for a trial account on Dynatrace and successfully could connect a to an SAP S/4HANA Cloud SDK based application running in my SAP Cloud Platform trial account on hanatrial.ondemand.com. 要验证我还在Dynatrace上注册了试用帐户,并成功连接到hanatrial.ondemand.com上的SAP Cloud Platform试用帐户中运行的基于SAP S / 4HANA Cloud SDK的应用程序。 Thus it should work and the error lies somewhere else.
因此它应该工作,错误在其他地方。
My guess is that your environment id might not be correct. 我的猜测是您的环境ID可能不正确。 Thus, I did the following experiment: I changed the environment id to an invalid one in the user provided service and pushed again.
因此,我做了以下实验:我将环境ID更改为用户提供的服务中的无效ID并再次推送。 I got the same error message as you have experienced:
我收到了与您相同的错误消息:
SEVERE: Unhandled exception in Buildpack main method: https://[envid].live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?include=java&bitness=64&Api-Token=[token] returned '404', download failed.Failed to compile droplet: Failed to compile droplet: exit status 9
I also clicked on the link in the log which returns 404. It shows an error message in addition to the 404 status code. 我还点击了日志中返回404的链接。它显示了404状态代码之外的错误消息。
In my case it showed: 在我的情况下它显示:
{
error: {
code: 404,
message: "failed to resolve tenant <abcdef>"
}
}
Please check again if the environment id is correct and open the link in the log to get more information. 请再次检查环境ID是否正确,并打开日志中的链接以获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.