gpt4 book ai didi

s4sdk - 尝试将 dynatrace 代理集成到基于 s4sdk 的应用程序时收到 404 错误

转载 作者:行者123 更新时间:2023-12-02 18:44:23 26 4
gpt4 key购买 nike

我正在尝试按照此处提到的步骤将 dynatrace 与基于 s4sdk 的应用程序集成:

https://www.dynatrace.com/support/help/cloud-platforms/cloud-foundry/application-only/deploy-oneagent-on-sap-cloud-platform-for-application-only-monitoring/

唯一异常(exception):我使用的是 dynatrace 的试用帐户,而不是通过 SAP 市场设置帐户。

当尝试推送我的应用程序时,我在暂存阶段收到以下错误:

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,或者错误是否出在其他地方?

用户提供的名为 dynatrace-service 的服务的配置:

{
"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

最佳答案

首先回答你的问题:

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?

为了验证我是否也在 Dynatrace 上注册了试用帐户,并成功连接到在 hanatorial.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是否正确,并打开日志中的链接以获取更多信息。

关于s4sdk - 尝试将 dynatrace 代理集成到基于 s4sdk 的应用程序时收到 404 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54344333/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com