Open a1flecke opened 1 month ago
Warning: Dependency has no SHA256. Skipping cache.
Downloading from https://**REDACTED***.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?bitness=64&skipMetadata=true&arch=arm&include=java
unable to invoke layer creator
unable to get dependency Dynatrace OneAgent. see DEBUG log level
There is no pre-bundled archive we can use with Dynatrace. We always have to fetch the archive from Dynatrace and then install it. What's happening here is that the buildpack is attempting to fetch the dependency from Dynatrace and it's failing to download. It could be network-related, or it could be related to the server responding slowly.
When you pack build --env BP_LOG_LEVEL='DEBUG' -v ...
does it give you any more details?
Warning: Dependency has no SHA256. Skipping cache. Downloading from https://**REDACTED***.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?bitness=64&skipMetadata=true&arch=arm&include=java unable to invoke layer creator unable to get dependency Dynatrace OneAgent. see DEBUG log level
There is no pre-bundled archive we can use with Dynatrace. We always have to fetch the archive from Dynatrace and then install it. What's happening here is that the buildpack is attempting to fetch the dependency from Dynatrace and it's failing to download. It could be network-related, or it could be related to the server responding slowly.
When you
pack build --env BP_LOG_LEVEL='DEBUG' -v ...
does it give you any more details?
The above logs were with debug and verbose logging. There were no helpful details.
So, it's hard to say. It seems network or related to the dynatrace server response. You can try adjusting the timeout settings, and see if that might help. They correlate to various Go HTTP Client timeouts. I put some info below.
BP_DIALER_TIMEOUT (default 6s)
// Timeout is the maximum amount of time a dial will wait for // a connect to complete. If Deadline is also set, it may fail // earlier.
BP_DIALER_KEEP_ALIVE (default 60s)
// KeepAlive specifies the interval between keep-alive // probes for an active network connection. // If zero, keep-alive probes are sent with a default value // (currently 15 seconds), if supported by the protocol and operating // system.
BP_TLS_HANDSHAKE_TIMEOUT (default 5s)
// TLSHandshakeTimeout specifies the maximum amount of time to // wait for a TLS handshake. Zero means no timeout.
BP_RESPONSE_HEADER_TIMEOUT (default 5s)
// ResponseHeaderTimeout, if non-zero, specifies the amount of // time to wait for a server's response headers after fully // writing the request (including its body, if any). This // time does not include the time to read the response body.
BP_EXPECT_CONTINUE_TIMEOUT (default 1s)
// ExpectContinueTimeout, if non-zero, specifies the amount of // time to wait for a server's first response headers after fully // writing the request headers if the request has an // "Expect: 100-continue" header. Zero means no timeout and // causes the body to be sent immediately, without // waiting for the server to approve. // This time does not include the time to send the request header.
I could perhaps see BP_RESPONSE_HEADER_TIMEOUT
being too short if the server is taking a while to respond. Maybe also BP_DIALER_TIMEOUT
, if it's not getting a quick TCP connection (I believe DNS resolution is also included in this, so if DNS is slow that can throw off the connect timeout too).
Hope that helps!
We have noticed intermittent failures with installing Dynatrace OneAgent when using this buildpacks to build ARM images and running on ARM. Debug and verbose logs do not reveal anything helpful to us. Removing the pack caching directives or issuing the clear-cache directive does not clear it up.
Expected Behavior
Dynatrace OneAgent is installed
Current Behavior
If it matters: We are exploring migrating our existing AMD64 services to ARM64. The other buildpacks are fine. The Dynatrace buildpack is the only one that is experiencing this issue.
Pack build command:
Sometimes it fails:
Sometimes it passes:
Possible Solution
Not sure
Steps to Reproduce
Motivations