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

BuildpackCompileFailed - Cf push sometimes fails on download go without an error message #650

Open
3 tasks done
JoschuaGoetz opened this issue Sep 28, 2023 · 0 comments
Open
3 tasks done

Comments

@JoschuaGoetz
Copy link

JoschuaGoetz commented Sep 28, 2023

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

  • This is run in a pipeline i cannot execute the mentioned command. But from logs i can gather
  • cf version 8.7.2+501652f.2023-08-30
  • API version: 3.143.0

What version of the buildpack you are using?

If you were attempting to accomplish a task, what was it you were attempting to do?

  • I was trying to push my app using cf push.

What did you expect to happen?

  • The app should be pushed normally.

What was the actual behavior?

  • App deployment fails on go download without any error messages.
  • However this only happens sometimes. It will sometimes fail and sometimes work as expected. There is no pattern or reason on why and when it fails

Can you provide a sample app?
No

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Logs of failing cf push

17:16:12  info  cloudFoundryDeploy - plugin                version   command name                  command help
17:16:12  info  cloudFoundryDeploy - blue-green-deploy     1.4.0     blue-green-deploy, bgd        Zero-downtime deploys with smoke tests
17:16:12  info  cloudFoundryDeploy - Create-Service-Push   1.3.2     create-service-push, cspush   Works in the same manner as cf push, except that it will create services defined in a services-manifest.yml file first before performing a cf push.
17:16:12  info  cloudFoundryDeploy - html5-plugin          1.4.6     html5-delete                  Delete one or multiple app-host service instances or content uploaded with these instances
17:16:12  info  cloudFoundryDeploy - html5-plugin          1.4.6     html5-get                     Fetch content of single HTML5 application file by path, or whole application by name and version
17:16:12  info  cloudFoundryDeploy - html5-plugin          1.4.6     html5-info                    Get size limit and status of app-host service instances
17:16:12  info  cloudFoundryDeploy - html5-plugin          1.4.6     html5-list                    Display list of HTML5 applications or file paths of specified application
17:16:12  info  cloudFoundryDeploy - html5-plugin          1.4.6     html5-push                    Push HTML5 applications to html5-apps-repo service
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     bg-deploy                     Deploy a multi-target app using blue-green deployment
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     deploy                        Deploy a new multi-target app or sync changes to an existing one
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     download-mta-op-logs, dmol    Download logs of multi-target app operation
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     mta                           Display health and status for a multi-target app
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     mta-ops                       List multi-target app operations
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     mtas                          List all multi-target apps
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     purge-mta-config              Purge no longer valid configuration entries
17:16:12  info  cloudFoundryDeploy - multiapps             3.0.3     undeploy                      Undeploy a multi-target app
17:16:12  info  cloudFoundryDeploy - 
17:16:12  info  cloudFoundryDeploy - Use 'cf repo-plugins' to list plugins in registered repos available to install.
17:16:12  info  cloudFoundryDeploy - running command: cf push -f manifest.yml
17:16:12  info  cloudFoundryDeploy - Pushing app 
17:16:12  info  cloudFoundryDeploy - Applying manifest file manifest.yml...
17:16:12  info  cloudFoundryDeploy - 
17:16:12  info  cloudFoundryDeploy - Updating with these attributes...
17:16:12  info  cloudFoundryDeploy -   --- Redacted 
17:16:15  info  cloudFoundryDeploy - Manifest applied
17:16:16  info  cloudFoundryDeploy - Packaging files to upload...
17:16:16  info  cloudFoundryDeploy - Uploading files...
17:16:17  info  cloudFoundryDeploy - 
 0 B / 139.14 KiB    0.00%
 139.14 KiB / 139.14 KiB  100.00%
 139.14 KiB / 139.14 KiB  100.00%
 139.14 KiB / 139.14 KiB  100.00%
 139.14 KiB / 139.14 KiB  100.00%
 139.14 KiB / 139.14 KiB  100.00%
 139.14 KiB / 139.14 KiB  100.00% 1s
