Skip to content

Instantly share code, notes, and snippets.

@rakrup
Created September 19, 2017 14:14
Show Gist options
  • Save rakrup/179f3a285025eb0510a7ab24abee0fd3 to your computer and use it in GitHub Desktop.
Save rakrup/179f3a285025eb0510a7ab24abee0fd3 to your computer and use it in GitHub Desktop.
Error Log while running machete tests for binary build packs
Rahuls-MacBook-Pro:binary-buildpack rakrup$ BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-build
******* Using the stack 'cflinuxfs2' against the host 'local.pcfdev.io'
******* Fetching CF CLI details
/usr/local/bin/cf
cf version 6.29.1+d5129d651.2017-08-17
******* Building cached buildpack
Cached buildpack created and saved as /Users/rakrup/Code/cloudfoundry/binary-buildpack/binary_buildpack-cached-v1.0.14-1505830048.zip with a size of 64K
******* Detecting language
******* Language detected: binary
******* Connecting to CF
Setting api endpoint to api.local.pcfdev.io...
OK
api endpoint: https://api.local.pcfdev.io
api version: 2.82.0
API endpoint: https://api.local.pcfdev.io
Authenticating...
OK
Targeted org pivotal
API endpoint: https://api.local.pcfdev.io (API version: 2.82.0)
User: admin
Org: pivotal
Space: No space targeted, use 'cf target -s SPACE'
FAILED
Error finding space integration-binary-1505830049
Space integration-binary-1505830049 not found
Creating org pivotal as admin...
OK
Org pivotal already exists
api endpoint: https://api.local.pcfdev.io
api version: 2.82.0
user: admin
org: pivotal
No space targeted, use 'cf target -s SPACE'
Creating space integration-binary-1505830049 in org pivotal as admin...
OK
Assigning role RoleSpaceManager to user admin in org pivotal / space integration-binary-1505830049 as admin...
OK
Assigning role RoleSpaceDeveloper to user admin in org pivotal / space integration-binary-1505830049 as admin...
OK
TIP: Use 'cf target -o "pivotal" -s "integration-binary-1505830049"' to target new space
api endpoint: https://api.local.pcfdev.io
api version: 2.82.0
user: admin
org: pivotal
space: integration-binary-1505830049
API endpoint: https://api.local.pcfdev.io
Authenticating...
OK
Targeted org pivotal
Targeted space integration-binary-1505830049
API endpoint: https://api.local.pcfdev.io (API version: 2.82.0)
User: admin
Org: pivotal
Space: integration-binary-1505830049
Disabling all buildpacks
Updating buildpack java_buildpack...
OK
Updating buildpack ruby_buildpack...
OK
Updating buildpack nodejs_buildpack...
OK
Updating buildpack go_buildpack...
OK
Updating buildpack python_buildpack...
OK
Updating buildpack php_buildpack...
OK
Updating buildpack staticfile_buildpack...
OK
Updating buildpack binary_buildpack...
OK
Updating buildpack dotnet-core_buildpack...
OK
Updating buildpack python-test-buildpack...
OK
******* Uploading buildpack to CF
Creating buildpack binary-test-buildpack...
OK
Uploading buildpack binary-test-buildpack...
Done uploading
OK
******* Running specs
Running the following rspec command:
BUNDLE_GEMFILE=cf.Gemfile BUILDPACK_MODE=cached CF_STACK=cflinuxfs2 SHARED_HOST=false BUILDPACK_VERSION=1.0.14-1505830048 bundle exec rspec --require rspec/instafail --format RSpec::Instafail --format documentation --color cf_spec
CF Binary Buildpack
deploying a Ruby script
when specifying a buildpack
deploys successfully
without specifying a buildpack
1) CF Binary Buildpack deploying a Ruby script without specifying a buildpack fails to stage
Failure/Error: expect(app).to have_logged('An app was not successfully detected by any available buildpack')
App log did not include 'An app was not successfully detected by any available buildpack'
---------------------
App Logs:
---------------------
Using manifest file /Users/rakrup/Code/cloudfoundry/binary-buildpack/manifest.yml
Using stack cflinuxfs2...
OK
Creating app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
OK
Creating route webrick-app-sprucing-alcoholometry.local.pcfdev.io...
OK
Binding webrick-app-sprucing-alcoholometry.local.pcfdev.io to webrick_app...
OK
Uploading webrick_app...
Uploading app files from: /Users/rakrup/Code/cloudfoundry/binary-buildpack/cf_spec/fixtures/webrick_app
Uploading 424B, 2 files
Done uploading
OK
Starting app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
Downloading binary-test-buildpack...
Downloaded binary-test-buildpack
Creating container
Successfully created container
Downloading app package...
Downloaded app package (424B)
Staging...
None of the buildpacks detected a compatible application
Exit status 222
Staging failed: Exited with status 222
Destroying container
Successfully destroyed container
FAILED
Error restarting application: NoAppDetectedError
TIP: Buildpacks are detected when the "cf push" is executed from within the directory that contains the app source code.
Use 'cf buildpacks' to see a list of supported buildpacks.
Use 'cf logs webrick_app --recent' for more in depth log information.
Retrieving logs for app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
---------------------
App Recent Logs:
---------------------
Retrieving logs for app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
2017-09-19T19:38:04.84+0530 [API/0] OUT Created app with guid 4d4983b8-d69c-4084-a6fa-f1282897f016
2017-09-19T19:38:05.07+0530 [API/0] OUT Updated app with guid 4d4983b8-d69c-4084-a6fa-f1282897f016 ({"route"=>"b01668fe-1c5b-4110-a7a1-e0a05c22bf4d", :verb=>"add", :relation=>"routes", :related_guid=>"b01668fe-1c5b-4110-a7a1-e0a05c22bf4d"})
2017-09-19T19:38:10.45+0530 [API/0] OUT Updated app with guid 4d4983b8-d69c-4084-a6fa-f1282897f016 ({"state"=>"STARTED"})
2017-09-19T19:38:10.45+0530 [STG/0] OUT Downloading binary-test-buildpack...
2017-09-19T19:38:10.46+0530 [STG/0] OUT Downloaded binary-test-buildpack
2017-09-19T19:38:10.46+0530 [STG/0] OUT Creating container
2017-09-19T19:38:10.73+0530 [STG/0] OUT Successfully created container
2017-09-19T19:38:10.73+0530 [STG/0] OUT Downloading app package...
2017-09-19T19:38:10.74+0530 [STG/0] OUT Downloaded app package (424B)
2017-09-19T19:38:10.74+0530 [STG/0] OUT Staging...
2017-09-19T19:38:10.77+0530 [STG/0] ERR None of the buildpacks detected a compatible application
2017-09-19T19:38:10.78+0530 [STG/0] OUT Exit status 222
2017-09-19T19:38:10.78+0530 [STG/0] ERR Staging failed: Exited with status 222
2017-09-19T19:38:10.79+0530 [STG/0] OUT Destroying container
2017-09-19T19:38:11.07+0530 [STG/0] OUT Successfully destroyed container
# ./cf_spec/integration/deploy_a_binary_app_spec.rb:35:in `block (4 levels) in <top (required)>'
fails to stage (FAILED - 1)
CF Binary Buildpack
deploying a Windows batch script
when specifying a buildpack
deploys successfully (PENDING: cf installation does not have a Windows stack)
without specifying a buildpack
fails to stage (PENDING: cf installation does not have a Windows stack)
without a command or Procfile
logs an error message (PENDING: cf installation does not have a Windows stack)
CF Binary Buildpack
deploying a Windows HWC app
without a command or Procfile
logs a warning message (PENDING: cf installation does not have a Windows stack)
Pending: (Failures listed here are expected and do not affect your suite's status)
1) CF Binary Buildpack deploying a Windows batch script when specifying a buildpack deploys successfully
# cf installation does not have a Windows stack
# ./cf_spec/integration/deploy_a_binary_windows_app_spec.rb:17
2) CF Binary Buildpack deploying a Windows batch script without specifying a buildpack fails to stage
# cf installation does not have a Windows stack
# ./cf_spec/integration/deploy_a_binary_windows_app_spec.rb:27
3) CF Binary Buildpack deploying a Windows batch script without a command or Procfile logs an error message
# cf installation does not have a Windows stack
# ./cf_spec/integration/deploy_a_binary_windows_app_spec.rb:41
4) CF Binary Buildpack deploying a Windows HWC app without a command or Procfile logs a warning message
# cf installation does not have a Windows stack
# ./cf_spec/integration/deploy_an_hwc_app_spec.rb:17
Failures:
1) CF Binary Buildpack deploying a Ruby script without specifying a buildpack fails to stage
Failure/Error: expect(app).to have_logged('An app was not successfully detected by any available buildpack')
App log did not include 'An app was not successfully detected by any available buildpack'
---------------------
App Logs:
---------------------
Using manifest file /Users/rakrup/Code/cloudfoundry/binary-buildpack/manifest.yml
Using stack cflinuxfs2...
OK
Creating app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
OK
Creating route webrick-app-sprucing-alcoholometry.local.pcfdev.io...
OK
Binding webrick-app-sprucing-alcoholometry.local.pcfdev.io to webrick_app...
OK
Uploading webrick_app...
Uploading app files from: /Users/rakrup/Code/cloudfoundry/binary-buildpack/cf_spec/fixtures/webrick_app
Uploading 424B, 2 files
Done uploading
OK
Starting app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
Downloading binary-test-buildpack...
Downloaded binary-test-buildpack
Creating container
Successfully created container
Downloading app package...
Downloaded app package (424B)
Staging...
None of the buildpacks detected a compatible application
Exit status 222
Staging failed: Exited with status 222
Destroying container
Successfully destroyed container
FAILED
Error restarting application: NoAppDetectedError
TIP: Buildpacks are detected when the "cf push" is executed from within the directory that contains the app source code.
Use 'cf buildpacks' to see a list of supported buildpacks.
Use 'cf logs webrick_app --recent' for more in depth log information.
Retrieving logs for app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
---------------------
App Recent Logs:
---------------------
Retrieving logs for app webrick_app in org pivotal / space integration-binary-1505830049 as admin...
2017-09-19T19:38:04.84+0530 [API/0] OUT Created app with guid 4d4983b8-d69c-4084-a6fa-f1282897f016
2017-09-19T19:38:05.07+0530 [API/0] OUT Updated app with guid 4d4983b8-d69c-4084-a6fa-f1282897f016 ({"route"=>"b01668fe-1c5b-4110-a7a1-e0a05c22bf4d", :verb=>"add", :relation=>"routes", :related_guid=>"b01668fe-1c5b-4110-a7a1-e0a05c22bf4d"})
2017-09-19T19:38:10.45+0530 [API/0] OUT Updated app with guid 4d4983b8-d69c-4084-a6fa-f1282897f016 ({"state"=>"STARTED"})
2017-09-19T19:38:10.45+0530 [STG/0] OUT Downloading binary-test-buildpack...
2017-09-19T19:38:10.46+0530 [STG/0] OUT Downloaded binary-test-buildpack
2017-09-19T19:38:10.46+0530 [STG/0] OUT Creating container
2017-09-19T19:38:10.73+0530 [STG/0] OUT Successfully created container
2017-09-19T19:38:10.73+0530 [STG/0] OUT Downloading app package...
2017-09-19T19:38:10.74+0530 [STG/0] OUT Downloaded app package (424B)
2017-09-19T19:38:10.74+0530 [STG/0] OUT Staging...
2017-09-19T19:38:10.77+0530 [STG/0] ERR None of the buildpacks detected a compatible application
2017-09-19T19:38:10.78+0530 [STG/0] OUT Exit status 222
2017-09-19T19:38:10.78+0530 [STG/0] ERR Staging failed: Exited with status 222
2017-09-19T19:38:10.79+0530 [STG/0] OUT Destroying container
2017-09-19T19:38:11.07+0530 [STG/0] OUT Successfully destroyed container
# ./cf_spec/integration/deploy_a_binary_app_spec.rb:35:in `block (4 levels) in <top (required)>'
Finished in 1 minute 55.21 seconds (files took 0.3385 seconds to load)
6 examples, 1 failure, 4 pending
Failed examples:
rspec ./cf_spec/integration/deploy_a_binary_app_spec.rb:29 # CF Binary Buildpack deploying a Ruby script without specifying a buildpack fails to stage
Updating buildpack java_buildpack...
OK
Updating buildpack ruby_buildpack...
OK
Updating buildpack nodejs_buildpack...
OK
Updating buildpack go_buildpack...
OK
Updating buildpack python_buildpack...
OK
Updating buildpack php_buildpack...
OK
Updating buildpack staticfile_buildpack...
OK
Updating buildpack binary_buildpack...
OK
Updating buildpack dotnet-core_buildpack...
OK
Updating buildpack python-test-buildpack...
OK
Restored original buildpacks enabled/disabled configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment