我试图按照这里提到的步骤将dynatrace与基于s4sdk的应用程序集成:
唯一的例外:我正在使用dynatrace的一个试用帐户,而不是通过市场建立一个帐户。
当试图推送我的应用程序时,我在准备阶段会收到以下错误:
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编辑:访问链接从我的PC或连接到容器后,通过ssh工作,没有任何问题。
因此,我的问题是,我是否需要使用SAP应用中心来查询dynatrace,或者错误是否存在于其他地方?
用户提供的名为dynatrace的服务的配置:
{
"apitoken": "[apiToken]",
"environmentid": "[envId]",
"tag:SAP CP": "",
"tag:Region": "Frankfurt"
}在我的应用程序的manifest.yml中设置:
---
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发布于 2019-01-24 12:14:09
首先,回答你的问题:
因此,我的问题是,我是否需要使用SAP应用中心来查询dynatrace,或者错误是否存在于其他地方?
为了验证我还在Dynatrace上注册了一个试用帐户,并且可以成功地连接到一个基于SAP /4HANACloudSDK的应用程序,该应用程序运行在我的hanatrial.ondemand.com上的SAP平台试用帐户中。因此,它应该工作,错误在其他地方。
我猜你的环境标识可能不对。因此,我做了以下实验:我将用户提供的服务中的环境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是否正确,并打开日志中的链接以获取更多信息。
https://stackoverflow.com/questions/54344333
复制相似问题