17:16:17  info  cloudFoundryDeploy - 
17:16:17  info  cloudFoundryDeploy - Waiting for API to complete processing files...
17:16:29  info  cloudFoundryDeploy - 
17:16:29  info  cloudFoundryDeploy - Staging app and tracing logs...
17:16:31  info  cloudFoundryDeploy -    Cell d3cfcc20-1797-471e-ac8e-8ee43e1e1631 creating container for instance 44183c73-83c4-43d6-b78b-9e12ea095c43
17:16:31  info  cloudFoundryDeploy -    Security group rules were updated
17:16:31  info  cloudFoundryDeploy -    Cell d3cfcc20-1797-471e-ac8e-8ee43e1e1631 successfully created container for instance 44183c73-83c4-43d6-b78b-9e12ea095c43
17:16:31  info  cloudFoundryDeploy -    Downloading app package...
17:16:31  info  cloudFoundryDeploy -    Downloading build artifacts cache...
17:16:32  info  cloudFoundryDeploy -    Downloaded app package (19.9M)
17:16:39  info  cloudFoundryDeploy -    Downloaded build artifacts cache (251.5M)
17:16:41  info  cloudFoundryDeploy -    -----> Download go 1.19
17:16:46  info  cloudFoundryDeploy -    -----> Running go build supply
17:16:46  info  cloudFoundryDeploy -    /tmp/buildpackdownloads/709dfd905f631f03d4d07cbaae9bb8db ~
17:16:48  info  cloudFoundryDeploy -    ~
17:16:48  info  cloudFoundryDeploy -    -----> Nodejs Buildpack version 1.8.15
17:16:48  info  cloudFoundryDeploy -    -----> Bootstrapping python
17:16:48  info  cloudFoundryDeploy -    -----> Installing python 3.11.5
17:16:48  info  cloudFoundryDeploy -    Copy [/tmp/cache/final/dependencies/b9d85f817df34cc87c79183b612b2cb027f74f6fbacf99c18505d45d4050c61a/python_3.11.5_linux_x64_cflinuxfs4_b4517479.tgz]
17:16:52  info  cloudFoundryDeploy -    -----> Installing binaries
17:16:52  info  cloudFoundryDeploy -    engines.node (package.json): 18.17.1
17:16:52  info  cloudFoundryDeploy -    engines.npm (package.json): 9.6.7
17:16:52  info  cloudFoundryDeploy -    -----> Installing node 18.17.1
17:16:52  info  cloudFoundryDeploy -    Copy [/tmp/cache/final/dependencies/1d09870e57624309f6fb4442d28351a744ef9ac6c3945903f124d98bb92a576a/node_18.17.1_linux_x64_cflinuxfs4_ed0bbc52.tgz]
17:16:54  info  cloudFoundryDeploy -    npm 9.6.7 already installed with node
17:16:54  info  cloudFoundryDeploy -    -----> Installing yarn 1.22.19
17:16:54  info  cloudFoundryDeploy -    Copy [/tmp/cache/final/dependencies/56cbd9358ec939bd281f885c9938d7264b22d86cefba81164184f6e23e63df82/yarn_1.22.19_linux_noarch_any-stack_32d0e82e.tgz]
17:16:54  info  cloudFoundryDeploy -    Installed yarn 1.22.19
17:16:54  info  cloudFoundryDeploy -    -----> Creating runtime environment
17:16:54  info  cloudFoundryDeploy -    �[34;1mPRO TIP:�[0m It is recommended to vendor the application's Node.js dependencies
17:16:54  info  cloudFoundryDeploy -    Visit http://docs.cloudfoundry.org/buildpacks/node/index.html#vendoring
17:16:54  info  cloudFoundryDeploy -    NODE_ENV=production
17:16:54  info  cloudFoundryDeploy -    NODE_HOME=/tmp/contents854270200/deps/0/node
17:16:54  info  cloudFoundryDeploy -    NODE_MODULES_CACHE=true
17:16:54  info  cloudFoundryDeploy -    NODE_VERBOSE=false
17:16:54  info  cloudFoundryDeploy -    NPM_CONFIG_LOGLEVEL=error
17:16:54  info  cloudFoundryDeploy -    NPM_CONFIG_PRODUCTION=true
17:16:54  info  cloudFoundryDeploy -    -----> Building dependencies
17:16:54  info  cloudFoundryDeploy -    Installing node modules (package.json)
17:17:13  info  cloudFoundryDeploy -    added 421 packages, and audited 422 packages in 16s
17:17:13  info  cloudFoundryDeploy -    38 packages are looking for funding
17:17:13  info  cloudFoundryDeploy -    run `npm fund` for details
17:17:13  info  cloudFoundryDeploy -    found 0 vulnerabilities
17:17:13  warn  cloudFoundryDeploy -    �[31;1m**WARNING**�[0m Unmet dependencies don't fail npm install but may cause runtime issues
17:17:13  info  cloudFoundryDeploy -    See: https://github.com/npm/npm/issues/7494
17:17:13  info  cloudFoundryDeploy -    -----> Download go 1.19
17:17:13  info  cloudFoundryDeploy - BuildpackCompileFailed - App staging failed in the buildpack compile phase
17:17:13  info  cloudFoundryDeploy - FAILED
17:17:13  error cloudFoundryDeploy - Command '[push -f manifest.yml]' failed. - running command 'cf' failed: cmd.Run() failed: exit status 1
17:17:13  info  cloudFoundryDeploy - Logging out of Cloud Foundry
17:17:13  info  cloudFoundryDeploy - running command: cf logout
17:17:13  info  cloudFoundryDeploy - Logging out ****...
17:17:13  info  cloudFoundryDeploy - OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants