Repository: cloudfoundry/cli

Issue #1340: When a `cf push` upload fails, a panic occurrs
Created: 2018-03-09T23:51:19Z
The targeted stack appears to be up, but the upload is failing for some reason.
cf push
Pushing from manifest to org org / space space as admin...
Using manifest file /Users/pivotal/workspace/cf-acceptance-tests/assets/dora/manifest.yml
Getting app info...
Updating app with these attributes...
  name:                dora
  path:                /Users/pivotal/workspace/cf-acceptance-tests/assets/dora
  disk quota:          1.5G
  health check type:   port
  instances:           1
  memory:              256M
  stack:               cflinuxfs2
  routes:
    dora.beryl-fin.capi.land

Updating app dora...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...
 1.19 MiB / 1.19 MiB [=============================================================================================================================] 100.00%Retrying upload due to an error...
Uploading files...
 1.19 MiB / 1.19 MiB [=============================================================================================================================] 100.00%Retrying upload due to an error...
Uploading files...
 1.19 MiB / 1.19 MiB [=============================================================================================================================] 100.00%Retrying upload due to an error...

		Something unexpected happened. This is a bug in cf.

		Please re-run the command that caused this exception with the environment
		variable CF_TRACE set to true.

		Also, please update to the latest cli and try the command again:
		https://code.cloudfoundry.org/cli/releases

		Please create an issue at: https://code.cloudfoundry.org/cli/issues

		Include the below information when creating the issue:

		Command
		cf push

		CLI Version
		6.34.1+bbdf81482.2018-01-17

		Error
		runtime error: invalid memory address or nil pointer dereference

		Stack Trace
			goroutine 1 [running]:
	code.cloudfoundry.org/cli/util/panichandler.HandlePanic()
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/util/panichandler/handler.go:19 +0x8a
	panic(0x192a220, 0x201dfd0)
		/usr/local/Cellar/go/1.9.2/libexec/src/runtime/panic.go:491 +0x283
	code.cloudfoundry.org/cli/command/translatableerror.UploadFailedError.Translate(0x0, 0x0, 0xc4205bc000, 0x198da01, 0x32c0080)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/command/translatableerror/upload_failed_error.go:16 +0x214
	code.cloudfoundry.org/cli/command/translatableerror.(*UploadFailedError).Translate(0xc420210cc0, 0xc4205bc000, 0xc420210cc0, 0x32c0080)
		<autogenerated>:1 +0x4f
	code.cloudfoundry.org/cli/util/ui.(*UI).DisplayError(0xc4205c2000, 0x1f57f60, 0xc420210cc0)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/util/ui/ui.go:174 +0x8b
	main.handleError(0x1f55620, 0xc4205bde60, 0x1f5dd60, 0xc4205c2000, 0x1f55620, 0xc4205bde60)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/main.go:257 +0x3dc
	main.executionWrapper(0x250e3c0, 0x20455a8, 0xc420198160, 0x0, 0x1, 0x0, 0x0)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/main.go:216 +0x26b
	code.cloudfoundry.org/cli/vendor/github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc4205b61e0, 0xc42000c090, 0x1, 0x1, 0x250bb20, 0x0, 0xc420000180, 0xc420182f60, 0x2246d90)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/vendor/github.com/jessevdk/go-flags/parser.go:314 +0x7fa
	main.parse(0xc42000c090, 0x1, 0x1, 0xc4205bc830)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/main.go:52 +0xad
	main.main()
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/main.go:43 +0x82

	goroutine 5 [syscall]:
	os/signal.signal_recv(0x0)
		/usr/local/Cellar/go/1.9.2/libexec/src/runtime/sigqueue.go:131 +0xa7
	os/signal.loop()
		/usr/local/Cellar/go/1.9.2/libexec/src/os/signal/signal_unix.go:22 +0x22
	created by os/signal.init.0
		/usr/local/Cellar/go/1.9.2/libexec/src/os/signal/signal_unix.go:28 +0x41

	goroutine 642 [IO wait]:
	internal/poll.runtime_pollWait(0x2500f00, 0x72, 0x0)
		/usr/local/Cellar/go/1.9.2/libexec/src/runtime/netpoll.go:173 +0x57
	internal/poll.(*pollDesc).wait(0xc4202c2618, 0x72, 0xffffffffffffff00, 0x1f59660, 0x1f4f4f0)
		/usr/local/Cellar/go/1.9.2/libexec/src/internal/poll/fd_poll_runtime.go:85 +0xae
	internal/poll.(*pollDesc).waitRead(0xc4202c2618, 0xc42027a000, 0x1000, 0x1000)
		/usr/local/Cellar/go/1.9.2/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d
	internal/poll.(*FD).Read(0xc4202c2600, 0xc42027a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
		/usr/local/Cellar/go/1.9.2/libexec/src/internal/poll/fd_unix.go:126 +0x18a
	net.(*netFD).Read(0xc4202c2600, 0xc42027a000, 0x1000, 0x1000, 0x1, 0x2, 0xc42050b788)
		/usr/local/Cellar/go/1.9.2/libexec/src/net/fd_unix.go:202 +0x52
	net.(*conn).Read(0xc4201a0068, 0xc42027a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
		/usr/local/Cellar/go/1.9.2/libexec/src/net/net.go:176 +0x6d
	crypto/tls.(*block).readFromUntil(0xc4205c8840, 0x250ebe8, 0xc4201a0068, 0x5, 0xc4201a0068, 0xc4202fc480)
		/usr/local/Cellar/go/1.9.2/libexec/src/crypto/tls/conn.go:488 +0x95
	crypto/tls.(*Conn).readRecord(0xc42004b500, 0x1a8d517, 0xc42004b620, 0x102d7fb)
		/usr/local/Cellar/go/1.9.2/libexec/src/crypto/tls/conn.go:590 +0xe0
	crypto/tls.(*Conn).Read(0xc42004b500, 0xc420292000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
		/usr/local/Cellar/go/1.9.2/libexec/src/crypto/tls/conn.go:1134 +0x110
	net/http.(*persistConn).Read(0xc4200d58c0, 0xc420292000, 0x1000, 0x1000, 0xc42028dfa0, 0xc420294058, 0x1053cb0)
		/usr/local/Cellar/go/1.9.2/libexec/src/net/http/transport.go:1391 +0x140
	bufio.(*Reader).fill(0xc42029cf60)
		/usr/local/Cellar/go/1.9.2/libexec/src/bufio/bufio.go:97 +0x11a
	bufio.(*Reader).Peek(0xc42029cf60, 0x1, 0x0, 0x0, 0x0, 0xc420294360, 0x0)
		/usr/local/Cellar/go/1.9.2/libexec/src/bufio/bufio.go:129 +0x3a
	net/http.(*persistConn).readLoop(0xc4200d58c0)
		/usr/local/Cellar/go/1.9.2/libexec/src/net/http/transport.go:1539 +0x185
	created by net/http.(*Transport).dialConn
		/usr/local/Cellar/go/1.9.2/libexec/src/net/http/transport.go:1186 +0xa2e

	goroutine 643 [select]:
	net/http.(*persistConn).writeLoop(0xc4200d58c0)
		/usr/local/Cellar/go/1.9.2/libexec/src/net/http/transport.go:1759 +0x165
	created by net/http.(*Transport).dialConn
		/usr/local/Cellar/go/1.9.2/libexec/src/net/http/transport.go:1187 +0xa53

	goroutine 666 [chan receive]:
	code.cloudfoundry.org/cli/util/configv3.catchSignal(0xc42029d080, 0xc420256c00, 0x27)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/util/configv3/config.go:261 +0x39
	created by code.cloudfoundry.org/cli/util/configv3.WriteConfig
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/util/configv3/config.go:245 +0x2f1

	goroutine 724 [select]:
	code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).refresher(0xc420122420)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:462 +0x109
	created by code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).Start
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:123 +0xc0

	goroutine 707 [select]:
	code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).refresher(0xc4200a6160)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:462 +0x109
	created by code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).Start
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:123 +0xc0

	goroutine 728 [select, locked to thread]:
	runtime.gopark(0x1a8d4f0, 0x0, 0x1a491a8, 0x6, 0x18, 0x1)
		/usr/local/Cellar/go/1.9.2/libexec/src/runtime/proc.go:287 +0x12c
	runtime.selectgo(0xc420142750, 0xc4202944e0)
		/usr/local/Cellar/go/1.9.2/libexec/src/runtime/select.go:395 +0x1149
	runtime.ensureSigM.func1()
		/usr/local/Cellar/go/1.9.2/libexec/src/runtime/signal_unix.go:511 +0x1fe
	runtime.goexit()
		/usr/local/Cellar/go/1.9.2/libexec/src/runtime/asm_amd64.s:2337 +0x1

	goroutine 663 [select]:
	code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).refresher(0xc420150000)
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:462 +0x109
	created by code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).Start
		/Users/worker/concourse/volumes/live/9f25a4ac-9961-42bd-7328-16fe28719986/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:123 +0xc0
 1.19 MiB / 1.19 MiB [=============================================================================================================================] 100.00%

		Your Platform Details
		e.g. Mac OS X 10.11, Windows 8.1 64-bit, Ubuntu 14.04.3 64-bit

		Shell
		e.g. Terminal, iTerm, Powershell, Cygwin, gnome-terminal, terminator

