-
Notifications
You must be signed in to change notification settings - Fork 4
Description
When behind firewall and app does not have access to download script here ti just hangs:
curl -s https://raw.githubusercontent.com/danhigham/cf-console/master/install.sh > /tmp/install.sh && bash /tmp/install.sh && sleep 3600
Another surprise was that even though I uninstalled on app that I tested this with it stayed around in app parameters. So when a deploy was done it started failing, and did not know why. When looking at logs would just repeat below sequence.
2015-03-30T12:48:54.27-0700 [App/0] OUT
2015-03-30T12:48:54.31-0700 [DEA/1] ERR Instance (index 0) failed to start accepting connections
2015-03-30T12:48:54.31-0700 [API/0] OUT App instance exited with guid 55e3e249-3069-4a30-9eeb-5cc05a1639f4 payload: {"cc_partition"=>"default", "droplet"=>"55e3e249-3069-4a30-9eeb-5cc05a1639f4", "version"=>"05990e8d-c026-4f6d-810f-33a0a802c30b", "instance"=>"7f7dc147e38941adabc522ad60c820cd", "index"=>0, "reason"=>"CRASHED", "exit_status"=>7, "exit_description"=>"app instance exited", "crash_timestamp"=>1427744934}
2015-03-30T12:48:56.18-0700 [DEA/1] OUT Removing crash for app with id 55e3e249-3069-4a30-9eeb-5cc05a1639f4
2015-03-30T12:48:56.18-0700 [DEA/1] OUT Stopping app instance (index 1) with guid 55e3e249-3069-4a30-9eeb-5cc05a1639f4
2015-03-30T12:48:56.18-0700 [DEA/1] OUT Stopped app instance (index 1) with guid 55e3e249-3069-4a30-9eeb-5cc05a1639f4
2015-03-30T12:49:28.62-0700 [DEA/1] OUT Starting app instance (index 1) with guid 55e3e249-3069-4a30-9eeb-5cc05a1639f4
2015-03-30T12:49:34.36-0700 [DEA/1] ERR Instance (index 1) failed to start accepting connections
2015-03-30T12:49:34.37-0700 [API/1] OUT App instance exited with guid 55e3e249-3069-4a30-9eeb-5cc05a1639f4 payload: {"cc_partition"=>"default", "droplet"=>"55e3e249-3069-4a30-9eeb-5cc05a1639f4", "version"=>"05990e8d-c026-4f6d-810f-33a0a802c30b", "instance"=>"f6d9f8da898049228faf34f3ddb39822", "index"=>1, "reason"=>"CRASHED", "exit_status"=>7, "exit_description"=>"app instance exited", "crash_timestamp"=>1427744974}
Not till I tried starting app with CF_TRACE=true did I see the above command was embedded in app:
"entity": {
"name": "someapp",
"production": false,
"space_guid": "3efeb19c-5b2a-4ef2-ba81-d74ce492ec1b",
"stack_guid": "50db112d-4eb6-4214-b988-515abc4e6b71",
"buildpack": "java_buildpack_offline-2_5",
"detected_buildpack": null,
"environment_json": {
"APPDYNAMICS_APP_NAME": "someapp",
"APPDYNAMICS_ENV_NAME": "someenv",
"APPLICATION_NAME": "someapp",
"AUTOLOGIN_PASSWORD": "pass",
"AUTOLOGIN_USER": "user",
"DATABASE_JDBC_URL": "jdbc:oracle:thin:@1.1.1.1:1234/db",
"DATABASE_PASSWORD": "dbxxxx",
"DATABASE_USERNAME": "dbuser",
....
....
},
"memory": 1024,
"instances": 2,
"disk_quota": 1024,
"state": "STARTED",
"version": "7af927ae-7117-481b-af3d-9ce6c76f0f4e",
"command": "curl -s https://raw.githubusercontent.com/danhigham/cf-console/master/install.sh > /tmp/install.sh && bash /tmp/install.sh && sleep 3600",
"console": false,
"debug": null,
"staging_task_id": "6c9de18f329041689e0233fa93a59fe3",
"package_state": "PENDING",
"health_check_timeout": null,
"staging_failed_reason": null,
"docker_image": null,
"package_updated_at": "2015-03-30T20:29:21+00:00",
"space_url": "/v2/spaces/3efeb19c-5b2a-4ef2-ba81-d74ce492ec1b",
"space": {
"metadata": {