{"action":"created","issue":{"url":"https://api.github.com/repos/cf-tm-bot/cli/issues/327","repository_url":"https://api.github.com/repos/cf-tm-bot/cli","labels_url":"https://api.github.com/repos/cf-tm-bot/cli/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/cf-tm-bot/cli/issues/327/comments","events_url":"https://api.github.com/repos/cf-tm-bot/cli/issues/327/events","html_url":"https://github.com/cf-tm-bot/cli/issues/327","id":193610065,"number":327,"title":"cloudfoundry/cli #1019: sync: negative WaitGroup counter - Story Id: 135550397","user":{"login":"cf-tm-bot","id":20690070,"avatar_url":"https://avatars.githubusercontent.com/u/20690070?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-tm-bot","html_url":"https://github.com/cf-tm-bot","followers_url":"https://api.github.com/users/cf-tm-bot/followers","following_url":"https://api.github.com/users/cf-tm-bot/following{/other_user}","gists_url":"https://api.github.com/users/cf-tm-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-tm-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-tm-bot/subscriptions","organizations_url":"https://api.github.com/users/cf-tm-bot/orgs","repos_url":"https://api.github.com/users/cf-tm-bot/repos","events_url":"https://api.github.com/users/cf-tm-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-tm-bot/received_events","type":"User","site_admin":false},"labels":[{"id":448503816,"url":"https://api.github.com/repos/cf-tm-bot/cli/labels/bug","name":"bug","color":"ee0701","default":true},{"id":448571513,"url":"https://api.github.com/repos/cf-tm-bot/cli/labels/finished","name":"finished","color":"172c51","default":false},{"id":448530393,"url":"https://api.github.com/repos/cf-tm-bot/cli/labels/github-issue","name":"github-issue","color":"ededed","default":false},{"id":448531694,"url":"https://api.github.com/repos/cf-tm-bot/cli/labels/new-activity","name":"new-activity","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-05T21:06:40Z","updated_at":"2016-12-08T23:06:07Z","closed_at":null,"body":"[Github Issue #1019](https://github.com/cloudfoundry/cli/issues/1019)\n\n>cf push sometimes fails with:\n>\n>```\n>panic: sync: negative WaitGroup counter\n>\n>goroutine 1359 [running]:\n>panic(0xb08e60, 0xc4204ce730)\n>\t/usr/local/go/src/runtime/panic.go:500 +0x1a1\n>sync.(*WaitGroup).Add(0xc42070e930, 0xffffffffffffffff)\n>\t/usr/local/go/src/sync/waitgroup.go:75 +0x1fe\n>sync.(*WaitGroup).Done(0xc42070e930)\n>\t/usr/local/go/src/sync/waitgroup.go:100 +0x34\n>code.cloudfoundry.org/cli/cf/commands/a ...(message has been trimmed)\n\nFiled by [@jgawor](http://github.com/jgawor)\n\n---\n\nMirrors: [story 135550397](https://www.pivotaltracker.com/story/show/135550397) submitted on Dec 5, 2016 UTC\n- **Requester**: CF Gitbot\n- **Owners**: Anand Gaitonde\n- **Estimate**: 0.0"},"comment":{"url":"https://api.github.com/repos/cf-tm-bot/cli/issues/comments/265882802","html_url":"https://github.com/cf-tm-bot/cli/issues/327#issuecomment-265882802","issue_url":"https://api.github.com/repos/cf-tm-bot/cli/issues/327","id":265882802,"user":{"login":"cf-tm-bot","id":20690070,"avatar_url":"https://avatars.githubusercontent.com/u/20690070?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-tm-bot","html_url":"https://github.com/cf-tm-bot","followers_url":"https://api.github.com/users/cf-tm-bot/followers","following_url":"https://api.github.com/users/cf-tm-bot/following{/other_user}","gists_url":"https://api.github.com/users/cf-tm-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-tm-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-tm-bot/subscriptions","organizations_url":"https://api.github.com/users/cf-tm-bot/orgs","repos_url":"https://api.github.com/users/cf-tm-bot/repos","events_url":"https://api.github.com/users/cf-tm-bot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-tm-bot/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T23:06:07Z","updated_at":"2016-12-08T23:06:07Z","body":"Anand Gaitonde [commented](https://www.pivotaltracker.com/n/projects/892938/stories/135550397/comments/157738577) on Dec 8, 2016, 9.44 PM UTC:\n\nLooks like the fix wasn't 100% correct: \n```\nOUT: Setting api endpoint to https://api.bosh-lite.com...\nOUT: OK\nOUT:\nOUT:\nOUT: API endpoint:   https://api.bosh-lite.com (API version: 2.64.0)\nOUT: Not logged in. Use 'cf login' to log in.\nOUT: API endpoint: https://api.bosh-lite.com\nOUT: Authenticating...\nOUT: OK\nOUT: Use 'cf target' to view or set your target org and space\nOUT: Creating org INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61 as admin...\nOUT: OK\nOUT:\nOUT: Assigning role OrgManager to user admin in org INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61 ...\nOUT: OK\nOUT:\nOUT: TIP: Use 'cf target -o INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61' to target new org\nOUT: Creating space SPACE-d933fc3c-19cf-4c53-6150-566707072fb4 in org INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61 as admin...\nOUT: OK\nOUT: Assigning role RoleSpaceManager to user admin in org INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61 / space SPACE-d933fc3c-19cf-4c53-6150-566707072fb4 as admin...\nOUT: OK\nOUT: Assigning role RoleSpaceDeveloper to user admin in org INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61 / space SPACE-d933fc3c-19cf-4c53-6150-566707072fb4 as admin...\nOUT: OK\nOUT:\nOUT: TIP: Use 'cf target -o \"INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61\" -s \"SPACE-d933fc3c-19cf-4c53-6150-566707072fb4\"' to target new space\nOUT:\nOUT: API endpoint:   https://api.bosh-lite.com (API version: 2.64.0)\nOUT: User:           admin\nOUT: Org:            INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61\nOUT: Space:          SPACE-d933fc3c-19cf-4c53-6150-566707072fb4\nOUT: Creating app APP-990bf66f-160a-4c53-6b77-315bc6c9568e in org INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61 / space SPACE-d933fc3c-19cf-4c53-6150-566707072fb4 as admin...\nOUT: OK\nOUT:\nOUT: Creating route app-990bf66f-160a-4c53-6b77-315bc6c9568e.bosh-lite.com...\nOUT: OK\nOUT:\nOUT: Binding app-990bf66f-160a-4c53-6b77-315bc6c9568e.bosh-lite.com to APP-990bf66f-160a-4c53-6b77-315bc6c9568e...\nOUT: OK\nOUT:\nOUT: Uploading APP-990bf66f-160a-4c53-6b77-315bc6c9568e...\nOUT: Uploading app files from: /private/var/folders/tr/2_gnsgl17v58hf6dpqjk2mr80000gn/T/simple-app445900824\nOUT: Uploading 151B, 1 files\nDone uploading\nOUT: OK\nOUT:\nOUT: Warning: error tailing logs\nOUT: Timed out waiting for connection to Loggregator (wss://doppler.bosh-lite.com:4443).\nOUT: Starting app APP-990bf66f-160a-4c53-6b77-315bc6c9568e in org INTEGRATION-ORG-7b93c6dd-b68c-4e1a-7336-e95816fbad61 / space SPACE-d933fc3c-19cf-4c53-6150-566707072fb4 as admin...\nERR: panic: sync: negative WaitGroup counter\nERR:\nERR: goroutine 1381 [running]:\nERR: panic(0x725f00, 0xc4203c9680)\nERR: \t/usr/local/Cellar/go/1.7.4/libexec/src/runtime/panic.go:500 +0x1a1\nERR: sync.(*WaitGroup).Add(0xc42071eb80, 0xffffffffffffffff)\nERR: \t/usr/local/Cellar/go/1.7.4/libexec/src/sync/waitgroup.go:75 +0x1fe\nERR: sync.(*WaitGroup).Done(0xc42071eb80)\nERR: \t/usr/local/Cellar/go/1.7.4/libexec/src/sync/waitgroup.go:100 +0x34\nERR: code.cloudfoundry.org/cli/cf/commands/application.(*Start).TailStagingLogs.func1.1()\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/cf/commands/application/start.go:256 +0x2a\nERR: sync.(*Once).Do(0xc42071ebc0, 0xc42062dc28)\nERR: \t/usr/local/Cellar/go/1.7.4/libexec/src/sync/once.go:44 +0xdb\nERR: code.cloudfoundry.org/cli/cf/commands/application.(*Start).TailStagingLogs.func1()\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/cf/commands/application/start.go:257 +0x107\nERR: code.cloudfoundry.org/cli/cf/api/logs.(*NoaaLogsRepository).TailLogsFor.func1()\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/cf/api/logs/noaa_logs_repository.go:74 +0x3d\nERR: code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer.(*Consumer).retryAction.func1()\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer/async.go:277 +0x71\nERR: code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer.(*Consumer).establishWebsocketConnection(0xc42000ad00, 0xc4205b1c80, 0x31, 0xc42042d900, 0x48d, 0x13, 0x2, 0xc42062dd70)\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer/async.go:373 +0xbc\nERR: code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer.(*Consumer).listenAction.func1(0xc42000ad08, 0xdf8475800, 0x77359400)\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer/async.go:257 +0xaf\nERR: code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer.(*Consumer).retryAction(0xc42000ad00, 0xc4205b1d80, 0xc4204d0f00)\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer/async.go:282 +0x151\nERR: code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer.(*Consumer).streamAppDataTo(0xc42000ad00, 0xc420587c60, 0xc420209170, 0x24, 0xc42042d900, 0x48d, 0xc42071ebe0, 0xc4204d0f00, 0x1)\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer/async.go:188 +0x14a\nERR: code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer.(*Consumer).tailingLogs.func2(0xc4204d0f00, 0xc4204d0ea0, 0xc42000ad00, 0xc420587c60, 0xc420209170, 0x24, 0xc42042d900, 0x48d, 0xc42071ebe0, 0x53101)\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer/async.go:163 +0xde\nERR: created by code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer.(*Consumer).tailingLogs\nERR: \t/Users/pivotal/go/src/code.cloudfoundry.org/cli/vendor/github.com/cloudfoundry/noaa/consumer/async.go:164 +0x147\n\n\n• Failure in Spec Setup (BeforeEach) [19.235 seconds]\nterminate-task command\n/Users/pivotal/go/src/code.cloudfoundry.org/cli/integration/isolated/terminate_task_command_test.go:185\n  when the environment is setup correctly\n  /Users/pivotal/go/src/code.cloudfoundry.org/cli/integration/isolated/terminate_task_command_test.go:184\n    when the application exists\n    /Users/pivotal/go/src/code.cloudfoundry.org/cli/integration/isolated/terminate_task_command_test.go:183\n      when the wrong data type is provided to terminate-task [BeforeEach]\n      /Users/pivotal/go/src/code.cloudfoundry.org/cli/integration/isolated/terminate_task_command_test.go:110\n        outputs an error message to the user, provides help text, and exits 1\n        /Users/pivotal/go/src/code.cloudfoundry.org/cli/integration/isolated/terminate_task_command_test.go:109\n\n        No future change is possible.  Bailing out early after 17.783s.\n        Expected\n            <int>: 2\n        to match exit code:\n            <int>: 0\n\n        /Users/pivotal/go/src/code.cloudfoundry.org/cli/integration/isolated/terminate_task_command_test.go:98\n```\n\n<!--\nComment Id: 157738577\n-->"}}
{"actor":{"display_login":"cf-tm-bot"}}