The environment in question might be a bit broken, but it shouldn't panic in this manner. Here's the debug log around the upload:
DEBU[0003] archive created                               archivePath=/var/folders/qx/dfk6jyx17y54jk5cw7x177gw0000gn/T/cf-cli-589684100
INFO[0003] uploading archive
DEBU[0003] uploading app bits                            appGUID=a463673b-4799-45d4-995f-61ee042e30e7 archiveSize=1247888
INFO[0003] received apply event: creating archive
Packaging files to upload...
INFO[0003] received apply event: uploading application with archive
Uploading files...
DEBU[0003] starting progress bar
 1.19 MiB / 1.19 MiB [=============================================================================================================================] 100.00%ERRO[0004] streaming archive: error seeking a stream on retry: Unexpected Response
Response code: 500
CC code:       0
CC error code:
Request ID:    790a1521-87f2-4214-60b7-3617ee263714::d1d30247-3108-4de1-bcb2-e5e75587111f
Description:   {
  "error_code": "UnknownError",
  "description": "An unknown error occurred.",
  "code": 10001
}
  archivePath=/var/folders/qx/dfk6jyx17y54jk5cw7x177gw0000gn/T/cf-cli-589684100
INFO[0004] received apply event: retry upload
INFO[0004] uploading archive
Retrying upload due to an error...
DEBU[0004] uploading app bits                            appGUID=a463673b-4799-45d4-995f-61ee042e30e7 archiveSize=1247888
INFO[0004] received apply event: uploading application with archive
Uploading files...
DEBU[0004] starting progress bar
 1.19 MiB / 1.19 MiB [=============================================================================================================================] 100.00%ERRO[0005] streaming archive: error seeking a stream on retry: Unexpected Response
Response code: 500
CC code:       0
CC error code:
Request ID:    2d792927-9dc6-4d2e-412c-bfe9339a2be0::efd89028-5562-4c51-9b07-596c33c393bc
Description:   {
  "error_code": "UnknownError",
  "description": "An unknown error occurred.",
  "code": 10001
}
  archivePath=/var/folders/qx/dfk6jyx17y54jk5cw7x177gw0000gn/T/cf-cli-589684100
INFO[0005] received apply event: retry upload
Retrying upload due to an error...
INFO[0005] uploading archive
DEBU[0005] uploading app bits                            appGUID=a463673b-4799-45d4-995f-61ee042e30e7 archiveSize=1247888
INFO[0005] received apply event: uploading application with archive
Uploading files...
DEBU[0005] starting progress bar
 1.19 MiB / 1.19 MiB [=============================================================================================================================] 100.00%ERRO[0006] streaming archive: error seeking a stream on retry: Unexpected Response
Response code: 500
CC code:       0
CC error code:
Request ID:    b7281f52-749f-4e6a-7be6-8d60ab9b93cc::779ffe69-3c4f-4fee-8c45-6f9c4677624d
Description:   {
  "error_code": "UnknownError",
  "description": "An unknown error occurred.",
  "code": 10001
}
  archivePath=/var/folders/qx/dfk6jyx17y54jk5cw7x177gw0000gn/T/cf-cli-589684100
INFO[0006] received apply event: retry upload
Retrying upload due to an error...
ERRO[0006] process apply stream: upload failed

-- Also filed with @XenoPhex

Duplicate issue #1351: When Consul is down, cf push causes a CLI panic
Created: 2018-03-22T23:27:57Z
Command
cf push node3
What occurred
After I deployed cf and then stopped consul, I attempted to push an app. Received the following error output.
		Error
		runtime error: invalid memory address or nil pointer dereference

		Stack Trace
			goroutine 1 [running]:
	code.cloudfoundry.org/cli/util/panichandler.HandlePanic()
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/util/panichandler/handler.go:19 +0x8a
	panic(0x18c8aa0, 0x1fab2c0)
		/usr/local/Cellar/go/1.10/libexec/src/runtime/panic.go:505 +0x229
	code.cloudfoundry.org/cli/command/translatableerror.UploadFailedError.Translate(0x0, 0x0, 0xc420508000, 0x17f0601, 0x25b26e8)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/command/translatableerror/upload_failed_error.go:16 +0x1d2
	code.cloudfoundry.org/cli/util/ui.(*UI).DisplayError(0xc4203ca500, 0x1abd160, 0xc420166d20)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/util/ui/ui.go:174 +0x8b
	main.handleError(0x1abbc80, 0xc420084220, 0x1ac3180, 0xc4203ca500, 0x1abbc80, 0xc420084220)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/main.go:257 +0x9a
	main.executionWrapper(0x2570640, 0x1fd1a18, 0xc4201a28a0, 0x0, 0x2, 0x0, 0x0)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/main.go:216 +0x25e
	code.cloudfoundry.org/cli/vendor/github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc420304060, 0xc4200300d0, 0x2, 0x2, 0x10, 0xc420508400, 0x0, 0x1fc26a0, 0x19ee071)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/vendor/github.com/jessevdk/go-flags/parser.go:314 +0x7c7
	main.parse(0xc4200300d0, 0x2, 0x2, 0xc420046118)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/main.go:52 +0xad
	main.main()
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/main.go:43 +0x82

	goroutine 5 [syscall]:
	os/signal.signal_recv(0x0)
		/usr/local/Cellar/go/1.10/libexec/src/runtime/sigqueue.go:139 +0xa7
	os/signal.loop()
		/usr/local/Cellar/go/1.10/libexec/src/os/signal/signal_unix.go:22 +0x22
	created by os/signal.init.0
		/usr/local/Cellar/go/1.10/libexec/src/os/signal/signal_unix.go:28 +0x41

	goroutine 573 [select]:
	net/http.(*persistConn).writeLoop(0xc420311680)
		/usr/local/Cellar/go/1.10/libexec/src/net/http/transport.go:1822 +0x14b
	created by net/http.(*Transport).dialConn
		/usr/local/Cellar/go/1.10/libexec/src/net/http/transport.go:1238 +0x97f

	goroutine 572 [IO wait]:
	internal/poll.runtime_pollWait(0x25a8ea0, 0x72, 0xc42007f760)
		/usr/local/Cellar/go/1.10/libexec/src/runtime/netpoll.go:173 +0x57
	internal/poll.(*pollDesc).wait(0xc4201b8698, 0x72, 0xffffffffffffff00, 0x1abdce0, 0x1ef0518)
		/usr/local/Cellar/go/1.10/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9b
	internal/poll.(*pollDesc).waitRead(0xc4201b8698, 0xc420668000, 0x800, 0x800)
		/usr/local/Cellar/go/1.10/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d
	internal/poll.(*FD).Read(0xc4201b8680, 0xc420668000, 0x800, 0x800, 0x0, 0x0, 0x0)
		/usr/local/Cellar/go/1.10/libexec/src/internal/poll/fd_unix.go:157 +0x1dc
	net.(*netFD).Read(0xc4201b8680, 0xc420668000, 0x800, 0x800, 0x63, 0xc420204d4e, 0x2)
		/usr/local/Cellar/go/1.10/libexec/src/net/fd_unix.go:202 +0x4f
	net.(*conn).Read(0xc4201ac020, 0xc420668000, 0x800, 0x800, 0x0, 0x0, 0x0)
		/usr/local/Cellar/go/1.10/libexec/src/net/net.go:176 +0x6a
	crypto/tls.(*block).readFromUntil(0xc4204b8000, 0x25707a0, 0xc4201ac020, 0x5, 0xc4201ac020, 0xc42007fa90)
		/usr/local/Cellar/go/1.10/libexec/src/crypto/tls/conn.go:493 +0x96
	crypto/tls.(*Conn).readRecord(0xc4200c4380, 0x1a32317, 0xc4200c44a0, 0x1053720)
		/usr/local/Cellar/go/1.10/libexec/src/crypto/tls/conn.go:595 +0xe0
	crypto/tls.(*Conn).Read(0xc4200c4380, 0xc420301000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
		/usr/local/Cellar/go/1.10/libexec/src/crypto/tls/conn.go:1156 +0x100
	net/http.(*persistConn).Read(0xc420311680, 0xc420301000, 0x1000, 0x1000, 0xc42007fb98, 0x10052f5, 0xc420095020)
		/usr/local/Cellar/go/1.10/libexec/src/net/http/transport.go:1453 +0x136
	bufio.(*Reader).fill(0xc4200a0540)
		/usr/local/Cellar/go/1.10/libexec/src/bufio/bufio.go:100 +0x11e
	bufio.(*Reader).Peek(0xc4200a0540, 0x1, 0x0, 0x0, 0x0, 0xc420047260, 0x0)
		/usr/local/Cellar/go/1.10/libexec/src/bufio/bufio.go:132 +0x3a
	net/http.(*persistConn).readLoop(0xc420311680)
		/usr/local/Cellar/go/1.10/libexec/src/net/http/transport.go:1601 +0x185
	created by net/http.(*Transport).dialConn
		/usr/local/Cellar/go/1.10/libexec/src/net/http/transport.go:1237 +0x95a

	goroutine 675 [select]:
	code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).refresher(0xc42045c000)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:462 +0xf5
	created by code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).Start
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:123 +0xc0

	goroutine 878 [select, locked to thread]:
	runtime.gopark(0x1a32278, 0x0, 0x19ec7cf, 0x6, 0x18, 0x1)
		/usr/local/Cellar/go/1.10/libexec/src/runtime/proc.go:291 +0x11a
	runtime.selectgo(0xc4202cf750, 0xc4205423c0)
		/usr/local/Cellar/go/1.10/libexec/src/runtime/select.go:392 +0xe50
	runtime.ensureSigM.func1()
		/usr/local/Cellar/go/1.10/libexec/src/runtime/signal_unix.go:549 +0x1c6
	runtime.goexit()
		/usr/local/Cellar/go/1.10/libexec/src/runtime/asm_amd64.s:2361 +0x1

	goroutine 879 [chan receive]:
	code.cloudfoundry.org/cli/util/configv3.catchSignal(0xc4205e80c0, 0xc4205f00f0, 0x27)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/util/configv3/write_config.go:56 +0x39
	created by code.cloudfoundry.org/cli/util/configv3.WriteConfig
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/util/configv3/write_config.go:40 +0x2da

	goroutine 866 [select]:
	code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).refresher(0xc4204e06e0)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:462 +0xf5
	created by code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).Start
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:123 +0xc0

	goroutine 685 [select]:
	code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).refresher(0xc4204e0b00)
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:462 +0xf5
	created by code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb%2ev1.(*ProgressBar).Start
		/Users/worker/concourse/volumes/live/7b67f0b0-6f6d-4a1f-740c-1e12c992ccbc/volume/gopath/src/code.cloudfoundry.org/cli/vendor/gopkg.in/cheggaaa/pb.v1/pb.go:123 +0xc0

What you expected to occur
cf push to fail with an normal error response, not a stack trace
CLI Version
6.35.2+88a03e995.2018-03-15
CC API Endpoint Version
2.105.0
CF Trace
RESPONSE: [2018-03-22T16:22:43-07:00]
HTTP/1.1 500 Internal Server Error
Alt-Svc: clear
Content-Length: 99
Content-Type: application/json;charset=utf-8
Date: Thu, 22 Mar 2018 23:22:43 GMT
Server: nginx
Via: 1.1 google
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: 921b3f30-2a33-46df-4aca-c08d6e7ea10a::a6d8e066-c24a-42ed-bb10-891bdcc6432c
{
"code": 10001,
"description": "An unknown error occurred.",
"error_code": "UnknownError"
}
Retrying upload due to an error...
Uploading files...
0 B / 623 B [---------------------------------------------------------------------------------------------------------------------------------------]   0.00%REQUEST: [2018-03-22T16:22:43-07:00]
PUT /v2/apps/739580b7-e468-4da1-83b0-dca904c2f104/bits?async=true HTTP/1.1
Host: api.hagrid.cf-app.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: multipart/form-data; boundary=aecb5d740af462e254aa71ed7508f3e0fe91e7b38c24ea6b92c6acb3c873
User-Agent: cf/6.35.2+88a03e995.2018-03-15 (go1.10; amd64 darwin)
[multipart/form-data Content Hidden]
623 B / 623 B [=====================================================================================================================================] 100.00%RESPONSE: [2018-03-22T16:22:43-07:00]
HTTP/1.1 500 Internal Server Error
Alt-Svc: clear
Content-Length: 99
Content-Type: application/json;charset=utf-8
Date: Thu, 22 Mar 2018 23:22:43 GMT
Server: nginx
Via: 1.1 google
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: da47b6cc-97c1-43d0-65bd-d45f454f1763::ca9d064b-8e30-4109-b4ce-f5783bfc0b16
{
"code": 10001,
"description": "An unknown error occurred.",
"error_code": "UnknownError"
}
Platform & Shell Details
Mac OS X 10.13.3
iTerm 3.1.5.beta.2
Any other relevant information
Environment deploy command
bosh deploy ../cf-deployment/cf-deployment.yml -o ../cf-deployment/operations/scale-to-one-az.yml -o ../cf-deployment/operations/experimental/fast-deploy-with-downtime-and-danger.yml -o ../cf-deployment/operations/use-compiled-releases.yml -v system_domain=hagrid.cf-app.com --vars-store vars-store/deployment-vars.yml
followed by
bosh stop consul

Closing comment (2018-03-23T16:52:30Z): Dupe of #1340.