{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/408","labels_url":"https://api.github.com/repos/cloudfoundry/cli/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/408/comments","events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/408/events","html_url":"https://github.com/cloudfoundry/cli/issues/408","id":68029295,"number":408,"title":"CLI panicking while doing cf app after app scale down.","user":{"login":"savitaashture","id":9441662,"avatar_url":"https://avatars.githubusercontent.com/u/9441662?v=3","gravatar_id":"","url":"https://api.github.com/users/savitaashture","html_url":"https://github.com/savitaashture","followers_url":"https://api.github.com/users/savitaashture/followers","following_url":"https://api.github.com/users/savitaashture/following{/other_user}","gists_url":"https://api.github.com/users/savitaashture/gists{/gist_id}","starred_url":"https://api.github.com/users/savitaashture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savitaashture/subscriptions","organizations_url":"https://api.github.com/users/savitaashture/orgs","repos_url":"https://api.github.com/users/savitaashture/repos","events_url":"https://api.github.com/users/savitaashture/events{/privacy}","received_events_url":"https://api.github.com/users/savitaashture/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T07:28:34Z","updated_at":"2015-04-28T23:13:51Z","closed_at":"2015-04-28T23:13:51Z","body":"```\r\n$ cf scale cf-env -i 50\r\nScaling app cf-env in org htipl / space testbed as admin...\r\nOK\r\n$ cf app cf-env\r\nShowing health and status for app cf-env in org htipl / space testbed as admin...\r\n\r\nOK\r\n\r\nrequested state: started\r\ninstances: 50/50\r\nusage: 128M x 50 instances\r\nurls: cf-env.10.244.0.34.xip.io\r\nlast uploaded: Thu Apr 9 11:37:21 UTC 2015\r\nstack: lucid64\r\n\r\n      state      since                    cpu    memory      disk      details\r\n#0    running    2015-04-10 11:32:00 AM   0.0%   0 of 128M   0 of 1G\r\n#1    running    2015-04-10 12:13:24 PM   0.0%   0 of 128M   0 of 1G\r\n#2    running    2015-04-10 12:13:03 PM   0.0%   0 of 128M   0 of 1G\r\n#3    running    2015-04-10 12:13:48 PM   0.0%   0 of 128M   0 of 1G\r\n   --- removed unnecessary lines for brevity ---\r\n#45   starting   2015-04-10 12:14:43 PM   0.0%   0 of 128M   0 of 1G\r\n#46   starting   2015-04-10 12:14:43 PM   0.0%   0 of 128M   0 of 1G   insufficient resources\r\n#47   starting   2015-04-10 12:14:43 PM   0.0%   0 of 128M   0 of 1G   insufficient resources\r\n#48   starting   2015-04-10 12:14:43 PM   0.0%   0 of 128M   0 of 1G   insufficient resources\r\n#49   starting   2015-04-10 12:14:43 PM   0.0%   0 of 128M   0 of 1G   insufficient resources\r\n```\r\nWhen we decrease the scale count \r\nWe get this kind of Panic:\r\n```\r\n$ cf scale cf-env -i 40\r\nScaling app cf-env in org htipl / space testbed as admin...\r\nOK\r\n$ cf app cf-env\r\nShowing health and status for app cf-env in org htipl / space testbed as admin...\r\n\r\n\r\n        Aww shucks.\r\n\r\n        Something completely unexpected happened. This is a bug in cf.\r\n        Please file this bug : https://github.com/cloudfoundry/cli/issues\r\n        Tell us that you ran this command:\r\n\r\n                cf app cf-env\r\n\r\n        using this version of the CLI:\r\n\r\n                BUILT_FROM_SOURCE\r\n\r\n        and that this error occurred:\r\n\r\n                runtime error: index out of range\r\n\r\n        and this stack trace:\r\n\r\n                goroutine 16 [running]:\r\n        main.generateBacktrace(0x0, 0x0)\r\n                /root/.gvm/pkgsets/go1.3.1/global/src/github.com/cloudfoundry/cli/main/main.go:177 +0xcf\r\n        main.handlePanics(0x7f50db6c6a50, 0xc208045960)\r\n                /root/.gvm/pkgsets/go1.3.1/global/src/github.com/cloudfoundry/cli/main/main.go:161 +0x15e\r\n        runtime.panic(0xa45760, 0x1bf99bc)\r\n                /root/.gvm/gos/go1.3.1/src/pkg/runtime/panic.c:248 +0x18d\r\n        github.com/cloudfoundry/cli/cf/api.(*logNoaaRepository).GetContainerMetrics(0xc208159310, 0xc20810dcb0, 0x24, 0xc208460000, 0x28, 0x28, 0x0, 0x0, 0x0, 0x0, ...)\r\n                /root/.gvm/pkgsets/go1.3.1/global/src/github.com/cloudfoundry/cli/tmp/cli_gopath/src/github.com/cloudfoundry/cli/cf/api/logs_noaa.go:65 +0x307\r\n        github.com/cloudfoundry/cli/cf/commands/application.(*ShowApp).ShowApp(0xc2081c4240, 0xc20810dcb0, 0x24, 0xc208187a38, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n                /root/.gvm/pkgsets/go1.3.1/global/src/github.com/cloudfoundry/cli/tmp/cli_gopath/src/github.com/cloudfoundry/cli/cf/commands/application/app.go:112 +0x7ea\r\n        github.com/cloudfoundry/cli/c\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/comments/97258704","html_url":"https://github.com/cloudfoundry/cli/issues/408#issuecomment-97258704","issue_url":"https://api.github.com/repos/cloudfoundry/cli/issues/408","id":97258704,"user":{"login":"goehmen","id":6342415,"avatar_url":"https://avatars.githubusercontent.com/u/6342415?v=3","gravatar_id":"","url":"https://api.github.com/users/goehmen","html_url":"https://github.com/goehmen","followers_url":"https://api.github.com/users/goehmen/followers","following_url":"https://api.github.com/users/goehmen/following{/other_user}","gists_url":"https://api.github.com/users/goehmen/gists{/gist_id}","starred_url":"https://api.github.com/users/goehmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goehmen/subscriptions","organizations_url":"https://api.github.com/users/goehmen/orgs","repos_url":"https://api.github.com/users/goehmen/repos","events_url":"https://api.github.com/users/goehmen/events{/privacy}","received_events_url":"https://api.github.com/users/goehmen/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T23:13:51Z","updated_at":"2015-04-28T23:13:51Z","body":"This bug is scheduled to be addressed in the next sprint.  "}}