![](/img/trans.png)
[英]Trying to create custom OData v2 service with data source from S/4HANA Cloud using S/4HANA Cloud SDK
[英]Receiving 404 error when trying to integrate dynatrace agent into s4sdk-based application
我正在尝试按照此处提到的步骤将dynatrace与基于s4sdk的应用程序集成:
唯一的例外 :我正在使用dynatrace的试用帐户,而不是通过SAP marketplace设置帐户。
尝试推送我的应用程序时,我在暂存阶段收到以下错误:
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
编辑:从我的电脑访问链接或通过ssh连接到容器后,没有任何问题。
所以我的问题是我是否需要使用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
首先,回答你的问题:
所以我的问题是我是否需要使用SAP应用程序中心来获取dynatrace,或者错误是否位于其他地方?
要验证我还在Dynatrace上注册了试用帐户,并成功连接到hanatrial.ondemand.com上的SAP Cloud Platform试用帐户中运行的基于SAP S / 4HANA Cloud SDK的应用程序。 因此它应该工作,错误在其他地方。
我的猜测是您的环境ID可能不正确。 因此,我做了以下实验:我将环境ID更改为用户提供的服务中的无效ID并再次推送。 我收到了与您相同的错误消息:
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
我还点击了日志中返回404的链接。它显示了404状态代码之外的错误消息。
在我的情况下它显示:
{
error: {
code: 404,
message: "failed to resolve tenant <abcdef>"
}
}
请再次检查环境ID是否正确,并打开日志中的链接以获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.