Skip to content

Instantly share code, notes, and snippets.

@robert-dare
Created February 19, 2016 16:56
Show Gist options
  • Save robert-dare/4401a2445c6a561a375b to your computer and use it in GitHub Desktop.
Save robert-dare/4401a2445c6a561a375b to your computer and use it in GitHub Desktop.
cf push 504 failure
enki:cf-apps robert$ cd cf-env/
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/robert/bosh-aws/cf-apps/cf-env/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
ruby-2.1.7 is not installed.
To install do: 'rvm install ruby-2.1.7'
enki:cf-env robert$ cf push
Using manifest file /Users/robert/bosh-aws/cf-apps/cf-env/manifest.yml
REQUEST: [2016-02-19T11:40:50-05:00]
POST /oauth/token HTTP/1.1
Host: login.cf.REDACTED.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
User-Agent: go-cli 6.15.0+fa1bfe2 / darwin
grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI3ZTYxZWViYi01YzBmLTQyMTYtYTI4MC0zODVlOTYyN2Y3ODQtciIsInN1YiI6IjMzNjdiZDc5LTg1NGUtNGE0NS1hMWQwLWFjY2FiMWZlNGVlNCIsInNjb3BlIjpbIm9wZW5pZCIsInNjaW0ucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iLCJ1YWEudXNlciIsImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsInBhc3N3b3JkLndyaXRlIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSIsImRvcHBsZXIuZmlyZWhvc2UiLCJzY2ltLndyaXRlIl0sImlhdCI6MTQ1NTgxMTYxNSwiZXhwIjoxNDU4NDAzNjE0LCJjaWQiOiJjZiIsImNsaWVudF9pZCI6ImNmIiwiaXNzIjoiaHR0cHM6Ly91YWEuY2YuYmx1em9uZS5pby9vYXV0aC90b2tlbiIsInppZCI6InVhYSIsImdyYW50X3R5cGUiOiJwYXNzd29yZCIsInVzZXJfbmFtZSI6ImFkbWluIiwib3JpZ2luIjoidWFhIiwidXNlcl9pZCI6IjMzNjdiZDc5LTg1NGUtNGE0NS1hMWQwLWFjY2FiMWZlNGVlNCIsInJldl9zaWciOiI5MDI5ZjMwYyIsImF1ZCI6WyJjZiIsIm9wZW5pZCIsInNjaW0iLCJjbG91ZF9jb250cm9sbGVyIiwidWFhIiwicGFzc3dvcmQiLCJkb3BwbGVyIl19.KFEBs5jziDjkCXY5Xb5_swrfhKxqnG0JeXs0YPq_3W3fAAwXdQ7Yx3pkCIu9u8NiwGIaxFBJppPImIhNxSokpNxB7T8GLJg6zAWta5AuOVAyC2jy9sA1dZGsPrYeIatKxrGPhwoUDuVIOsmneFwjYb6vRentaqVYtKxfHxQB7J6SUKRrYvxu2TQkARd_ZlrFEZX1eMI76WGS8pAzGZpRhN3VoxVNOzGxuNucSdohcWl4ji8NQCxLsYsGWQqjeo0XYL7fNJAsVaXS7eqK5mh8JX8NMxLYHzHKUpScVBSHn_LuWnqQYCQqApwlup9jja69o_TbcnZTzBShgqj897INtQ&scope=
RESPONSE: [2016-02-19T11:40:51-05:00]
HTTP/1.1 200 OK
Content-Length: 2583
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Cache-Control: no-store
Connection: keep-alive
Content-Type: application/json;charset=UTF-8
Date: Fri, 19 Feb 2016 16:40:59 GMT
Expires: 0
Pragma: no-cache
Pragma: no-cache
Server: Apache-Coyote/1.1
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Cf-Requestid: 42495971-6d95-496f-7c7f-10609cb5dfaf
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block
{"access_token":"[PRIVATE DATA HIDDEN]","token_type":"bearer","refresh_token":"[PRIVATE DATA HIDDEN]","expires_in":599,"scope":"cloud_controller.read password.write cloud_controller.write openid doppler.firehose scim.write scim.read cloud_controller.admin uaa.user","jti":"a09172da-9586-41b9-bcea-16fdbe0dbe34"}
REQUEST: [2016-02-19T11:40:51-05:00]
GET /v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/apps?q=name%3Acf-env&inline-relations-depth=1 HTTP/1.1
Host: api.cf.REDACTED.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.15.0+fa1bfe2 / darwin
RESPONSE: [2016-02-19T11:40:52-05:00]
HTTP/1.1 200 OK
Content-Length: 4603
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Date: Fri, 19 Feb 2016 16:41:00 GMT
Server: nginx
X-Cf-Requestid: 1a1be94f-9bf3-4b65-5528-083f7025f270
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 826f43f5-3311-458b-5a23-efc1b1bb7ad2::432801fe-f8b5-4156-8c75-74498f743c9e
{
"total_results": 1,
"total_pages": 1,
"prev_url": null,
"next_url": null,
"resources": [
{
"metadata": {
"guid": "63d85976-2393-4d67-9eb3-ffb9037ea59f",
"url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f",
"created_at": "2016-02-17T22:50:27Z",
"updated_at": "2016-02-18T20:24:32Z"
},
"entity": {
"name": "cf-env",
"production": false,
"space_guid": "c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"stack_guid": "31015029-0060-43a0-984b-384ba05db38d",
"buildpack": null,
"detected_buildpack": null,
"environment_json": {
},
"memory": 256,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "319c79ea-edc2-48fa-b7e0-acc109d1049b",
"command": null,
"console": false,
"debug": null,
"staging_task_id": null,
"package_state": "PENDING",
"health_check_type": "port",
"health_check_timeout": null,
"staging_failed_reason": null,
"staging_failed_description": null,
"diego": false,
"docker_image": null,
"package_updated_at": null,
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null,
"space_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"space": {
"metadata": {
"guid": "c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"created_at": "2016-02-17T22:50:02Z",
"updated_at": null
},
"entity": {
"name": "dev",
"organization_guid": "6057ed3f-633c-4904-a505-40412ee9ec98",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/6057ed3f-633c-4904-a505-40412ee9ec98",
"developers_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/developers",
"managers_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/managers",
"auditors_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/auditors",
"apps_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/apps",
"routes_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/routes",
"domains_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/domains",
"service_instances_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/service_instances",
"app_events_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/app_events",
"events_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/events",
"security_groups_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/security_groups"
}
},
"stack_url": "/v2/stacks/31015029-0060-43a0-984b-384ba05db38d",
"stack": {
"metadata": {
"guid": "31015029-0060-43a0-984b-384ba05db38d",
"url": "/v2/stacks/31015029-0060-43a0-984b-384ba05db38d",
"created_at": "2016-02-15T20:56:52Z",
"updated_at": null
},
"entity": {
"name": "cflinuxfs2",
"description": "Cloud Foundry Linux-based filesystem"
}
},
"events_url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f/events",
"service_bindings_url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f/service_bindings",
"service_bindings": [
],
"routes_url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f/routes",
"routes": [
{
"metadata": {
"guid": "99f28c6f-d718-4de2-8931-fb8e6e8a2592",
"url": "/v2/routes/99f28c6f-d718-4de2-8931-fb8e6e8a2592",
"created_at": "2016-02-17T22:50:28Z",
"updated_at": null
},
"entity": {
"host": "cf-env",
"path": "",
"domain_guid": "535ae589-9562-400c-af35-f068d6c2529b",
"space_guid": "c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/535ae589-9562-400c-af35-f068d6c2529b",
"space_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"apps_url": "/v2/routes/99f28c6f-d718-4de2-8931-fb8e6e8a2592/apps"
}
}
]
}
}
]
}
Updating app cf-env in org cloud / space dev as admin...
REQUEST: [2016-02-19T11:40:52-05:00]
PUT /v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f?async=true&inline-relations-depth=1 HTTP/1.1
Host: api.cf.REDACTED.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.15.0+fa1bfe2 / darwin
{"name":"cf-env","memory":256,"environment_json":{}}
RESPONSE: [2016-02-19T11:40:52-05:00]
HTTP/1.1 201 Created
Content-Length: 4072
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Date: Fri, 19 Feb 2016 16:41:01 GMT
Server: nginx
X-Cf-Requestid: c7e76be9-d571-4aab-529a-4af8f2d46882
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: ed5454e1-9517-4deb-6a24-ddad42d7d6a5::2666911d-fdec-4da7-ad12-7a221f449118
{
"metadata": {
"guid": "63d85976-2393-4d67-9eb3-ffb9037ea59f",
"url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f",
"created_at": "2016-02-17T22:50:27Z",
"updated_at": "2016-02-19T16:40:52Z"
},
"entity": {
"name": "cf-env",
"production": false,
"space_guid": "c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"stack_guid": "31015029-0060-43a0-984b-384ba05db38d",
"buildpack": null,
"detected_buildpack": null,
"environment_json": {
},
"memory": 256,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "319c79ea-edc2-48fa-b7e0-acc109d1049b",
"command": null,
"console": false,
"debug": null,
"staging_task_id": null,
"package_state": "PENDING",
"health_check_type": "port",
"health_check_timeout": null,
"staging_failed_reason": null,
"staging_failed_description": null,
"diego": false,
"docker_image": null,
"package_updated_at": null,
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null,
"space_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"space": {
"metadata": {
"guid": "c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"created_at": "2016-02-17T22:50:02Z",
"updated_at": null
},
"entity": {
"name": "dev",
"organization_guid": "6057ed3f-633c-4904-a505-40412ee9ec98",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/6057ed3f-633c-4904-a505-40412ee9ec98",
"developers_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/developers",
"managers_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/managers",
"auditors_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/auditors",
"apps_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/apps",
"routes_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/routes",
"domains_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/domains",
"service_instances_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/service_instances",
"app_events_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/app_events",
"events_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/events",
"security_groups_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77/security_groups"
}
},
"stack_url": "/v2/stacks/31015029-0060-43a0-984b-384ba05db38d",
"stack": {
"metadata": {
"guid": "31015029-0060-43a0-984b-384ba05db38d",
"url": "/v2/stacks/31015029-0060-43a0-984b-384ba05db38d",
"created_at": "2016-02-15T20:56:52Z",
"updated_at": null
},
"entity": {
"name": "cflinuxfs2",
"description": "Cloud Foundry Linux-based filesystem"
}
},
"events_url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f/events",
"service_bindings_url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f/service_bindings",
"service_bindings": [
],
"routes_url": "/v2/apps/63d85976-2393-4d67-9eb3-ffb9037ea59f/routes",
"routes": [
{
"metadata": {
"guid": "99f28c6f-d718-4de2-8931-fb8e6e8a2592",
"url": "/v2/routes/99f28c6f-d718-4de2-8931-fb8e6e8a2592",
"created_at": "2016-02-17T22:50:28Z",
"updated_at": null
},
"entity": {
"host": "cf-env",
"path": "",
"domain_guid": "535ae589-9562-400c-af35-f068d6c2529b",
"space_guid": "c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"service_instance_guid": null,
"port": 0,
"domain_url": "/v2/domains/535ae589-9562-400c-af35-f068d6c2529b",
"space_url": "/v2/spaces/c8e09b6c-e184-42af-bd7c-a51be3faaa77",
"apps_url": "/v2/routes/99f28c6f-d718-4de2-8931-fb8e6e8a2592/apps"
}
}
]
}
}
OK
Uploading cf-env...
REQUEST: [2016-02-19T11:40:52-05:00]
PUT /v2/resource_match HTTP/1.1
Host: api.cf.REDACTED.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: go-cli 6.15.0+fa1bfe2 / darwin
[{"sha1":"ceeae06803722ae9d1bf8ddc30031de3515e4210","size":86},{"sha1":"e5545cb8c50adfca1979c76a5c0d6f784842598d","size":346},{"sha1":"9d8912495b30605ad010220e2f67f521b8af3607","size":21},{"sha1":"e783350a6ccc0a81c0d218b7e45135de4d588fec","size":1741},{"sha1":"7bb95b1b8c6e51d454c29234c93a1d1e1061abc4","size":41},{"sha1":"0","size":0},{"sha1":"0","size":0},{"sha1":"76f294204b8fae7c8b3a231bf39f73ab52083896","size":59140},{"sha1":"87bed335c8f1df71debf33bad4454ba0872d85bd","size":1019},{"sha1":"0","size":0},{"sha1":"0","size":0},{"sha1":"7b8f08852f734ef287468fe1676c1c4e7a9f678a","size":148992},{"sha1":"4bd7a6923ebf8ded4d04fd27c7c38e7a75b1ea25","size":89600},{"sha1":"a17f40c9beb03b458f537f42cf36dd90d8230625","size":216576},{"sha1":"7e8002b0b5fdb40ec93f6cde4a4a19cc0f45a158","size":17920},{"sha1":"9d5fc505c53027a0746ce1e29d897ee8aaaaffa8","size":326656},{"sha1":"a63b374ab06aeb6f567bd24e61434e386cce0811","size":42496}]
RESPONSE: [2016-02-19T11:41:51-05:00]
HTTP/1.1 504 GATEWAY_TIMEOUT
Content-Length: 0
Connection: keep-alive
FAILED
Error uploading application.
Server error, status code: 504, error code: 0, message:
FAILED
Error uploading application.
Server error, status code: 504, error code: 0, message:
enki:cf-env robert$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment