Ronak Agarwal <roagarwa@...>
Hi, Please go through all my instance info below and let me know what can be done to resolve this issue?? I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": " https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": " https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": " https://uaa.cf.ronak.com", Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js" both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be:EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). -------------------------------------------------------------------------------- I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB. I have configured 4443 with SSL on ELB - 80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP) ---------------------------------------------------------------------------------- Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs? Job/index | State | Resource Pool | IPs | +------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 | ------------------------------------------------------------------------------------------------------ openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify return:1 Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com i:/C=US/O=Pivotal/CN=*.cf.ronak.com Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com No client certificate CA names sent SSL handshake has read 1403 bytes and written 421 bytes New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key: 3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3 Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate) ------------------------------------------------------------------------------------------------------------------------ I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ? -------------------------------------------------------------------------------------------------------------- In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ?? ------------------------------------------------------------------------------------------ I think core problem is cf push error which I mentioned above - 1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below - buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false I am not sure why filename is null ?? 2) Unknown Error Code - 10001 explained more below --------------------------------------------------------------------------------------- 'CF_TRACE=true cf push' gives below error - REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id: aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b { "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred. ________________________________ I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem. I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001. Please help me to solve the problem. --------------------------------------------------------------------------------------------------- cf logs nodeapp --recent RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id: ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502 { "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": { }, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [ ], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } } ] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin... FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4:EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4:EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). ---------------------------------------------------------------------------------------------------------- Please go through all my above research and let me know what can be done to resolve this issue?? Thanks Ronak
|
|
Btw CF-213 is a fresh install or update ??
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote: Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be : EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key: 3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id: aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id: ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 : EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 : EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
|
|
Ronak Agarwal <roagarwa@...>
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error: #","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file: \\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT 1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error: #","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", \"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip , "log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file: \\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT 1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error: #","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", \"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file: \\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT 1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error: #","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file: \\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT 1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error: #","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file: \\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT 1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", \"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in `rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id: 64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n', last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT 1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote: Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key: 3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id: aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id: ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
|
|
It looks like the api instance is unable to upload the buildpacks to the blobstore. Perhaps the NAT (network NAT, not message bus NATS) instance is not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote: Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file: \\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file: \\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in `rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n', last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+
| api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5
Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url":
"/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events",
"service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes",
"routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89",
"apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
|
|
Ronak Agarwal <roagarwa@...>
I tried 'curl http://google.com' from my api_z1 instance but was unable to get any response. I create my NAT vm through 'bosh aws create' command, but by mistake I stopped that VM on AWS. So does stopping NAT VM is causing this issue ? It has any persistent data while setting NAT VM ? If its because of stopping NAT Vm, so now what is the solution, do I need to destroy everything and create entire environment again ? Please suggest.
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 2:53 PM, CF Runtime <cfruntime(a)gmail.com> wrote: It looks like the api instance is unable to upload the buildpacks to the blobstore. Perhaps the NAT (network NAT, not message bus NATS) instance is not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file: \\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file: \\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in `rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n', last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
|
|
Yeah, without the NAT vm nothing will be able to get out to the internet. They will be able to respond to external requests, such as a request to the api, or the login server, or an individual app. But if anything on the inside tries to initiate a network connection, it has no route to the internet. Amazon has good generic documentation on how to create a NAT instance: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html#NATInstanceBOSH also has some documentation, although it doesn't tell you how to create the instance itself, but rather how to configure your private subnet and routing table to use the NAT instance: http://bosh.io/docs/setup-aws.html#natIn both sets of documentation, you may already have security groups, routes and subnets created from your previous NAT instance. Joseph CF Release Integration Team
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 2:50 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote: I tried 'curl http://google.com' from my api_z1 instance but was unable to get any response.
I create my NAT vm through 'bosh aws create' command, but by mistake I stopped that VM on AWS. So does stopping NAT VM is causing this issue ? It has any persistent data while setting NAT VM ?
If its because of stopping NAT Vm, so now what is the solution, do I need to destroy everything and create entire environment again ? Please suggest.
On Mon, Aug 3, 2015 at 2:53 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
It looks like the api instance is unable to upload the buildpacks to the blobstore. Perhaps the NAT (network NAT, not message bus NATS) instance is
not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n
opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block
in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in
rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock
in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file: \\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block
in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in
rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock
in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n
opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file: \\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n
opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in
`rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '--- !ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n',
last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block
in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see
login_z1/z2
in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+
| api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 |
10.10.17.7
| | loggregator_trafficcontroller_z2/0 | running | small_z2 |
10.10.81.4
| | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5
Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91
.!.EkH..mf..X.v.
0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90
..?;.y=Y.UW.....
0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b
.+..j.........[
0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.}
$?...
0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50
v..a.O.FwAb...P
0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b
U....".........{
0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6
.3...`.8?5.m.h&.
0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG...
.1ctV.g.
0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa
&.L.._..........
0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33
.....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
|
|
Ronak Agarwal <roagarwa@...>
Thanks Joseph. I am not clear at one point - I already have a NAT vm which I had just stopped and again started, so are you asking me to create a new NAT vm because I have stopped it earlier? because it maintains some persistent data. I just tried pushing a Java app because at api_z1, I can't find Java buildpack error, but I am getting - RESPONSE: [2015-08-03T10:13:42Z] 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: I checked api_z1 logs and couldn't find any trace for this error, is it moved to Cloud_Controller_Worker ? What could be the error? I have good disk space available in api_z1. cf logs appname --recent , gives below - RESPONSE: [2015-08-03T10:19:07Z] HTTP/1.1 200 OK Content-Length: 6200 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Mon, 03 Aug 2015 10:19:05 GMT Server: nginx X-Cf-Requestid: 2a67e173-20bf-4f89-7b27-efd5b28461c6 X-Content-Type-Options: nosniff X-Vcap-Request-Id: f7b15702-3650-4258-5b40-48efbd9ef271::230c52e3-52a7-4a81-82f4-4e1ed445082d { "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "2ac4b290-fb0d-4273-940e-b2d1aeb31320", "url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320", "created_at": "2015-08-03T09:26:19Z", "updated_at": "2015-08-03T10:12:40Z" }, "entity": { "name": "hello-spring-cloud", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": { "SPRING_PROFILES_DEFAULT": "cloud" }, "memory": 512, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "3719a87d-98b8-4641-a613-c9730f132b5d", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/events", "service_bindings_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/service_bindings", "service_bindings": [ ], "routes_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/routes", "routes": [ { "metadata": { "guid": "f44c4856-08c1-49f2-8e1b-a51e548adca6", "url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6", "created_at": "2015-08-03T09:27:16Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unabsorbent-masculinization", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6/apps" } }, { "metadata": { "guid": "47a495d6-a484-48f0-ac12-6157282be1c4", "url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4", "created_at": "2015-08-03T09:58:03Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unascertainable-unmelodiousness", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4/apps" } }, { "metadata": { "guid": "f51fad6c-fd48-4dfb-b201-a756af14bd00", "url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00", "created_at": "2015-08-03T10:12:40Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-completive-hesperinos", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00/apps" } } ] } } ] } Connected, dumping recent logs for app hello-spring-cloud in org ronak / space ronak as admin... FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320:EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320:EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 3:33 PM, CF Runtime <cfruntime(a)gmail.com> wrote: Yeah, without the NAT vm nothing will be able to get out to the internet. They will be able to respond to external requests, such as a request to the api, or the login server, or an individual app. But if anything on the inside tries to initiate a network connection, it has no route to the internet.
Amazon has good generic documentation on how to create a NAT instance: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html#NATInstance
BOSH also has some documentation, although it doesn't tell you how to create the instance itself, but rather how to configure your private subnet and routing table to use the NAT instance: http://bosh.io/docs/setup-aws.html#nat
In both sets of documentation, you may already have security groups, routes and subnets created from your previous NAT instance.
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:50 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
I tried 'curl http://google.com' from my api_z1 instance but was unable to get any response.
I create my NAT vm through 'bosh aws create' command, but by mistake I stopped that VM on AWS. So does stopping NAT VM is causing this issue ? It has any persistent data while setting NAT VM ?
If its because of stopping NAT Vm, so now what is the solution, do I need to destroy everything and create entire environment again ? Please suggest.
On Mon, Aug 3, 2015 at 2:53 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
It looks like the api instance is unable to upload the buildpacks to the blobstore. Perhaps the NAT (network NAT, not message bus NATS) instance is not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file: \\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file:
\\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in `rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n', last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
|
|
Ronak Agarwal <roagarwa@...>
If I restart my NAT vm and do curl google.com - I am getting response.
When I try ssh to any of the private VM (api_z1 IP) from this NAT vm -> ssh -i "bosh.pem" vcap(a)10.10.17.0
" It is required that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: bosh.pem Permission denied (publickey). "
So I did - chmod 400 bosh.pem
Then tried again above ssh command and able to ssh that 10.10.17.0
But curl google.com not giving anything.
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 3:50 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote: Thanks Joseph.
I am not clear at one point - I already have a NAT vm which I had just stopped and again started, so are you asking me to create a new NAT vm because I have stopped it earlier? because it maintains some persistent data.
I just tried pushing a Java app because at api_z1, I can't find Java buildpack error, but I am getting -
RESPONSE: [2015-08-03T10:13:42Z] 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:
I checked api_z1 logs and couldn't find any trace for this error, is it moved to Cloud_Controller_Worker ? What could be the error? I have good disk space available in api_z1.
cf logs appname --recent , gives below - RESPONSE: [2015-08-03T10:19:07Z] HTTP/1.1 200 OK Content-Length: 6200 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Mon, 03 Aug 2015 10:19:05 GMT Server: nginx X-Cf-Requestid: 2a67e173-20bf-4f89-7b27-efd5b28461c6 X-Content-Type-Options: nosniff X-Vcap-Request-Id: f7b15702-3650-4258-5b40-48efbd9ef271::230c52e3-52a7-4a81-82f4-4e1ed445082d
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "2ac4b290-fb0d-4273-940e-b2d1aeb31320", "url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320", "created_at": "2015-08-03T09:26:19Z", "updated_at": "2015-08-03T10:12:40Z" }, "entity": { "name": "hello-spring-cloud", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": { "SPRING_PROFILES_DEFAULT": "cloud" }, "memory": 512, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "3719a87d-98b8-4641-a613-c9730f132b5d", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/events", "service_bindings_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/routes", "routes": [ { "metadata": { "guid": "f44c4856-08c1-49f2-8e1b-a51e548adca6", "url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6", "created_at": "2015-08-03T09:27:16Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unabsorbent-masculinization", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6/apps" } }, { "metadata": { "guid": "47a495d6-a484-48f0-ac12-6157282be1c4", "url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4", "created_at": "2015-08-03T09:58:03Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unascertainable-unmelodiousness", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4/apps" } }, { "metadata": { "guid": "f51fad6c-fd48-4dfb-b201-a756af14bd00", "url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00", "created_at": "2015-08-03T10:12:40Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-completive-hesperinos", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00/apps" } } ] } } ] } Connected, dumping recent logs for app hello-spring-cloud in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
On Mon, Aug 3, 2015 at 3:33 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
Yeah, without the NAT vm nothing will be able to get out to the internet. They will be able to respond to external requests, such as a request to the api, or the login server, or an individual app. But if anything on the inside tries to initiate a network connection, it has no route to the internet.
Amazon has good generic documentation on how to create a NAT instance: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html#NATInstance
BOSH also has some documentation, although it doesn't tell you how to create the instance itself, but rather how to configure your private subnet and routing table to use the NAT instance: http://bosh.io/docs/setup-aws.html#nat
In both sets of documentation, you may already have security groups, routes and subnets created from your previous NAT instance.
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:50 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
I tried 'curl http://google.com' from my api_z1 instance but was unable to get any response.
I create my NAT vm through 'bosh aws create' command, but by mistake I stopped that VM on AWS. So does stopping NAT VM is causing this issue ? It has any persistent data while setting NAT VM ?
If its because of stopping NAT Vm, so now what is the solution, do I need to destroy everything and create entire environment again ? Please suggest.
On Mon, Aug 3, 2015 at 2:53 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
It looks like the api instance is unable to upload the buildpacks to the blobstore. Perhaps the NAT (network NAT, not message bus NATS) instance is not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file: \\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file:
\\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in `rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n', last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
|
|
Ronak Agarwal <roagarwa@...>
I just disabled - source/destination checks
And able to curl 'google.com' now from private IP.
Should I need to again do - bosh deploy ?
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 4:28 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote: If I restart my NAT vm and do curl google.com - I am getting response.
When I try ssh to any of the private VM (api_z1 IP) from this NAT vm -> ssh -i "bosh.pem" vcap(a)10.10.17.0
" It is required that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: bosh.pem Permission denied (publickey). "
So I did - chmod 400 bosh.pem
Then tried again above ssh command and able to ssh that 10.10.17.0
But curl google.com not giving anything.
On Mon, Aug 3, 2015 at 3:50 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Thanks Joseph.
I am not clear at one point - I already have a NAT vm which I had just stopped and again started, so are you asking me to create a new NAT vm because I have stopped it earlier? because it maintains some persistent data.
I just tried pushing a Java app because at api_z1, I can't find Java buildpack error, but I am getting -
RESPONSE: [2015-08-03T10:13:42Z] 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:
I checked api_z1 logs and couldn't find any trace for this error, is it moved to Cloud_Controller_Worker ? What could be the error? I have good disk space available in api_z1.
cf logs appname --recent , gives below - RESPONSE: [2015-08-03T10:19:07Z] HTTP/1.1 200 OK Content-Length: 6200 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Mon, 03 Aug 2015 10:19:05 GMT Server: nginx X-Cf-Requestid: 2a67e173-20bf-4f89-7b27-efd5b28461c6 X-Content-Type-Options: nosniff X-Vcap-Request-Id: f7b15702-3650-4258-5b40-48efbd9ef271::230c52e3-52a7-4a81-82f4-4e1ed445082d
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "2ac4b290-fb0d-4273-940e-b2d1aeb31320", "url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320", "created_at": "2015-08-03T09:26:19Z", "updated_at": "2015-08-03T10:12:40Z" }, "entity": { "name": "hello-spring-cloud", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": { "SPRING_PROFILES_DEFAULT": "cloud" }, "memory": 512, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "3719a87d-98b8-4641-a613-c9730f132b5d", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/events", "service_bindings_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/routes", "routes": [ { "metadata": { "guid": "f44c4856-08c1-49f2-8e1b-a51e548adca6", "url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6", "created_at": "2015-08-03T09:27:16Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unabsorbent-masculinization", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6/apps" } }, { "metadata": { "guid": "47a495d6-a484-48f0-ac12-6157282be1c4", "url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4", "created_at": "2015-08-03T09:58:03Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unascertainable-unmelodiousness", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4/apps" } }, { "metadata": { "guid": "f51fad6c-fd48-4dfb-b201-a756af14bd00", "url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00", "created_at": "2015-08-03T10:12:40Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-completive-hesperinos", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00/apps" } } ] } } ] } Connected, dumping recent logs for app hello-spring-cloud in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
On Mon, Aug 3, 2015 at 3:33 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
Yeah, without the NAT vm nothing will be able to get out to the internet. They will be able to respond to external requests, such as a request to the api, or the login server, or an individual app. But if anything on the inside tries to initiate a network connection, it has no route to the internet.
Amazon has good generic documentation on how to create a NAT instance: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html#NATInstance
BOSH also has some documentation, although it doesn't tell you how to create the instance itself, but rather how to configure your private subnet and routing table to use the NAT instance: http://bosh.io/docs/setup-aws.html#nat
In both sets of documentation, you may already have security groups, routes and subnets created from your previous NAT instance.
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:50 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
I tried 'curl http://google.com' from my api_z1 instance but was unable to get any response.
I create my NAT vm through 'bosh aws create' command, but by mistake I stopped that VM on AWS. So does stopping NAT VM is causing this issue ? It has any persistent data while setting NAT VM ?
If its because of stopping NAT Vm, so now what is the solution, do I need to destroy everything and create entire environment again ? Please suggest.
On Mon, Aug 3, 2015 at 2:53 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
It looks like the api instance is unable to upload the buildpacks to the blobstore. Perhaps the NAT (network NAT, not message bus NATS) instance is not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file: \\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file:
\\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in `rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n', last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
|
|
The buildpacks didn't successfully upload, so you'll probably just need to "bosh restart api_z1/0" which should cause the startup script to upload them.
Joseph CF Release Integration Team
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 4:09 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote: I just disabled - source/destination checks
And able to curl 'google.com' now from private IP.
Should I need to again do - bosh deploy ?
On Mon, Aug 3, 2015 at 4:28 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
If I restart my NAT vm and do curl google.com - I am getting response.
When I try ssh to any of the private VM (api_z1 IP) from this NAT vm -> ssh -i "bosh.pem" vcap(a)10.10.17.0
" It is required that your private key files are NOT accessible by others.
This private key will be ignored. bad permissions: ignore key: bosh.pem Permission denied (publickey). "
So I did - chmod 400 bosh.pem
Then tried again above ssh command and able to ssh that 10.10.17.0
But curl google.com not giving anything.
On Mon, Aug 3, 2015 at 3:50 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Thanks Joseph.
I am not clear at one point - I already have a NAT vm which I had just stopped and again started, so are you asking me to create a new NAT vm because I have stopped it earlier? because it maintains some persistent data.
I just tried pushing a Java app because at api_z1, I can't find Java buildpack error, but I am getting -
RESPONSE: [2015-08-03T10:13:42Z] 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:
I checked api_z1 logs and couldn't find any trace for this error, is it moved to Cloud_Controller_Worker ? What could be the error? I have good disk space available in api_z1.
cf logs appname --recent , gives below - RESPONSE: [2015-08-03T10:19:07Z] HTTP/1.1 200 OK Content-Length: 6200 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Mon, 03 Aug 2015 10:19:05 GMT Server: nginx X-Cf-Requestid: 2a67e173-20bf-4f89-7b27-efd5b28461c6 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
f7b15702-3650-4258-5b40-48efbd9ef271::230c52e3-52a7-4a81-82f4-4e1ed445082d
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "2ac4b290-fb0d-4273-940e-b2d1aeb31320", "url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320", "created_at": "2015-08-03T09:26:19Z", "updated_at": "2015-08-03T10:12:40Z" }, "entity": { "name": "hello-spring-cloud", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": { "SPRING_PROFILES_DEFAULT": "cloud" }, "memory": 512, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "3719a87d-98b8-4641-a613-c9730f132b5d", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url":
"/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps",
"routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/events",
"service_bindings_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/routes",
"routes": [ { "metadata": { "guid": "f44c4856-08c1-49f2-8e1b-a51e548adca6", "url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6", "created_at": "2015-08-03T09:27:16Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unabsorbent-masculinization", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0",
"space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89",
"apps_url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6/apps"
} }, { "metadata": { "guid": "47a495d6-a484-48f0-ac12-6157282be1c4", "url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4", "created_at": "2015-08-03T09:58:03Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unascertainable-unmelodiousness",
"path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0",
"space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89",
"apps_url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4/apps"
} }, { "metadata": { "guid": "f51fad6c-fd48-4dfb-b201-a756af14bd00", "url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00", "created_at": "2015-08-03T10:12:40Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-completive-hesperinos", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0",
"space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89",
"apps_url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00/apps"
} } ] } } ] } Connected, dumping recent logs for app hello-spring-cloud in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
On Mon, Aug 3, 2015 at 3:33 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
Yeah, without the NAT vm nothing will be able to get out to the internet.
They will be able to respond to external requests, such as a request
to the
api, or the login server, or an individual app. But if anything on the inside tries to initiate a network connection, it has no route to the internet.
Amazon has good generic documentation on how to create a NAT instance:
http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html#NATInstance
BOSH also has some documentation, although it doesn't tell you how to
create
the instance itself, but rather how to configure your private subnet
and
routing table to use the NAT instance: http://bosh.io/docs/setup-aws.html#nat
In both sets of documentation, you may already have security groups,
routes
and subnets created from your previous NAT instance.
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:50 AM, Ronak Agarwal <roagarwa(a)tibco.com>
wrote:
I tried 'curl http://google.com' from my api_z1 instance but was unable to get any response.
I create my NAT vm through 'bosh aws create' command, but by mistake I stopped that VM on AWS. So does stopping NAT VM is causing this issue ? It has any persistent data while setting NAT VM ?
If its because of stopping NAT Vm, so now what is the solution, do I need to destroy everything and create entire environment again ? Please suggest.
On Mon, Aug 3, 2015 at 2:53 PM, CF Runtime <cfruntime(a)gmail.com>
wrote:
It looks like the api instance is unable to upload the buildpacks
to the
blobstore. Perhaps the NAT (network NAT, not message bus NATS)
instance
is not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack
nodejs_buildpack
failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"} {"timestamp":1438583731.045526,"message":"Request
failed:
500: {\"code\"=>10001, \"description\"=>\"connect timeout
reached\",
\"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler:
!ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n
name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n
opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An
unknown
error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block
in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in
rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock
in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler:
!ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n
name: go_buildpack\n file:
\\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n
opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An
unknown
error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block
in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack
python_buildpack
failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in
rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock
in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler:
!ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n
name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n
opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An
unknown
error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler:
!ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n
name: php_buildpack\n file:
\\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n
opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An
unknown
error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack
binary_buildpack
failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue
in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler:
!ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n
name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n
opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An
unknown
error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in
`rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler:
!ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n',
last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block
in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <
getourneau(a)pivotal.io>
wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <
roagarwa(a)tibco.com>
wrote:
Hi,
Please go through all my instance info below and let me know
what
can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have
faced it
but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+
| api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE----- MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir 6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9 hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5
Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7
..X.B..Q.}
$?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all
the
VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not
sure
why its null because I am uploading system buildpack app which
of
Nodejs and when I do - cf buildpacks I can see 4 buildpacks
below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3
buckets
name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots
from
this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh
deploy'
--- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me
same
'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url":
"/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89",
"space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url":
"/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89",
"created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid":
"66e33d43-92fa-4f30-809d-1f5d9adaf921",
"space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url":
"/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances",
"app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url":
"/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups"
} }, "stack_url":
"/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e",
"stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url":
"/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e",
"created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url":
"/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings",
"service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url":
"/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0",
"created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak /
space
ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4 :
EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what
can be
done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
|
|
Ronak Agarwal <roagarwa@...>
Thanks Joseph, it was really helpful. I am pushing a python app and I can see a zip file for a python buildpack when I did - 'cf buildpacks'. But its still cf push is not able to identify python_buildpack. Then I gave buildpack: python_buildpack in my manifest.yml it gave me below error -------------------------------------------------------------------- 2015-08-04T10:45:24.93+0000 [API/0] OUT Created app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:25.40+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"route"=>"5ff72553-4031-4747-ad27-9102f00a3d3a"}) 2015-08-04T10:45:31.78+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:32.78+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:45:32.88+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:45:33.47+0000 [STG/0] OUT Staging failed: An application could not be detected by any available buildpack 2015-08-04T10:45:33.48+0000 [STG/0] ERR 2015-08-04T10:45:33.62+0000 [API/0] ERR encountered error: An app was not successfully detected by any available buildpack 2015-08-04T10:51:17.31+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>" https://github.com/cloudfoundry/buildpack-python.git", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:51:27.64+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:51:28.84+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:51:29.86+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:51:29.94+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:51:30.01+0000 [STG/0] ERR Cloning into '/tmp/buildpacks/buildpack-python'... 2015-08-04T10:51:30.98+0000 [STG/0] OUT Submodule 'compile-extensions' ( https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions' 2015-08-04T10:51:31.02+0000 [STG/0] ERR Cloning into 'compile-extensions'... 2015-08-04T10:51:31.36+0000 [STG/0] OUT Submodule path 'compile-extensions': checked out 'ce9345a9a6e7b00266194cadd18dbef37e791a7b' 2015-08-04T10:51:31.48+0000 [STG/0] OUT -------> Buildpack version 1.5.0 2015-08-04T10:51:31.51+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:51:36.34+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:51:36.67+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:51:36.70+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:51:36.86+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T10:56:18.81+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:56:24.10+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:56:25.24+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:56:26.26+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:56:26.36+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:56:26.68+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T10:56:26.71+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:56:31.21+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:56:31.99+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T10:56:31.99+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T10:56:32.43+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:56:32.46+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:56:32.60+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T11:00:56.58+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T11:01:01.91+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T11:01:03.53+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T11:01:04.55+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T11:01:04.63+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T11:01:04.94+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T11:01:04.98+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T11:01:09.55+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase ------------------------------------------------------- If I gave python buildpack url of git as buildpack: then it gives below error 2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase ------------------------------------------- I am just pushing this simple sample of python - https://github.com/ihuston/python-cf-examples/tree/master/01-simple-python-app
toggle quoted message
Show quoted text
On Mon, Aug 3, 2015 at 9:53 PM, CF Runtime <cfruntime(a)gmail.com> wrote: The buildpacks didn't successfully upload, so you'll probably just need to "bosh restart api_z1/0" which should cause the startup script to upload them.
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 4:09 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
I just disabled - source/destination checks
And able to curl 'google.com' now from private IP.
Should I need to again do - bosh deploy ?
On Mon, Aug 3, 2015 at 4:28 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
If I restart my NAT vm and do curl google.com - I am getting response.
When I try ssh to any of the private VM (api_z1 IP) from this NAT vm -> ssh -i "bosh.pem" vcap(a)10.10.17.0
" It is required that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: bosh.pem Permission denied (publickey). "
So I did - chmod 400 bosh.pem
Then tried again above ssh command and able to ssh that 10.10.17.0
But curl google.com not giving anything.
On Mon, Aug 3, 2015 at 3:50 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Thanks Joseph.
I am not clear at one point - I already have a NAT vm which I had just stopped and again started, so are you asking me to create a new NAT vm because I have stopped it earlier? because it maintains some persistent data.
I just tried pushing a Java app because at api_z1, I can't find Java buildpack error, but I am getting -
RESPONSE: [2015-08-03T10:13:42Z] 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:
I checked api_z1 logs and couldn't find any trace for this error, is it moved to Cloud_Controller_Worker ? What could be the error? I have good disk space available in api_z1.
cf logs appname --recent , gives below - RESPONSE: [2015-08-03T10:19:07Z] HTTP/1.1 200 OK Content-Length: 6200 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Mon, 03 Aug 2015 10:19:05 GMT Server: nginx X-Cf-Requestid: 2a67e173-20bf-4f89-7b27-efd5b28461c6 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
f7b15702-3650-4258-5b40-48efbd9ef271::230c52e3-52a7-4a81-82f4-4e1ed445082d
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "2ac4b290-fb0d-4273-940e-b2d1aeb31320", "url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320", "created_at": "2015-08-03T09:26:19Z", "updated_at": "2015-08-03T10:12:40Z" }, "entity": { "name": "hello-spring-cloud", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": { "SPRING_PROFILES_DEFAULT": "cloud" }, "memory": 512, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "3719a87d-98b8-4641-a613-c9730f132b5d", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/events", "service_bindings_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/2ac4b290-fb0d-4273-940e-b2d1aeb31320/routes", "routes": [ { "metadata": { "guid": "f44c4856-08c1-49f2-8e1b-a51e548adca6", "url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6", "created_at": "2015-08-03T09:27:16Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unabsorbent-masculinization", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f44c4856-08c1-49f2-8e1b-a51e548adca6/apps" } }, { "metadata": { "guid": "47a495d6-a484-48f0-ac12-6157282be1c4", "url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4", "created_at": "2015-08-03T09:58:03Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-unascertainable-unmelodiousness", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/47a495d6-a484-48f0-ac12-6157282be1c4/apps" } }, { "metadata": { "guid": "f51fad6c-fd48-4dfb-b201-a756af14bd00", "url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00", "created_at": "2015-08-03T10:12:40Z", "updated_at": null }, "entity": { "host": "hello-spring-cloud-completive-hesperinos", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/f51fad6c-fd48-4dfb-b201-a756af14bd00/apps" } } ] } } ] } Connected, dumping recent logs for app hello-spring-cloud in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=2ac4b290-fb0d-4273-940e-b2d1aeb31320: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
On Mon, Aug 3, 2015 at 3:33 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
Yeah, without the NAT vm nothing will be able to get out to the internet. They will be able to respond to external requests, such as a request to the api, or the login server, or an individual app. But if anything on the inside tries to initiate a network connection, it has no route to the internet.
Amazon has good generic documentation on how to create a NAT instance:
http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html#NATInstance
BOSH also has some documentation, although it doesn't tell you how to create the instance itself, but rather how to configure your private subnet and routing table to use the NAT instance: http://bosh.io/docs/setup-aws.html#nat
In both sets of documentation, you may already have security groups, routes and subnets created from your previous NAT instance.
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:50 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
I tried 'curl http://google.com' from my api_z1 instance but was unable to get any response.
I create my NAT vm through 'bosh aws create' command, but by mistake I stopped that VM on AWS. So does stopping NAT VM is causing this issue ? It has any persistent data while setting NAT VM ?
If its because of stopping NAT Vm, so now what is the solution, do I need to destroy everything and create entire environment again ? Please suggest.
On Mon, Aug 3, 2015 at 2:53 PM, CF Runtime <cfruntime(a)gmail.com> wrote:
It looks like the api instance is unable to upload the buildpacks to the blobstore. Perhaps the NAT (network NAT, not message bus NATS) instance is not configured correctly.
Are you able to curl an external URL from the api instance?
Joseph CF Release Integration Team
On Mon, Aug 3, 2015 at 2:12 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Its a fresh install.
I found few logs may be helpful to resolve this issue --
I found few logs on cloud_controller_ng as below -
Nodejs buildpack install fail :- {"timestamp":1438583731.044699,"message":"Buildpack nodejs_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583731.045526,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\", ------------------------------------------ -> Fails at nodejs_buildpack-cached-v1.4.0.zip
"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583731.0496318,"message":"(0.001478s) UPDATE delayed_jobs SET guid = '82d9ebe1-7af0-4671-89a5-30146a5bb554', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: nodejs_buildpack\n file:
\\"/var/vcap/packages/buildpack_nodejs/nodejs_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n', last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:31:30',failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 971) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
go_buildpack failed to install
{"timestamp":1438583970.3534014,"message":"Buildpack go_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583970.3541129,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\"
________________________________
->go_buildpack-cached-v1.4.0.zip ,
"log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"} {"timestamp":1438583970.358118,"message":"(0.001543s) UPDATE delayed_jobs SET guid = 'd559d276-c5a2-471c-aca1-ba25f4e9cd97', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: go_buildpack\n file:
\\"/var/vcap/packages/buildpack_go/go_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:35:29', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 972) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
python_buildpack failed to install
{"timestamp":1438583971.811825,"message":"Buildpack python_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"} {"timestamp":1438583971.8125288,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in rescue in block in connect'\",
\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:114:inblock in connect'\",
________________________________
->python_buildpack-cached-v1.4.0.zip
,"log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/exception_catching_job.rb","lineno":24,"method":"log_error"}
{"timestamp":1438583971.8163912,"message":"(0.001414s) UPDATE delayed_jobs SET guid = '37f04f8f-2e1e-4096-8f5f-c10d8180a9fc', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0,handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: python_buildpack\n file:
\\"/var/vcap/packages/buildpack_python/python_buildpack-cached-v1.4.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26',locked_at = '2015-08-03 06:35:31', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 973) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":7030
php_buildpack failed to install
{"timestamp":1438584211.920127,"message":"Buildpack php_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->php_buildpack-cached-v3.3.0.zip
{"timestamp":1438584211.9250205,"message":"(0.001442s) UPDATE delayed_jobs SET guid = '133a41bd-307f-4e2b-b70e-635f3dec60c4', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: php_buildpack\n file:
\\"/var/vcap/packages/buildpack_php/php_buildpack-cached-v3.3.0.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:30', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 974) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,
________________________________
binary_buildpack failed to install
{"timestamp":1438584212.2200441,"message":"Buildpack binary_buildpack failed to install or update. Error:
#","log_level":"error","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":4360,"file":"/var/vcap/data/packages/cloud_controller_ng/a60643ffa860f4f065c25b6b99687b9d55067757.1-0e8fbd36253d4107c466281136ad267d0660bc51/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":38,"method":"rescue in perform"}
________________________________
->binary_buildpack-cached-v1.0.1.zip
{"timestamp":1438584212.2245483,"message":"(0.001381s) UPDATE delayed_jobs SET guid = '7ea6156e-024c-4f2d-b574-ca9b218470cd', created_at = '2015-08-03 06:27:26', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler:
!ruby/object:VCAP::CloudController::Jobs::Runtime::BuildpackInstaller\n name: binary_buildpack\n file:
\\"/var/vcap/packages/buildpack_binary/binary_buildpack-cached-v1.0.1.zip\\"\n opts: {}\n request_id: \n',last_error = NULL, run_at = '2015-08-03 06:27:26', locked_at = '2015-08-03 06:39:31', failed_at = NULL, locked_by = 'cc_api_worker.api_z1.0.1', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 975) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70305412338480,"fiber_id":70305448717440,"process_id":436
________________________________
This seems to be timeout issue.
{"timestamp":1438585142.846115,"message":"Request failed: 500: {\"code\"=>10001, \"description\"=>\"connect timeout reached\", \"error_code\"=>\"CF-Timeout\",
\"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/excon-0.44.1/lib/excon/socket.rb:135:in `rescue in block in connect'
{"timestamp":1438585142.851403,"message":"(0.001378s) UPDATE delayed_jobs SET guid = '6e4167d9-c7ee-4425-9049-e50971864a64', created_at = '2015-08-03 06:55:01', updated_at = CURRENT_TIMESTAMP, priority = 0, attempts = 0, handler = '---
!ruby/object:VCAP::CloudController::Jobs::ExceptionCatchingJob\nhandler: !ruby/object:VCAP::CloudController::Jobs::RequestJob\n handler: !ruby/object:VCAP::CloudController::Jobs::TimeoutJob\n handler: !ruby/object:VCAP::CloudController::Jobs::Runtime::AppBitsPacker\n app_guid: 41657738-cc7c-4237-ab52-e4f9683e16f4\n uploaded_compressed_path: \\"/var/vcap/data/cloud_controller_ng/tmp/uploads/0000000001\\"\n fingerprints: []\n request_id:
64cc342c-9db9-495e-46d9-ce5e9331aa41::d6c111c3-79b1-4fec-8fa9-0d4be759bdd9\n', last_error = NULL, run_at = '2015-08-03 06:55:01', locked_at = '2015-08-03 06:55:02', failed_at = NULL,locked_by = 'cc_api_worker.api_z1.0.2', queue = 'cc-api_z1-0', cf_api_error = '---\nerror_code: UnknownError\ndescription: An unknown error occurred.\ncode: 10001\n' WHERE (id = 989) LIMIT
1","log_level":"debug2","source":"cc.background","data":{},"thread_id":70006300463920,"fiber_id":70006336842960,"process_id":4397,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/2.1.0/gems/sequel-4.21.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
________________________________
I will try to push Java app to verify if its getting pushed.
On Mon, Aug 3, 2015 at 2:19 PM, Gwenn Etourneau <getourneau(a)pivotal.io> wrote:
Btw CF-213 is a fresh install or update ??
On Mon, Aug 3, 2015 at 5:37 PM, Ronak Agarwal <roagarwa(a)tibco.com> wrote:
Hi,
Please go through all my instance info below and let me know what can be done to resolve this issue??
I have deployed CF-213.yml release through microbosh on AWS. I have installed latest CF CLI v6.12.2 I am able to do cf login using below endpoints - /.cf/config.json "Target": "https://api.cf.ronak.com", "ApiVersion": "2.33.0", "AuthorizationEndpoint": "https://login.cf.ronak.com", "LoggregatorEndPoint": "wss://loggregator.cf.ronak.com:4443", "DopplerEndPoint": "wss://doppler.cf.ronak.com:4443", "UaaEndpoint": "https://uaa.cf.ronak.com",
Now when I am trying to push Nodejs app using - cf push nodeapp -c "node main.js" -m 128M -b node_buildpack OR cf push nodeapp -c "node main.js"
both are failing .. gives unknown error. When I do -> cf logs nodeapp --recent It gives below error - FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=05ea8bda-28c1-49ed-8c65-4625c77423be: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
--------------------------------------------------------------------------------
I am using ELB and my HA-proxy job is not running. Please let me know how to overcome this challenge. I found lot of people have faced it but all of them I think are using HA-proxy and not ELB.
I have configured 4443 with SSL on ELB -
80 (HTTP) forwarding to 80 (HTTP), 443 (HTTPS, Certificate: cfrouter_cert) forwarding to 80 (HTTP), 4443 (SSL, Certificate: cfrouter_cert) forwarding to 80 (TCP)
----------------------------------------------------------------------------------
Below are the vms/jobs which are running on AWS I dont see login_z1/z2 in them, so do I need these jobs?
Job/index | State | Resource Pool | IPs |
+------------------------------------+---------+---------------+--------------+ | api_worker_z1/0 | running | small_z1 | 10.10.17.3 | | api_worker_z2/0 | running | small_z2 | 10.10.81.0 | | api_z1/0 | running | large_z1 | 10.10.17.1 | | api_z2/0 | running | large_z2 | 10.10.80.255 | | clock_global/0 | running | medium_z1 | 10.10.17.2 | | doppler_z1/0 | running | medium_z1 | 10.10.17.6 | | doppler_z2/0 | running | medium_z2 | 10.10.81.3 | | etcd_z1/0 | running | medium_z1 | 10.10.16.20 | | etcd_z1/1 | running | medium_z1 | 10.10.16.35 | | etcd_z2/0 | running | medium_z2 | 10.10.80.19 | | hm9000_z1/0 | running | medium_z1 | 10.10.17.4 | | hm9000_z2/0 | running | medium_z2 | 10.10.81.1 | | loggregator_trafficcontroller_z1/0 | running | small_z1 | 10.10.17.7 | | loggregator_trafficcontroller_z2/0 | running | small_z2 | 10.10.81.4 | | nats_z1/0 | running | medium_z1 | 10.10.16.11 | | nats_z2/0 | running | medium_z2 | 10.10.80.11 | | nfs_z1/0 | running | medium_z1 | 10.10.16.36 | | router_z1/0 | running | router_z1 | 10.10.16.15 | | router_z2/0 | running | router_z2 | 10.10.80.15 | | runner_z1/0 | running | runner_z1 | 10.10.17.5 | | runner_z2/0 | running | runner_z2 | 10.10.81.2 | | stats_z1/0 | running | small_z1 | 10.10.16.255 | | uaa_z1/0 | running | medium_z1 | 10.10.17.0 | | uaa_z2/0 | running | medium_z2 | 10.10.80.254 |
------------------------------------------------------------------------------------------------------
openssl s_client -connect api.cf.ronak.com:443 CONNECTED(00000003) depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com verify error:num=18:self signed certificate verify return:1 depth=0 C = US, O = Pivotal, CN = *.cf.ronak.com
verify return:1
Certificate chain 0 s:/C=US/O=Pivotal/CN=*.cf.ronak.com
i:/C=US/O=Pivotal/CN=*.cf.ronak.com
Server certificate -----BEGIN CERTIFICATE-----
MIIC6TCCAdGgAwIBAgIBADANBgkqhkiG9w0BAQUFADA4MQswCQYDVQQGEwJVUzEQ
MA4GA1UECgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wHhcNMTUw
NzE0MTAxNDA1WhcNMTgwNzE0MTAxNDA1WjA4MQswCQYDVQQGEwJVUzEQMA4GA1UE
CgwHUGl2b3RhbDEXMBUGA1UEAwwOKi5jZi5yb25hay5jb20wggEiMA0GCSqGSIb3
DQEBAQUAA4IBDwAwggEKAoIBAQDi2+NVSsR7/oCh40H+CfFWUS0BczyTubpV72Ir
6TCkjLitLdFgJFqNvaIcT0+2+rozxQs7Zr/IlH5OznYsFYNyOSx2l/xDKCqA7q4U
l6aGhFZSodIow6AKCRzVt2y5T/nmeRCWsVPjHMvANvJlM57PdWI1vIlaav3l3enF
FUs14MSEuXY+eWfeP74Sprg/Xc5TiD5RQPLZC8h2HeAmIMgTV5TAagWiGK5MUoQ9
hScJvsgBPKQuldRfRsk7NxuXmY+wdfOYKc5CZ7szl7QiLsT7Tdeei+UuhIAh874S
HjPP+JlFH4/whRJyDtv/h9rZzW1DJbx5ZeUtzFGv0jxmsvJrAgMBAAEwDQYJKoZI
hvcNAQEFBQADggEBAM7S9za5V2sJ8Gwb4QQ29F4bQxVNk5/u7AnbzvfmhcWgO9yt
oBUwtc04F/Ycz7sTlXXDe0f+nSo+Q0vowd4NmTSont5g8ZznD18k4krCcfvXCsAL
AvJ/yt2n+fW/gwZbZHS9kb4Esxu4SmjU8GFN10+DMRFaB9JkbRpJmRLsxZzE8w+E
MW7gi0V+IycOLyeJsfwXtjGZhKsLSq6fg/mwVax9Z0MsqVRbzO61RaJjMDiop+aN
kf/ktqGVBACwqvG7cxKu4/2cFMzi6dC9xEN7o5spinfdNt/uH3O0JHRcftUCICaL ln6RtW7XXHNWnP2YfMXxPLvhjV/Cg49soz3D+os= -----END CERTIFICATE----- subject=/C=US/O=Pivotal/CN=*.cf.ronak.com
issuer=/C=US/O=Pivotal/CN=*.cf.ronak.com
No client certificate CA names sent
SSL handshake has read 1403 bytes and written 421 bytes
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID:
B845CA20842317DB12FB250C05D40686334A7C85D8BE2E5332B6C70632BF9256 Session-ID-ctx: Master-Key:
3934F0F361C1A407B215D869F8142F3B3180BB8CD232D55D937430CDD3674F047A774594B6A3BA9DB7275D1E507AE0B5 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 300 (seconds) TLS session ticket: 0000 - 1b 21 b6 45 6b 48 d6 c5-6d 66 e4 97 58 ae 76 91 .!.EkH..mf..X.v. 0010 - 0c 85 3f 3b f8 79 3d 59-b5 55 57 bd a7 98 a2 90 ..?;.y=Y.UW..... 0020 - 20 81 2b 0b 8a 6a 13 8c-1e e7 c4 d2 f7 d1 f6 5b .+..j.........[ 0030 - c7 d6 58 16 42 89 1e 51-01 7d 20 24 3f fa 2e f7 ..X.B..Q.} $?... 0040 - 76 06 d5 61 ff 4f 5c a1-46 77 41 62 fe fc c9 50 v..a.O.FwAb...P 0050 - 55 b6 00 98 15 22 8a 81-e2 e0 0e 9d da 83 fc 7b U....".........{ 0060 - ef 33 16 ec 88 60 ca 38-3f 35 85 6d fe 68 26 f6 .3...`.8?5.m.h&. 0070 - 24 48 65 47 8b c4 f6 20-f9 31 63 74 56 1a 67 d5 $HeG... .1ctV.g. 0080 - 26 d1 4c 0d fa 5f 01 da-ec d9 a6 88 9d ab cd fa &.L.._.......... 0090 - 05 17 bd e4 b4 78 f4 02-6b 5e 86 83 04 b7 f2 33 .....x..k^.....3
Start Time: 1438453185 Timeout : 300 (sec) Verify return code: 18 (self signed certificate)
------------------------------------------------------------------------------------------------------------------------
I am using self signed certificate.. so if I have to continue without --skip-ssl-validation, I should add this ELB certificate in all the VMS as trusted keys. Is it correct ? OR anyother option ?
--------------------------------------------------------------------------------------------------------------
In CF-AWS-Stub.yml I found two - a) jwt: signing_key & verification_key b) router . ssl_cert & ssl_key Both should be same as AWS ELB ssl certificate ??
------------------------------------------------------------------------------------------
I think core problem is cf push error which I mentioned above -
1) I can see in Response - "detected_buildpack": null, I am not sure why its null because I am uploading system buildpack app which of Nodejs and when I do - cf buildpacks I can see 4 buildpacks below -
buildpack position enabled locked filename staticfile_buildpack 1 true false java_buildpack 2 true false node_buildpack 3 true false php_buildpack 6 true false
I am not sure why filename is null ??
2) Unknown Error Code - 10001 explained more below
---------------------------------------------------------------------------------------
'CF_TRACE=true cf push' gives below error -
REQUEST: [2015-08-02T10:40:17Z] GET /v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5 HTTP/1.1 Host: api.cf.ronak.com Accept: application/json Authorization: [PRIVATE DATA HIDDEN] Content-Type: application/json User-Agent: go-cli 6.12.2-24abed3 / linux
RESPONSE: [2015-08-02T10:40:17Z] HTTP/1.1 200 OK Content-Length: 491 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:40:17 GMT Server: nginx X-Cf-Requestid: f423947e-8512-41f0-7fd1-21ba6b89178d X-Content-Type-Options: nosniff X-Vcap-Request-Id:
aa782bd8-d758-4c65-505c-af71f2bc212d::a0ac2db0-3f3e-4a49-b011-2f9e7f02660b
{ "metadata": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "created_at": "2015-08-02T10:36:11Z", "url": "/v2/jobs/fd682f50-c857-40dc-a190-abc0f59492c5" }, "entity": { "guid": "fd682f50-c857-40dc-a190-abc0f59492c5", "status": "failed", "error": "Use of entity>error is deprecated in favor of entity>error_details.", "error_details": { "error_code": "UnknownError", "description": "An unknown error occurred.", "code": 10001 } } } FAILED Error uploading application. An unknown error occurred. FAILED Error uploading application. An unknown error occurred.
________________________________
I found post in which its mentioned - The point was that S3 buckets name (specified by following options: resource_directory_key, app_package_directory_key, droplet_directory_key, and buildpack_directory_key) had dots in their names. Removing dots from this parameters will solve the problem.
I removing dots and replaced with '-' and again did 'bosh deploy' --- I can't find these directories getting created after deployment under S3 ?? is it normal ? I tried cf push anyways to check if its working - but gave me same 'Unkown Error code 10001.
Please help me to solve the problem.
---------------------------------------------------------------------------------------------------
cf logs nodeapp --recent
RESPONSE: [2015-08-02T10:41:51Z] HTTP/1.1 200 OK Content-Length: 4525 Connection: keep-alive Content-Type: application/json;charset=utf-8 Date: Sun, 02 Aug 2015 10:41:50 GMT Server: nginx X-Cf-Requestid: c5508a55-a9f4-4be0-49a4-23a4f14fb5d3 X-Content-Type-Options: nosniff X-Vcap-Request-Id:
ae35d7fc-659f-4811-4d7c-077a78963951::4bae904f-6903-4a76-9d0e-314098266502
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41657738-cc7c-4237-ab52-e4f9683e16f4", "url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4", "created_at": "2015-08-02T10:36:10Z", "updated_at": "2015-08-02T10:36:11Z" }, "entity": { "name": "nodeapp", "production": false, "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "stack_guid": "612874d8-144e-4599-88a7-e38e333ca93e", "buildpack": null, "detected_buildpack": null, "environment_json": {
}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d2fa841d-17d6-4bae-9400-409966082443", "command": "node main.js", "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]" }, "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "space": { "metadata": { "guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "created_at": "2015-07-30T09:08:36Z", "updated_at": null }, "entity": { "name": "ronak", "organization_guid": "66e33d43-92fa-4f30-809d-1f5d9adaf921", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66e33d43-92fa-4f30-809d-1f5d9adaf921", "developers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/developers", "managers_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/managers", "auditors_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/auditors", "apps_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/apps", "routes_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/routes", "domains_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/domains", "service_instances_url":
"/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/service_instances", "app_events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/app_events", "events_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/events", "security_groups_url":
"/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89/security_groups" } }, "stack_url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "stack": { "metadata": { "guid": "612874d8-144e-4599-88a7-e38e333ca93e", "url": "/v2/stacks/612874d8-144e-4599-88a7-e38e333ca93e", "created_at": "2015-07-23T12:10:53Z", "updated_at": null }, "entity": { "name": "cflinuxfs2", "description": "Cloud Foundry Linux-based filesystem" } }, "events_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/events", "service_bindings_url":
"/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/service_bindings", "service_bindings": [
], "routes_url": "/v2/apps/41657738-cc7c-4237-ab52-e4f9683e16f4/routes", "routes": [ { "metadata": { "guid": "2489386f-973b-45db-bc86-412b57bfffb0", "url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0", "created_at": "2015-07-31T06:53:17Z", "updated_at": null }, "entity": { "host": "nodeapp", "path": "", "domain_guid": "c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_guid": "6ffcaf95-f30b-41b6-88ce-d67f59584e89", "domain_url": "/v2/domains/c3c27b28-9fef-4130-8942-41dbeb8220a0", "space_url": "/v2/spaces/6ffcaf95-f30b-41b6-88ce-d67f59584e89", "apps_url": "/v2/routes/2489386f-973b-45db-bc86-412b57bfffb0/apps" } } ] } }
] } Connected, dumping recent logs for app nodeapp in org ronak / space ronak as admin...
FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443). FAILED Error dialing loggregator server: Get
https://loggregator.cf.ronak.com:4443/recent?app=41657738-cc7c-4237-ab52-e4f9683e16f4: EOF. Please ask your Cloud Foundry Operator to check the platform configuration (loggregator endpoint is wss://loggregator.cf.ronak.com:4443).
----------------------------------------------------------------------------------------------------------
Please go through all my above research and let me know what can be done to resolve this issue??
Thanks Ronak _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
-- Regards, Ronak Agarwal (M) +91 8446044994 (O) +91 20 4150 7935 roagarwa(a)tibco.com
|
|
Ronak Agarwal <roagarwa@...>
Thanks Joseph, it was really helpful. I am pushing a python app and I can see a zip file for a python buildpack when I did - 'cf buildpacks'. But its still cf push is not able to identify python_buildpack. Then I gave buildpack: python_buildpack in my manifest.yml it gave me below error -------------------------------------------------------------------- 2015-08-04T10:45:24.93+0000 [API/0] OUT Created app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:25.40+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"route"=>"5ff72553-4031-4747-ad27-9102f00a3d3a"}) 2015-08-04T10:45:31.78+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:32.78+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:45:32.88+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:45:33.47+0000 [STG/0] OUT Staging failed: An application could not be detected by any available buildpack 2015-08-04T10:45:33.48+0000 [STG/0] ERR 2015-08-04T10:45:33.62+0000 [API/0] ERR encountered error: An app was not successfully detected by any available buildpack 2015-08-04T10:51:17.31+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>" https://github.com/cloudfoundry/buildpack-python.git", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:51:27.64+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:51:28.84+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:51:29.86+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:51:29.94+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:51:30.01+0000 [STG/0] ERR Cloning into '/tmp/buildpacks/buildpack-python'... 2015-08-04T10:51:30.98+0000 [STG/0] OUT Submodule 'compile-extensions' ( https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions' 2015-08-04T10:51:31.02+0000 [STG/0] ERR Cloning into 'compile-extensions'... 2015-08-04T10:51:31.36+0000 [STG/0] OUT Submodule path 'compile-extensions': checked out 'ce9345a9a6e7b00266194cadd18dbef37e791a7b' 2015-08-04T10:51:31.48+0000 [STG/0] OUT -------> Buildpack version 1.5.0 2015-08-04T10:51:31.51+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:51:36.34+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:51:36.67+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:51:36.70+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:51:36.86+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T10:56:18.81+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:56:24.10+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:56:25.24+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:56:26.26+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:56:26.36+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:56:26.68+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T10:56:26.71+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:56:31.21+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:56:31.99+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T10:56:31.99+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T10:56:32.43+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:56:32.46+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:56:32.60+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T11:00:56.58+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T11:01:01.91+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T11:01:03.53+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T11:01:04.55+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T11:01:04.63+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T11:01:04.94+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T11:01:04.98+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T11:01:09.55+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase ------------------------------------------------------- If I gave python buildpack url of git as buildpack: then it gives below error 2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase ------------------------------------------- I am just pushing this simple sample of python - https://github.com/ihuston/python-cf-examples/tree/master/01-simple-python-app
|
|
Ronak Agarwal <roagarwa@...>
Thanks Joseph, it was really helpful. I am pushing a python app and I can see a zip file for a python buildpack when I did - 'cf buildpacks'. But its still cf push is not able to identify python_buildpack. Then I gave buildpack: python_buildpack in my manifest.yml it gave me below error -------------------------------------------------------------------- 2015-08-04T10:45:24.93+0000 [API/0] OUT Created app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:25.40+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"route"=>"5ff72553-4031-4747-ad27-9102f00a3d3a"}) 2015-08-04T10:45:31.78+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:32.78+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:45:32.88+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:45:33.47+0000 [STG/0] OUT Staging failed: An application could not be detected by any available buildpack 2015-08-04T10:45:33.48+0000 [STG/0] ERR 2015-08-04T10:45:33.62+0000 [API/0] ERR encountered error: An app was not successfully detected by any available buildpack 2015-08-04T10:51:17.31+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>" https://github.com/cloudfoundry/buildpack-python.git", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:51:27.64+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:51:28.84+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:51:29.86+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:51:29.94+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:51:30.01+0000 [STG/0] ERR Cloning into '/tmp/buildpacks/buildpack-python'... 2015-08-04T10:51:30.98+0000 [STG/0] OUT Submodule 'compile-extensions' ( https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions' 2015-08-04T10:51:31.02+0000 [STG/0] ERR Cloning into 'compile-extensions'... 2015-08-04T10:51:31.36+0000 [STG/0] OUT Submodule path 'compile-extensions': checked out 'ce9345a9a6e7b00266194cadd18dbef37e791a7b' 2015-08-04T10:51:31.48+0000 [STG/0] OUT -------> Buildpack version 1.5.0 2015-08-04T10:51:31.51+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:51:36.34+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:51:36.67+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:51:36.70+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:51:36.86+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T10:56:18.81+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:56:24.10+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:56:25.24+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:56:26.26+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:56:26.36+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:56:26.68+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T10:56:26.71+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:56:31.21+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:56:31.99+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T10:56:31.99+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T10:56:32.43+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:56:32.46+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:56:32.60+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T11:00:56.58+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T11:01:01.91+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T11:01:03.53+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T11:01:04.55+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T11:01:04.63+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T11:01:04.94+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T11:01:04.98+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T11:01:09.55+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase ------------------------------------------------------- If I gave python buildpack url of git as buildpack: then it gives below error 2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase ------------------------------------------- I am just pushing this simple sample of python - https://github.com/ihuston/python-cf-examples/tree/master/01-simple-python-app
|
|
The app you are pushing is not being detected as a valid Python app by the buildpack. The buildpack expects there to be a setup.py file in the root of the app if you do not provide a requirements.txt. The easiest way around this is simply to create a empty requirements.txt in your app directory.
Joseph & Zak
toggle quoted message
Show quoted text
On Tue, Aug 4, 2015 at 4:22 AM, Ronak Agarwal <roagarwa(a)tibco.com> wrote: Thanks Joseph, it was really helpful.
I am pushing a python app and I can see a zip file for a python buildpack when I did - 'cf buildpacks'. But its still cf push is not able to identify python_buildpack.
Then I gave buildpack: python_buildpack in my manifest.yml it gave me below error
-------------------------------------------------------------------- 2015-08-04T10:45:24.93+0000 [API/0] OUT Created app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:25.40+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"route"=>"5ff72553-4031-4747-ad27-9102f00a3d3a"}) 2015-08-04T10:45:31.78+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:45:32.78+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:45:32.88+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:45:33.47+0000 [STG/0] OUT Staging failed: An application could not be detected by any available buildpack 2015-08-04T10:45:33.48+0000 [STG/0] ERR 2015-08-04T10:45:33.62+0000 [API/0] ERR encountered error: An app was not successfully detected by any available buildpack 2015-08-04T10:51:17.31+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"https://github.com/cloudfoundry/buildpack-python.git", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:51:27.64+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:51:28.84+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:51:29.86+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:51:29.94+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:51:30.01+0000 [STG/0] ERR Cloning into '/tmp/buildpacks/buildpack-python'... 2015-08-04T10:51:30.98+0000 [STG/0] OUT Submodule 'compile-extensions' (https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions' 2015-08-04T10:51:31.02+0000 [STG/0] ERR Cloning into 'compile-extensions'... 2015-08-04T10:51:31.36+0000 [STG/0] OUT Submodule path 'compile-extensions': checked out 'ce9345a9a6e7b00266194cadd18dbef37e791a7b' 2015-08-04T10:51:31.48+0000 [STG/0] OUT -------> Buildpack version 1.5.0 2015-08-04T10:51:31.51+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:51:36.34+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:51:36.67+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:51:36.70+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:51:36.86+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T10:56:18.81+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T10:56:24.10+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T10:56:25.24+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T10:56:26.26+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T10:56:26.36+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T10:56:26.68+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T10:56:26.71+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T10:56:31.21+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T10:56:31.99+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T10:56:31.99+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T10:56:32.43+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T10:56:32.46+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T10:56:32.60+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase 2015-08-04T11:00:56.58+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"name"=>"myapp", "command"=>"PRIVATE DATA HIDDEN", "memory"=>128, "disk_quota"=>256, "buildpack"=>"python_buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-08-04T11:01:01.91+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STOPPED"}) 2015-08-04T11:01:03.53+0000 [DEA/0] OUT Got staging request for app with id 9bccc468-b1b4-413b-88f1-f8b510064d78 2015-08-04T11:01:04.55+0000 [API/0] OUT Updated app with guid 9bccc468-b1b4-413b-88f1-f8b510064d78 ({"state"=>"STARTED"}) 2015-08-04T11:01:04.63+0000 [STG/0] OUT -----> Downloaded app package (4.0K) 2015-08-04T11:01:04.94+0000 [STG/0] OUT -------> Buildpack version 1.4.0 2015-08-04T11:01:04.98+0000 [STG/0] OUT -----> Installing runtime (python-2.7.10) 2015-08-04T11:01:09.55+0000 [STG/0] OUT -----> Installing dependencies with pip 2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase
-------------------------------------------------------
If I gave python buildpack url of git as buildpack: then it gives below error
2015-08-04T11:01:10.29+0000 [STG/0] ERR You are using pip version 7.0.1, however version 7.1.0 is available. 2015-08-04T11:01:10.29+0000 [STG/0] ERR You should consider upgrading via the 'pip install --upgrade pip' command. 2015-08-04T11:01:10.73+0000 [STG/0] ERR Directory '.' is not installable. File 'setup.py' not found. 2015-08-04T11:01:10.76+0000 [STG/0] OUT Staging failed: Buildpack compilation step failed 2015-08-04T11:01:10.97+0000 [API/0] ERR encountered error: App staging failed in the buildpack compile phase
-------------------------------------------
I am just pushing this simple sample of python -
https://github.com/ihuston/python-cf-examples/tree/master/01-simple-python-app
|
|