Skip to content

Regularly failing dotnet install #734

Description

@janpieterz

We regularly but intermittently get the below error logs building a docker image:

DataDog/datadog-lambda-extension#21 2.486 curl is already the newest version (8.5.0-2ubuntu10.6).
DataDog/datadog-lambda-extension#21 2.486 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
DataDog/datadog-lambda-extension#21 2.531 Downloading version  of the .NET tracer into /tmp/datadog-dotnet-apm.tar.gz
DataDog/datadog-lambda-extension#21 2.539   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DataDog/datadog-lambda-extension#21 2.539                                  Dload  Upload   Total   Spent    Left  Speed
DataDog/datadog-lambda-extension#21 2.539 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     9  100     9    0     0     82      0 --:--:-- --:--:-- --:--:--    82
DataDog/datadog-lambda-extension#21 2.655 
DataDog/datadog-lambda-extension#21 2.655 gzip: stdin: not in gzip format
DataDog/datadog-lambda-extension#21 2.656 tar: Child returned status 1
DataDog/datadog-lambda-extension#21 2.656 tar: Error is not recoverable: exiting now
DataDog/datadog-lambda-extension#21 2.657 /datadog-app/dotnet.sh: 26: /dd_tracer/dotnet/createLogPath.sh: not found
DataDog/datadog-lambda-extension#21 ERROR: process "/bin/sh -c chmod +x /datadog-app/dotnet.sh && /datadog-app/dotnet.sh" did not complete successfully: exit code: 127

I don't know if it will guaranteed fix it but some kind of retry mechanism in curl could help - but I don't know if Github sends a failure error code (kind of seems like it doesn't because the script continues). Perhaps some minimum size enforcement?

Happy to make a pull request that adds some resilience (curl retry + a min size check)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions