Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic: error uploading files #487

Closed
joelfgs opened this issue Jul 21, 2015 · 13 comments
Closed

Panic: error uploading files #487

joelfgs opened this issue Jul 21, 2015 · 13 comments

Comments

@joelfgs
Copy link

joelfgs commented Jul 21, 2015

Related to #317 perhaps. When uploading on OSX it threw the error below and seemed to get stuck. Here's the go env:

% go env                                                                                                                                                      (git)-[master] 
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/myhome/gocode"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

Here's the error:

(56 of 28831 files) 1.12 MB                                                                                                                                                                              Username for 'https://github.com': Username for 'https://github.com': Username for 'https://github.com': panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x947eb]

goroutine 29 [running]:
runtime.panic(0x36e220, 0x5b4984)
    /opt/boxen/chgo/versions/1.3/src/pkg/runtime/panic.c:279 +0xf5
io/ioutil.devNull.ReadFrom(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/io/ioutil/ioutil.go:151 +0xab
io.Copy(0x680418, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/io/io.go:349 +0x13d
github.com/github/git-lfs/lfs.UploadObject(0xc209d65a40, 0xc209e2c2d0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:341 +0xace
github.com/github/git-lfs/lfs.(*Uploadable).Transfer(0xc209a8d140, 0xc209816d20, 0x39)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/upload_queue.go:47 +0x72
github.com/github/git-lfs/lfs.func·018()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:241 +0x19f
created by github.com/github/git-lfs/lfs.(*TransferQueue).Process
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:254 +0x276

goroutine 16 [chan receive, 1 minutes]:
github.com/github/git-lfs/lfs.(*TransferQueue).processIndividual(0xc2097cb550)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:124 +0x4bf
github.com/github/git-lfs/lfs.(*TransferQueue).Process(0xc2097cb550)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:262 +0x3e4
github.com/github/git-lfs/commands.prePushCommand(0x5b2220, 0xc208044840, 0x2, 0x2)
    /Users/rick/go/src/github.com/github/git-lfs/commands/command_pre_push.go:95 +0x49f
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).execute(0x5b2220, 0xc208044820, 0x2, 0x2, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:355 +0x17c
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).findAndExecute(0x5b2a20, 0xc20800e010, 0x3, 0x3, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:334 +0xd3
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).Execute(0x5b2a20, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:408 +0x7b0
github.com/github/git-lfs/commands.Run()
    /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:81 +0x2a
main.main()
    /Users/rick/go/src/github.com/github/git-lfs/git-lfs.go:9 +0x1a

goroutine 19 [finalizer wait]:
runtime.park(0x14270, 0x5b7f50, 0x5b6a49)
    /opt/boxen/chgo/versions/1.3/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x5b7f50, 0x5b6a49)
    /opt/boxen/chgo/versions/1.3/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /opt/boxen/chgo/versions/1.3/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /opt/boxen/chgo/versions/1.3/src/pkg/runtime/proc.c:1445

goroutine 30 [select]:
net/http.(*persistConn).roundTrip(0xc20a2514a0, 0xc209e2d4d0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:1015 +0x6db
net/http.(*Transport).RoundTrip(0xc209a0fb80, 0xc209e185b0, 0x12844a0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:208 +0x49a
net/http.send(0xc209e185b0, 0x6805c0, 0xc209a0fb80, 0xc209d5a700, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:195 +0x43d
net/http.(*Client).send(0xc209bed320, 0xc209e185b0, 0x96, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:118 +0x15b
net/http.(*Client).doFollowingRedirects(0xc209bed320, 0xc209e185b0, 0x46bf58, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:343 +0x97f
net/http.(*Client).Do(0xc209bed320, 0xc209e185b0, 0x5b9900, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:153 +0x193
github.com/github/git-lfs/lfs.(*HttpClient).Do(0xc20803c120, 0xc209e185b0, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/http.go:65 +0x153
github.com/github/git-lfs/lfs.DoHTTP(0xc209e185b0, 0xc209817c20, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/http.go:102 +0x54
github.com/github/git-lfs/lfs.doHttpRequest(0xc209e185b0, 0x0, 0x5b87d0, 0x6d9d88)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:348 +0x32
github.com/github/git-lfs/lfs.UploadObject(0xc209d51860, 0xc209e2d3c0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:309 +0x464
github.com/github/git-lfs/lfs.(*Uploadable).Transfer(0xc209a5c740, 0xc209817b60, 0x3b)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/upload_queue.go:47 +0x72
github.com/github/git-lfs/lfs.func·018()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:241 +0x19f
created by github.com/github/git-lfs/lfs.(*TransferQueue).Process
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:254 +0x276

goroutine 28 [chan receive]:
github.com/github/git-lfs/lfs.func·016()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:214 +0xe4
created by github.com/github/git-lfs/lfs.(*TransferQueue).Process
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:222 +0x156

goroutine 26 [chan receive, 1 minutes]:
github.com/github/git-lfs/lfs.func·014()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:182 +0x60
created by github.com/github/git-lfs/lfs.(*TransferQueue).Process
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:185 +0xb8

goroutine 215 [select]:
net/http.(*persistConn).writeLoop(0xc20a2514a0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:601 +0x957

goroutine 31 [select]:
net/http.(*persistConn).roundTrip(0xc20a1811e0, 0xc209dfa3c0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:1015 +0x6db
net/http.(*Transport).RoundTrip(0xc209a0fb80, 0xc209e18a90, 0x12a3e00, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:208 +0x49a
net/http.send(0xc209e18a90, 0x6805c0, 0xc209a0fb80, 0xc2092631d0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:195 +0x43d
net/http.(*Client).send(0xc209bed320, 0xc209e18a90, 0x7c, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:118 +0x15b
net/http.(*Client).doFollowingRedirects(0xc209bed320, 0xc209e18a90, 0x46bf58, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:343 +0x97f
net/http.(*Client).Do(0xc209bed320, 0xc209e18a90, 0x5b9900, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/client.go:153 +0x193
github.com/github/git-lfs/lfs.(*HttpClient).Do(0xc20803c120, 0xc209e18a90, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/http.go:65 +0x153
github.com/github/git-lfs/lfs.DoHTTP(0xc209e18a90, 0xc2097e37d0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/http.go:102 +0x54
github.com/github/git-lfs/lfs.doHttpRequest(0xc209e18a90, 0x0, 0x5b87d0, 0x12e1d88)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:348 +0x32
github.com/github/git-lfs/lfs.UploadObject(0xc209d50900, 0xc209e2ca20, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:338 +0xa3f
github.com/github/git-lfs/lfs.(*Uploadable).Transfer(0xc2089c48c0, 0xc2098170e0, 0x3a)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/upload_queue.go:47 +0x72
github.com/github/git-lfs/lfs.func·018()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:241 +0x19f
created by github.com/github/git-lfs/lfs.(*TransferQueue).Process
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:254 +0x276

goroutine 32 [syscall]:
syscall.Syscall6(0x7, 0x13102, 0x12ff66c, 0x0, 0xc208d96240, 0x0, 0x0, 0xc20a18ab40, 0x6d3fa0, 0xc208d96240)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0x13102, 0x12ff66c, 0x0, 0xc208d96240, 0x24c4b, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/zsyscall_darwin_amd64.go:32 +0x7d
syscall.Wait4(0x13102, 0x12ff6b4, 0x0, 0xc208d96240, 0xc209580a20, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/syscall_bsd.go:129 +0x64
os.(*Process).wait(0xc209580a20, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec_unix.go:22 +0xfe
os.(*Process).Wait(0xc209580a20, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/doc.go:45 +0x39
os/exec.(*Cmd).Wait(0xc20a239900, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:357 +0x1db
github.com/github/git-lfs/lfs.func·002(0xc2097e3f50, 0x3bd320, 0x4, 0x0, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/credentials.go:90 +0xc4
github.com/github/git-lfs/lfs.credentials(0xc208b733b0, 0xa, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/credentials.go:21 +0x148
github.com/github/git-lfs/lfs.getCreds(0xc209e18d00, 0x3ccdb0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:593 +0x445
github.com/github/git-lfs/lfs.newClientRequest(0x3b7f40, 0x4, 0xc209e4e640, 0x39, 0xc208052f45, 0x15, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:562 +0x10a
github.com/github/git-lfs/lfs.newApiRequest(0x3b7f40, 0x4, 0xc20919ac3f, 0x40, 0xc0, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:540 +0x3ee
github.com/github/git-lfs/lfs.UploadCheck(0xc20919ac00, 0x7f, 0xc208044001, 0x12fff20)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:243 +0x24a
github.com/github/git-lfs/lfs.(*Uploadable).Check(0xc208e8bc40, 0xc200000001, 0x12fff80)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/upload_queue.go:38 +0x38
github.com/github/git-lfs/lfs.func·012()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:89 +0x190
created by github.com/github/git-lfs/lfs.(*TransferQueue).processIndividual
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:102 +0x14d

goroutine 33 [syscall]:
syscall.Syscall6(0x7, 0x1310b, 0x12fd66c, 0x0, 0xc208d96360, 0x0, 0x0, 0xc20871dd40, 0x2a01fa0, 0xc208d96360)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0x1310b, 0x12fd66c, 0x0, 0xc208d96360, 0x24c4b, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/zsyscall_darwin_amd64.go:32 +0x7d
syscall.Wait4(0x1310b, 0x12fd6b4, 0x0, 0xc208d96360, 0xc209580ee0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/syscall_bsd.go:129 +0x64
os.(*Process).wait(0xc209580ee0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec_unix.go:22 +0xfe
os.(*Process).Wait(0xc209580ee0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/doc.go:45 +0x39
os/exec.(*Cmd).Wait(0xc20a239a40, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:357 +0x1db
github.com/github/git-lfs/lfs.func·002(0xc20978c360, 0x3bd320, 0x4, 0x0, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/credentials.go:90 +0xc4
github.com/github/git-lfs/lfs.credentials(0xc208dffb20, 0xa, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/credentials.go:21 +0x148
github.com/github/git-lfs/lfs.getCreds(0xc209e18dd0, 0x3ccdb0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:593 +0x445
github.com/github/git-lfs/lfs.newClientRequest(0x3b7f40, 0x4, 0xc209e466c0, 0x39, 0xc208052f45, 0x15, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:562 +0x10a
github.com/github/git-lfs/lfs.newApiRequest(0x3b7f40, 0x4, 0xc2095cdbbf, 0x40, 0xc0, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:540 +0x3ee
github.com/github/git-lfs/lfs.UploadCheck(0xc2095cdb80, 0x7f, 0xc208044001, 0x12fdf20)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:243 +0x24a
github.com/github/git-lfs/lfs.(*Uploadable).Check(0xc2095d2480, 0xc200000001, 0x12fdf80)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/upload_queue.go:38 +0x38
github.com/github/git-lfs/lfs.func·012()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:89 +0x190
created by github.com/github/git-lfs/lfs.(*TransferQueue).processIndividual
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:102 +0x14d

goroutine 34 [syscall]:
syscall.Syscall6(0x7, 0x13101, 0x12fb66c, 0x0, 0xc208d96120, 0x0, 0x0, 0xc20a18b200, 0x157efa0, 0xc208d96120)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0x13101, 0x12fb66c, 0x0, 0xc208d96120, 0x24c4b, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/zsyscall_darwin_amd64.go:32 +0x7d
syscall.Wait4(0x13101, 0x12fb6b4, 0x0, 0xc208d96120, 0xc209580580, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/syscall_bsd.go:129 +0x64
os.(*Process).wait(0xc209580580, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec_unix.go:22 +0xfe
os.(*Process).Wait(0xc209580580, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/doc.go:45 +0x39
os/exec.(*Cmd).Wait(0xc20a2397c0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:357 +0x1db
github.com/github/git-lfs/lfs.func·002(0xc2097e3b30, 0x3bd320, 0x4, 0x0, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/credentials.go:90 +0xc4
github.com/github/git-lfs/lfs.credentials(0xc208b730a0, 0xa, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/credentials.go:21 +0x148
github.com/github/git-lfs/lfs.getCreds(0xc209e18c30, 0x3ccdb0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:593 +0x445
github.com/github/git-lfs/lfs.newClientRequest(0x3b7f40, 0x4, 0xc209e4e2c0, 0x39, 0xc208052f45, 0x15, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:562 +0x10a
github.com/github/git-lfs/lfs.newApiRequest(0x3b7f40, 0x4, 0xc2099a473f, 0x40, 0xc0, 0x0, 0x0, 0x0)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:540 +0x3ee
github.com/github/git-lfs/lfs.UploadCheck(0xc2099a4700, 0x7f, 0xc208044001, 0x12fbf20)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/client.go:243 +0x24a
github.com/github/git-lfs/lfs.(*Uploadable).Check(0xc2090bb500, 0xc200000001, 0x12fbf80)
    /Users/rick/go/src/github.com/github/git-lfs/lfs/upload_queue.go:38 +0x38
github.com/github/git-lfs/lfs.func·012()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:89 +0x190
created by github.com/github/git-lfs/lfs.(*TransferQueue).processIndividual
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:102 +0x14d

goroutine 35 [select]:
github.com/github/git-lfs/vendor/_nuts/github.com/cheggaaa/pb.(*ProgressBar).writer(0xc20802c100)
    /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/cheggaaa/pb/pb.go:334 +0xd6
created by github.com/github/git-lfs/vendor/_nuts/github.com/cheggaaa/pb.(*ProgressBar).Start
    /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/cheggaaa/pb/pb.go:103 +0x77

goroutine 36 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc208038878)
    /private/tmp/makerelease410820896/go/src/pkg/runtime/sema.goc:199 +0x30
sync.(*WaitGroup).Wait(0xc208044020)
    /opt/boxen/chgo/versions/1.3/src/pkg/sync/waitgroup.go:129 +0x14b
github.com/github/git-lfs/lfs.func·013()
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:114 +0x2f
created by github.com/github/git-lfs/lfs.(*TransferQueue).processIndividual
    /Users/rick/go/src/github.com/github/git-lfs/lfs/transfer_queue.go:116 +0x3d5

goroutine 250 [IO wait]:
net.runtime_pollWait(0x12a9318, 0x72, 0x0)
    /private/tmp/makerelease410820896/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc2090e76b0, 0x72, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc2090e76b0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc2090e7650, 0xc2095a4800, 0x400, 0x400, 0x0, 0x6803c8, 0x23)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_unix.go:232 +0x34c
net.(*conn).Read(0xc20803dc28, 0xc2095a4800, 0x400, 0x400, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/net.go:122 +0xe7
crypto/tls.(*block).readFromUntil(0xc2097e2420, 0x12a93f0, 0xc20803dc28, 0x5, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:451 +0xd9
crypto/tls.(*Conn).readRecord(0xc20846fb80, 0x17, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:536 +0x1ff
crypto/tls.(*Conn).Read(0xc20846fb80, 0xc209e04000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:901 +0x16a
net/http.noteEOFReader.Read(0x12aa330, 0xc20846fb80, 0xc20a181c88, 0xc209e04000, 0x1000, 0x1000, 0x157cda0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:1203 +0x72
net/http.(*noteEOFReader).Read(0xc209580040, 0xc209e04000, 0x1000, 0x1000, 0xc208001680, 0x0, 0x0)
    <autogenerated>:124 +0xca
bufio.(*Reader).fill(0xc2085f3b00)
    /opt/boxen/chgo/versions/1.3/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Peek(0xc2085f3b00, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/bufio/bufio.go:132 +0x101
net/http.(*persistConn).readLoop(0xc20a181c30)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:782 +0x95
created by net/http.(*Transport).dialConn
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:600 +0x93f

goroutine 251 [select]:
net/http.(*persistConn).writeLoop(0xc20a181c30)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:601 +0x957

goroutine 33 [syscall, 1 minutes]:
runtime.goexit()
    /opt/boxen/chgo/versions/1.3/src/pkg/runtime/proc.c:1445

goroutine 255 [syscall]:
syscall.Syscall(0x3, 0x15, 0xc20a1d3e00, 0x200, 0x1f, 0xc20a1d3e00, 0x12a6b80)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x15, 0xc20a1d3e00, 0x200, 0x200, 0x2bb741, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/zsyscall_darwin_amd64.go:952 +0x75
syscall.Read(0x15, 0xc20a1d3e00, 0x200, 0x200, 0xf9b4, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/syscall_unix.go:136 +0x5c
os.(*File).read(0xc20803dd28, 0xc20a1d3e00, 0x200, 0x200, 0x2abf60, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/file_unix.go:190 +0x89
os.(*File).Read(0xc20803dd28, 0xc20a1d3e00, 0x200, 0x200, 0x67c418, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/file.go:95 +0x98
bytes.(*Buffer).ReadFrom(0xc208b73490, 0x680870, 0xc20803dd28, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/bytes/buffer.go:169 +0x20e
io.Copy(0x6806c0, 0xc208b73490, 0x680870, 0xc20803dd28, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/io/io.go:349 +0x13d
os/exec.func·003(0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:214 +0x7e
os/exec.func·004(0xc209580720)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:321 +0x2c
created by os/exec.(*Cmd).Start
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:322 +0x931

goroutine 75 [IO wait]:
net.runtime_pollWait(0x12a8fa8, 0x72, 0x0)
    /private/tmp/makerelease410820896/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc209697a30, 0x72, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc209697a30, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc2096979d0, 0xc20a254400, 0x400, 0x400, 0x0, 0x6803c8, 0x23)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_unix.go:232 +0x34c
net.(*conn).Read(0xc20803c5f8, 0xc20a254400, 0x400, 0x400, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/net.go:122 +0xe7
crypto/tls.(*block).readFromUntil(0xc209322ed0, 0x12a93f0, 0xc20803c5f8, 0x5, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:451 +0xd9
crypto/tls.(*Conn).readRecord(0xc20a2182c0, 0x17, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:536 +0x1ff
crypto/tls.(*Conn).Read(0xc20a2182c0, 0xc20a273000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:901 +0x16a
net/http.noteEOFReader.Read(0x12aa330, 0xc20a2182c0, 0xc20a2501b8, 0xc20a273000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:1203 +0x72
net/http.(*noteEOFReader).Read(0xc20a2707a0, 0xc20a273000, 0x1000, 0x1000, 0xc208de9490, 0x0, 0x0)
    <autogenerated>:124 +0xca
bufio.(*Reader).fill(0xc209d33560)
    /opt/boxen/chgo/versions/1.3/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Peek(0xc209d33560, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/bufio/bufio.go:132 +0x101
net/http.(*persistConn).readLoop(0xc20a250160)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:782 +0x95
created by net/http.(*Transport).dialConn
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:600 +0x93f

goroutine 253 [syscall]:
syscall.Syscall(0x3, 0x16, 0xc20a1d3c00, 0x200, 0x21, 0xc20a1d3c00, 0x12a6b80)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x16, 0xc20a1d3c00, 0x200, 0x200, 0x2bb741, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/zsyscall_darwin_amd64.go:952 +0x75
syscall.Read(0x16, 0xc20a1d3c00, 0x200, 0x200, 0xf9b4, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/syscall_unix.go:136 +0x5c
os.(*File).read(0xc20803dcc8, 0xc20a1d3c00, 0x200, 0x200, 0x2abf60, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/file_unix.go:190 +0x89
os.(*File).Read(0xc20803dcc8, 0xc20a1d3c00, 0x200, 0x200, 0xf4422, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/file.go:95 +0x98
bytes.(*Buffer).ReadFrom(0xc208b73180, 0x680870, 0xc20803dcc8, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/bytes/buffer.go:169 +0x20e
io.Copy(0x6806c0, 0xc208b73180, 0x680870, 0xc20803dcc8, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/io/io.go:349 +0x13d
os/exec.func·003(0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:214 +0x7e
os/exec.func·004(0xc209580240)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:321 +0x2c
created by os/exec.(*Cmd).Start
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:322 +0x931

goroutine 244 [select]:
net/http.(*persistConn).writeLoop(0xc20a1811e0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:601 +0x957

goroutine 243 [IO wait]:
net.runtime_pollWait(0x12a9268, 0x72, 0x0)
    /private/tmp/makerelease410820896/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc208e573a0, 0x72, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc208e573a0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc208e57340, 0xc209d88c00, 0x400, 0x400, 0x0, 0x6803c8, 0x23)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_unix.go:232 +0x34c
net.(*conn).Read(0xc20803d9d0, 0xc209d88c00, 0x400, 0x400, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/net.go:122 +0xe7
crypto/tls.(*block).readFromUntil(0xc20981f710, 0x12a93f0, 0xc20803d9d0, 0x5, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:451 +0xd9
crypto/tls.(*Conn).readRecord(0xc20846f600, 0x17, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:536 +0x1ff
crypto/tls.(*Conn).Read(0xc20846f600, 0xc209e3f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
net/http.(*persistConn).writeLoop(0xc20a250160)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:601 +0x957

goroutine 214 [IO wait]:
net.runtime_pollWait(0x12a9108, 0x72, 0x0)
    /private/tmp/makerelease410820896/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc208d04b50, 0x72, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc208d04b50, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc208d04af0, 0xc20a255000, 0x400, 0x400, 0x0, 0x6803c8, 0x23)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/fd_unix.go:232 +0x34c
net.(*conn).Read(0xc20803d570, 0xc20a255000, 0x400, 0x400, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/net.go:122 +0xe7
crypto/tls.(*block).readFromUntil(0xc209952f60, 0x12a93f0, 0xc20803d570, 0x5, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:451 +0xd9
crypto/tls.(*Conn).readRecord(0xc20a218840, 0x17, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:536 +0x1ff
crypto/tls.(*Conn).Read(0xc20a218840, 0xc20a459000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/crypto/tls/conn.go:901 +0x16a
net/http.noteEOFReader.Read(0x12aa330, 0xc20a218840, 0xc20a2514f8, 0xc20a459000, 0x1000, 0x1000, 0xc2084e1500, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:1203 +0x72
net/http.(*noteEOFReader).Read(0xc20a2375a0, 0xc20a459000, 0x1000, 0x1000, 0xc208de9498, 0x0, 0x0)
    <autogenerated>:124 +0xca
bufio.(*Reader).fill(0xc209d332c0)
    /opt/boxen/chgo/versions/1.3/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Peek(0xc209d332c0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/bufio/bufio.go:132 +0x101
net/http.(*persistConn).readLoop(0xc20a2514a0)
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:782 +0x95
created by net/http.(*Transport).dialConn
    /opt/boxen/chgo/versions/1.3/src/pkg/net/http/transport.go:600 +0x93f

goroutine 257 [syscall]:
syscall.Syscall(0x3, 0x14, 0xc209dd4000, 0x200, 0x1f, 0xc209dd4000, 0x12a1680)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x14, 0xc209dd4000, 0x200, 0x200, 0x2bb741, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/zsyscall_darwin_amd64.go:952 +0x75
syscall.Read(0x14, 0xc209dd4000, 0x200, 0x200, 0xf9b4, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/syscall/syscall_unix.go:136 +0x5c
os.(*File).read(0xc20803dd88, 0xc209dd4000, 0x200, 0x200, 0x2abf60, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/file_unix.go:190 +0x89
os.(*File).Read(0xc20803dd88, 0xc209dd4000, 0x200, 0x200, 0x67c418, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/file.go:95 +0x98
bytes.(*Buffer).ReadFrom(0xc208dffc00, 0x680870, 0xc20803dd88, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/bytes/buffer.go:169 +0x20e
io.Copy(0x6806c0, 0xc208dffc00, 0x680870, 0xc20803dd88, 0x0, 0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/io/io.go:349 +0x13d
os/exec.func·003(0x0, 0x0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:214 +0x7e
os/exec.func·004(0xc209580ba0)
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:321 +0x2c
created by os/exec.(*Cmd).Start
    /opt/boxen/chgo/versions/1.3/src/pkg/os/exec/exec.go:322 +0x931
error: failed to push some refs to 'git@github.com:XXXXX/YYYYYYYY.git'
@technoweenie
Copy link
Contributor

What version of Git LFS? git lfs env

@joelfgs
Copy link
Author

joelfgs commented Jul 21, 2015

git-lfs/0.5.2 (GitHub; darwin amd64; go 1.3)
git version 1.9.3 (Apple Git-50)

ConcurrentTransfers=3
BatchTransfer=false

@technoweenie
Copy link
Contributor

Ah, this was reported in #317. I thought it'd be taken care of by v0.5.2, but apparently that's not the case. Is it happening every time you try to push?

@technoweenie
Copy link
Contributor

Based on your go env, it looks like you at least have Go installed. Would you be comfortable trying this out on a custom build? If not, I can throw a build somewhere for you to download.

@joelfgs
Copy link
Author

joelfgs commented Jul 21, 2015

No it isn't happening every time. I'm currently uploading a large set of large files and it's been working fine for the first 7,000 of them, this time around.

I haven't worked much with go or the go development/build toolset (I installed it to try out a different git large file tool a while ago) but could probably find my way to a custom build - or am happy to grab a build from somewhere if that's just as easy.

@technoweenie
Copy link
Contributor

Ok try this. If compiling this doesn't work, don't spend any time troubleshooting that part unless you care about having a functioning Go setup. I'd be happy to help if that's the case.

# gets the dir that git-lfs is installed in
$ git_lfs_dir="$(dirname `which git-lfs`)"

$ git clone https://github.com/github/git-lfs
$ cd git-lfs
$ git checkout -t origin/http-nil-res-body
$ script/bootstrap && cp bin/git-lfs "$git_lfs_dir"

@joelfgs
Copy link
Author

joelfgs commented Jul 22, 2015

The bootstrap script is failing with:

can't load package: package github.com/github/git-lfs/commands: cannot find package "github.com/github/git-lfs/commands" in any of:
    /usr/local/go/src/github.com/github/git-lfs/commands (from $GOROOT)
    /Users/myhomedir/gocode/src/github.com/github/git-lfs/commands (from $GOPATH)
can't load package: package github.com/github/git-lfs/lfs: cannot find package "github.com/github/git-lfs/lfs" in any of:
    /usr/local/go/src/github.com/github/git-lfs/lfs (from $GOROOT)
    /Users/myhomedir/gocode/src/github.com/github/git-lfs/lfs (from $GOPATH)
script/build.go:13:2: cannot find package "github.com/github/git-lfs/lfs" in any of:
    /usr/local/go/src/github.com/github/git-lfs/lfs (from $GOROOT)
    /Users/myhomedir/gocode/src/github.com/github/git-lfs/lfs (from $GOPATH)

@joelfgs
Copy link
Author

joelfgs commented Jul 22, 2015

I'm also running into another error. Yesterday evening the push of a large file set failed (our internet connection may have dropped), producing this error:

> git-lfs pre-push origin git@github.com:XXXXXX/YYYYYY.git
LocalWorkingDir=/Users/myhomedir/git-cleanup/YYYYYY-new
LocalGitDir=/Users/myhomedir/git-cleanup/YYYYYY-new/.git
LocalMediaDir=/Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/objects
TempDir=/Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/tmp
ConcurrentTransfers=3
BatchTransfer=false
GIT_PREFIX=

Error for PUT https://github-cloud.s3.amazonaws.com/alambic/media/ID_AND_FILE_HASH_AND_ACTOR_ID
...5 more of the same...
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects
Error for PUT https://github-cloud.s3.amazonaws.com/alambic/media/ID_AND_FILE_HASH_AND_ACTOR_ID
...15 more of the same...

Put https://github-cloud.s3.amazonaws.com/alambic/media/ID_AND_FILE_HASH_AND_ACTOR_ID: EOF
goroutine 16 [running]:
github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/lfs/errors.go:85 +0x89
github.com/github/git-lfs/commands.logPanicToWriter(0x680318, 0xc20b0f0cb8, 0x12cc5b8, 0xc20a644e10)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:161 +0x832
github.com/github/git-lfs/commands.logPanic(0x12cc5b8, 0xc20a644e10, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:134 +0x387
github.com/github/git-lfs/commands.handlePanic(0x12cc5b8, 0xc20a644e10, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:109 +0x67
github.com/github/git-lfs/commands.LoggedError(0x12cc5b8, 0xc20a644e10, 0xc20e7f2580, 0xa4, 0x0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:66 +0x89
github.com/github/git-lfs/commands.prePushCommand(0x5b2220, 0xc20802c960, 0x2, 0x2)
        /Users/rick/go/src/github.com/github/git-lfs/commands/command_pre_push.go:98 +0x63f
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).execute(0x5b2220, 0xc20802c940, 0x2, 0x2, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:355 +0x17c
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).findAndExecute(0x5b2a20, 0xc20800e010, 0x3, 0x3, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:334 +0xd3
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).Execute(0x5b2a20, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:408 +0x7b0
github.com/github/git-lfs/commands.Run()
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:81 +0x2a
main.main()
        /Users/rick/go/src/github.com/github/git-lfs/git-lfs.go:9 +0x1a

And now when I try to push it stalls before it can upload the first one and eventually produces this error:

> git-lfs pre-push origin git@github.com:XXXXXX/YYYYYY.git
LocalWorkingDir=/Users/myhomedir/git-cleanup/YYYYYY-new
LocalGitDir=/Users/myhomedir/git-cleanup/YYYYYY-new/.git
LocalMediaDir=/Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/objects
TempDir=/Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/tmp
ConcurrentTransfers=3
BatchTransfer=false
GIT_PREFIX=

Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects

Post https://api.github.com/lfs/XXXXXX/YYYYYY/objects: EOF
goroutine 16 [running]:
github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/lfs/errors.go:85 +0x89
github.com/github/git-lfs/commands.logPanicToWriter(0x680318, 0xc2085853f8, 0x12d4458, 0xc2092a06f0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:161 +0x832
github.com/github/git-lfs/commands.logPanic(0x12d4458, 0xc2092a06f0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:134 +0x387
github.com/github/git-lfs/commands.handlePanic(0x12d4458, 0xc2092a06f0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:109 +0x67
github.com/github/git-lfs/commands.LoggedError(0x12d4458, 0xc2092a06f0, 0xc20926aeb0, 0x43, 0x0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:66 +0x89
github.com/github/git-lfs/commands.prePushCommand(0x5b2220, 0xc208044840, 0x2, 0x2)
        /Users/rick/go/src/github.com/github/git-lfs/commands/command_pre_push.go:98 +0x63f
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).execute(0x5b2220, 0xc208044820, 0x2, 0x2, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:355 +0x17c
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).findAndExecute(0x5b2a20, 0xc20800e010, 0x3, 0x3, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:334 +0xd3
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).Execute(0x5b2a20, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:408 +0x7b0
github.com/github/git-lfs/commands.Run()
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:81 +0x2a
main.main()
        /Users/rick/go/src/github.com/github/git-lfs/git-lfs.go:9 +0x1a

@joelfgs
Copy link
Author

joelfgs commented Jul 23, 2015

More details related to the issue in the previous comment. While running git push seems to stall, displaying only (0 of XXXX files) 0B, watching the active processes shows that something is going on.

% ps axwwww | grep git
23080 s006  S+     0:00.01 /Applications/Xcode.app/Contents/Developer/usr/bin/git push
23081 s006  S+     0:00.02 ssh git@github.com git-receive-pack 'XXXXXX/YYYYYY.git'
23084 s006  S+     0:00.00 /bin/sh .git/hooks/pre-push origin git@github.com:XXXXXX/YYYYYY.git
23085 s006  S+     0:00.00 git lfs pre-push origin git@github.com:XXXXXX/YYYYYY.git
23086 s006  S+     0:01.29 git-lfs pre-push origin git@github.com:XXXXXX/YYYYYY.git
23087 s006  Z+     0:00.00 (git)
23088 s006  Z+     0:00.00 (git)
23089 s006  Z+     0:00.00 (git)
23251 s006  S+     0:00.01 ssh git@github.com git-lfs-authenticate XXXXXX/YYYYYY.git upload a58be643345a8c33830f06d628af02a82fd6a6c8d7b72e7ba2c2b93c12c25b65
23252 s006  S+     0:00.01 ssh git@github.com git-lfs-authenticate XXXXXX/YYYYYY.git upload 543dcec30f01b675f7b0bb97d1a0ef6c99940b33e9cd2c04ac18c6180cc3481a
23254 s007  R+     0:00.00 grep git
% ps axwwww | grep git
23080 s006  S+     0:00.01 /Applications/Xcode.app/Contents/Developer/usr/bin/git push
23081 s006  S+     0:00.02 ssh git@github.com git-receive-pack 'XXXXXX/YYYYYY.git'
23084 s006  S+     0:00.00 /bin/sh .git/hooks/pre-push origin git@github.com:XXXXXX/YYYYYY.git
23085 s006  S+     0:00.00 git lfs pre-push origin git@github.com:XXXXXX/YYYYYY.git
23086 s006  S+     0:01.35 git-lfs pre-push origin git@github.com:XXXXXX/YYYYYY.git
23087 s006  Z+     0:00.00 (git)
23088 s006  Z+     0:00.00 (git)
23089 s006  Z+     0:00.00 (git)
23279 s006  S+     0:00.02 ssh git@github.com git-lfs-authenticate XXXXXX/YYYYYY.git upload 71179ce1e4a050b462b5b7caf79fb800b85dd918df77e43aa65cbae047ddab36
23280 s006  S+     0:00.02 ssh git@github.com git-lfs-authenticate XXXXXX/YYYYYY.git upload c936ab96aac6219e1f1b974c4e77f733514c3f15d93cde45e612c0bb53ed068b
23281 s006  S+     0:00.01 ssh git@github.com git-lfs-authenticate XXXXXX/YYYYYY.git upload f9fdb5e28d681c21838ea470317ed6f7f049d02209b422f58068216003a832c1
23283 s007  S+     0:00.00 grep git

and subsequent checks show that the ssh commands executing git-lfs-authenticate commence through whatever list it is going through.

@technoweenie
Copy link
Contributor

@joelfgs Try this: https://github.com/github/git-lfs/releases/download/v0.5.1-tracing/git-lfs.zip

This is what I'm using to QA stuff for the release. It should fix the original panic that you experienced for good.

$ git lfs env
git-lfs/0.5.3 (GitHub; darwin amd64; go 1.3)
git version 2.3.0

For your second error, can you run git lfs fsck? That will tell you if any of your files in .git/lfs/objects are corrupt.

Is the problem still happening after your internet connection was restored? Also, try adding GIT_TRACE to any git commands to get more info while it's pushing:

$ GIT_TRACE=1 git push origin master

@joelfgs
Copy link
Author

joelfgs commented Jul 24, 2015

TL;DR - Thanks it's working (I think), but an unexpected prompt for authentication appears to have cancelled the whole shebang.

Thanks, I've installed lfs from the zip file. The fsck reports everything is OK so I kicked off another attempt at pushing everything yesterday, using GIT_TRACE=1. It ran all day and through the night. When I got in this morning it was stalled on:

trace git-lfs: ssh: git@github.com git-lfs-authenticate XXXXXX/YYYYYY.git upload 92211e19a83cd1e01b11bc38d633ef4d7a37594f618d69794dc80359aecd8971
trace git-lfs: api: uploading (92211e19a83cd1e01b11bc38d633ef4d7a37594f618d69794dc80359aecd8971)
trace git-lfs: HTTP: POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects
trace git-lfs: HTTP: 200

I'm guessing that this activity is what, in the ps list, showed as 23252 s006 S+ 0:00.01 ssh git@github.com git-lfs-authenticate XXXXXX/YYYYYY.git upload 543dcec30f01b675f7b0bb97d1a0ef6c99940b33e9cd2c04ac18c6180cc3481a - so even though while the (N of Y files) numbers weren't changing in the last attempt, files were in fact uploading.

I groggily hit Enter a couple of times in my terminal. I should have only done it once because after the first one I was prompted for a Password for 'https://github.com': and so my second press of the Enter was submitted, resulting in the next HTTP POST returning a 401. I pasted my github password into the second prompt for it but it was rejected with another 401 and that seems to have terminated the push operation:

Password for 'https://github.com': 
trace git-lfs: api: uploading (afff0fa8b60c9b0b64a91ba433d3d62cd70f1e95a339922acb1443d48f1bc199)
trace git-lfs: HTTP: POST https://github.com/XXXXXX/YYYYYY.git/info/lfs/objects
trace git-lfs: HTTP: 401
(0 of 28831 files) 0 B 21h42m47s                                                                                                                                                                         
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects

Errors logged to /Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/objects/logs/20150724T083959.577603865.log
Use `git lfs logs last` to view the log.
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects

Errors logged to /Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/objects/logs/20150724T083959.581305336.log
Use `git lfs logs last` to view the log.
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects

Errors logged to /Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/objects/logs/20150724T083959.582156685.log
Use `git lfs logs last` to view the log.
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects

Errors logged to /Users/myhomedir/git-cleanup/YYYYYY-new/.git/lfs/objects/logs/20150724T083959.582964713.log
Use `git lfs logs last` to view the log.
Bad credentials
Docs: https://github.com/contact
Bad credentials
Docs: https://github.com/contact
error: failed to push some refs to 'git@github.com:XXXXXX/YYYYYY.git'

Running git lfs logs last shows that:

Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects
Error for POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects

Post https://api.github.com/lfs/XXXXXX/YYYYYY/objects: read tcp 192.30.252.136:443: connection reset by peer
goroutine 16 [running]:
...etc...

The (0 of 28831 files) 0 B 21h42m47s looks like I have to re-push the entire set again, a crushing thought since in counting the HTTP 200 responses it looks like I was 28825 files in, only a handful shy of done. Is there an emoji for weeping on the floor? I will try pushing a very small set of files to recapture a sense of achievement, pondering 😸s and 👶s for good measure, and then decide what to do about the rest.

@technoweenie
Copy link
Contributor

@joelfgs If you want to give me some more details at support@github.com, I can double check to see if those files made it. If your client successfully made the "verify" API call, you won't have to re-upload them again. If your client only made a successful file upload to S3, I can manually verify them on the server.

Also, you may have better luck using HTTPS instead of SSH for now, since the current API is so chatty. Improving this is a big part of the push to v0.6.0. There will be way fewer SSH calls and POST https://api.github.com/lfs/XXXXXX/YYYYYY/objects API calls.

@joelfgs
Copy link
Author

joelfgs commented Jul 27, 2015

Great, yeah after switching over to HTTPS everything was much faster. The push finally finished successfully, thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants