Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile script cannot find trace-agent #191

Open
laugekj opened this issue Jun 17, 2024 · 3 comments
Open

compile script cannot find trace-agent #191

laugekj opened this issue Jun 17, 2024 · 3 comments
Labels
kind/bug Bug related issue

Comments

@laugekj
Copy link

laugekj commented Jun 17, 2024

Describe the bug
Installing the buildpack with github link in manifest has missing file or directory

To Reproduce
Steps to reproduce the behavior:

  1. cf push
  2. manifest.yml has:
buildpacks:
  - https://github.com/DataDog/datadog-cloudfoundry-buildpack/
  - nodejs_buildpack 

Produces the following output:

   -----> DatadogBuildpack/supply version 4.40.0
   Installing Datadog IOT Agent, Dogstatsd and Trace Agent
   cp: cannot stat '/tmp/buildpackdownloads/e787c33875b9083b/lib/trace-agent': No such file or directory
   chmod: cannot access '/tmp/app/.datadog/trace-agent': No such file or directory
   ruby version check: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

Expected behavior
Expected datadog-cloudfoundry-buildpack to be installed on container.

Environment and Versions (please complete the following information):
A clear and precise description of your setup:

  • DatadogBuildpack/supply version 4.40.0

Additional context
My hosting architecture does not allow me to run "cf create-buildpack", so I need a work around this binaries not being runnable from github link (see related issue: #7). My hosting architecture will not allow me to create Cloud Foundry Adminstrator for customer accounts, since my Cloud Foundry deployment is in SAP BTP.

@laugekj laugekj added the kind/bug Bug related issue label Jun 17, 2024
@NouemanKHAL
Copy link
Member

Hi @laugekj, Thanks for the issue report!

Did you try using a link that ends with .git like git://github.com/DataDog/datadog-cloudfoundry-buildpack.git as mentioned in the custom buildpacks documentation here.

Meanwhile, we'll try to reproduce this on our side and will keep you updated with our findings.

@NouemanKHAL
Copy link
Member

Hi again @laugekj ,

Having a second look at the problem, the missing binaries are due to the fact that we don't store the binaries (agent, trace-agent, dogstatsd) in the Git repo. We download them in the prepare script during the release process.

I guess you could try pushing them to a custom branch/fork and see if that works?

@laugekj
Copy link
Author

laugekj commented Aug 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug related issue
Projects
None yet
Development

No branches or pull requests

2 participants