odeke-em / drive

Google Drive client for the commandline
Apache License 2.0
6.68k stars 427 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #79

Closed tawanda closed 9 years ago

tawanda commented 9 years ago

if i

drive push file.txt

all is well, but if i

drive push folder

i get

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x473001]

goroutine 1 [running]:
runtime.panic(0x6f18c0, 0xad1dc8)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/odeke-em/drive/src.(*Commands).remoteMod(0xc210048a00, 0xc2102d2100, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:251 +0x591
github.com/odeke-em/drive/src.(*Commands).remoteAdd(0xc210048a00, 0xc2102d2100, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:289 +0x43
github.com/odeke-em/drive/src.(*Commands).playPushChangeList(0xc210048a00, 0xc210397800, 0x23, 0x40, 0x0, ...)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:213 +0xca
github.com/odeke-em/drive/src.(*Commands).Push(0xc210048a00, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:105 +0xac4
main.(*pushCmd).Run(0xc210037a20, 0xc21000a030, 0xa, 0xa)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:334 +0x169
github.com/rakyll/command.Run()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:155 +0x81
github.com/rakyll/command.ParseAndRun()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:162 +0x1f
main.main()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:62 +0x21f2

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [chan receive]:
github.com/odeke-em/drive/src.func·013()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:47 +0x3b
created by github.com/odeke-em/drive/src.(*Commands).Push
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:50 +0x2cc

goroutine 10 [IO wait]:
net.runtime_pollWait(0x7f263d285a18, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2102d4140, 0x72, 0x7f263d2840e8, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2102d4140, 0xb, 0x7f263d2840e8)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc2102d40e0, 0xc2102b4000, 0x800, 0x800, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc2102cf0f0, 0xc2102b4000, 0x800, 0x800, 0x411d9f, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc2102cd420, 0x7f263d285c18, 0xc2102cf0f0, 0x5, 0xc2102cf0f0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc2102e0000, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc2102e0000, 0xc2102bf000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc210286f60)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc210286f60, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc2102de000)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 6 [syscall]:
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 7 [IO wait]:
net.runtime_pollWait(0x7f263d285ac0, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc21006a5a0, 0x72, 0x7f263d2840e8, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc21006a5a0, 0xb, 0x7f263d2840e8)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc21006a540, 0xc210098800, 0x400, 0x400, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210000600, 0xc210098800, 0x400, 0x400, 0x102d4000, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc210067c90, 0x7f263d285c18, 0xc210000600, 0x5, 0xc210000600, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc210051780, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc210051780, 0xc2102c7000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc210286960)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc210286960, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc210058780)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 8 [select]:
net/http.(*persistConn).writeLoop(0xc210058780)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 11 [select]:
net/http.(*persistConn).writeLoop(0xc2102de000)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 40 [finalizer wait]:
runtime.park(0x411d70, 0xad5b00, 0xad3908)
    /usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 39 [sleep]:
time.Sleep(0xbebc200)
    /usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
github.com/cheggaaa/pb.(*ProgressBar).writer(0xc21035e780)
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:332 +0x61
created by github.com/cheggaaa/pb.(*ProgressBar).Start
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:101 +0x70

please assist, how do i fix this issue

odeke-em commented 9 years ago

Go version? Operating System? drive version? Command issued?

tawanda commented 9 years ago
go version go1.2.1 linux/amd64
Ubuntu 14.01
drive version 0.1.0
 drive push -force 2015

2015 is a folder, but this happens when trying to push any folder in the google drive path

so the following command also crashes

drive push -force *

odeke-em commented 9 years ago

Thank you for the information. For starters would you mind applying this patch?

diff --git a/push.go b/push.go
index 7bce2e8..a801639 100644
--- a/push.go
+++ b/push.go
@@ -247,7 +247,7 @@ func (g *Commands) remoteMod(change *Change) (err error) {

        absPath := g.context.AbsPathOf(change.Path)
        var parent *File
-       if change.Dest != nil {
+       if change.Dest != nil && change.Src != nil {
                change.Src.Id = change.Dest.Id // TODO: bad hack
        }

or getting the latest code by

$ go get -u github.com/odeke-em/drive/cmd/drive

and retrying it?

Basically you are getting a spot that where the data being accessed should never be nil. I have a hunch on what is going on, but will be able to do a better analysis in when I return home in about 7 hours. Please let me know what the results of the patch are.

Thank you again.

tawanda commented 9 years ago

Thank you so much for the assistance

i applied the update and drive version 0.1.1

i tried

drive push -force 2015

it starts off well

screenshot from 2015-03-05 06 00 15

and then

➜  Intelligent Systems Group Reasearch  drive push -force 2015 
Resolving...
+ /Intelligent Systems Group Reasearch/2015
+ /Intelligent Systems Group Reasearch/2015/Assignment 1
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/q1.pyc
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/q1.py
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data/Dataset_1.mat
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data/Dataset_2.mat
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/report_body.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/report_body.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.synctex.gz
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/declaration_of_originality.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.log
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.pdf
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.toc
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.out.ps
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.dvi
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/uplogo.png
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.log
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/declaration_of_originality.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/2015-02-23 22_39_41-conditional probability of a union - Mathematics Stack Exchange.png
+ /Intelligent Systems Group Reasearch/2015/STUDY GUIDE.txt
+ /Intelligent Systems Group Reasearch/2015/eai732_studyguide_2015.zp42794.pdf
+ /Intelligent Systems Group Reasearch/2015/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004)
+ /Intelligent Systems Group Reasearch/2015/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004)/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004).djvu
+ /Intelligent Systems Group Reasearch/2015/isg_schedule.pdf
+ /Intelligent Systems Group Reasearch/2015/eai732_wps.pdf
+ /Intelligent Systems Group Reasearch/2015/declaration_of_originality.tex
+ /Intelligent Systems Group Reasearch/2015/bayes_question
+ /Intelligent Systems Group Reasearch/2015/eai732_blockweek2_agenda_2015.pdf
+ /Intelligent Systems Group Reasearch/2015/eai732_blockweek1_agenda_2015.pdf
Addition count 36 src: 12.73MB dest: 12.58MB
 \ ceed with the changes? [Y/n]:  – 
24 / 36 [===================================================================================================================================================================>---------------------------------------------------------------------------------] 66.67 % 31spanic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x474484]

goroutine 1 [running]:
runtime.panic(0x6f3fa0, 0xad6dc8)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/odeke-em/drive/src.(*Commands).remoteMod(0xc2100499c0, 0xc2102d4180, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:259 +0x594
github.com/odeke-em/drive/src.(*Commands).remoteAdd(0xc2100499c0, 0xc2102d4180, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:297 +0x43
github.com/odeke-em/drive/src.(*Commands).playPushChangeList(0xc2100499c0, 0xc210187e00, 0x24, 0x40, 0x0, ...)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:213 +0xca
github.com/odeke-em/drive/src.(*Commands).Push(0xc2100499c0, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:105 +0xac4
main.(*pushCmd).Run(0xc210037a20, 0xc21000a030, 0x1, 0x1)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:335 +0x169
github.com/rakyll/command.Run()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:155 +0x81
github.com/rakyll/command.ParseAndRun()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:162 +0x1f
main.main()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:63 +0x23bc

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [chan receive]:
github.com/odeke-em/drive/src.func·013()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:47 +0x3b
created by github.com/odeke-em/drive/src.(*Commands).Push
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:50 +0x2cc

goroutine 6 [syscall]:
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 7 [IO wait]:
net.runtime_pollWait(0x7fd40a0e1bc8, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210069060, 0x72, 0x7fd40a0e01c0, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210069060, 0xb, 0x7fd40a0e01c0)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210069000, 0xc2100a1c00, 0x400, 0x400, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc2100001b0, 0xc2100a1c00, 0x400, 0x400, 0x0, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc2100673f0, 0x7fd40a0e1d20, 0xc2100001b0, 0x5, 0xc2100001b0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc2100a5000, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc2100a5000, 0xc2102c4000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc21027cea0)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc21027cea0, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc210058280)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 8 [select]:
net/http.(*persistConn).writeLoop(0xc210058280)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 45 [IO wait]:
net.runtime_pollWait(0x7fd40a0e1b20, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210234f40, 0x72, 0x7fd40a0e01c0, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210234f40, 0xb, 0x7fd40a0e01c0)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210234ee0, 0xc2101ea000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210175988, 0xc2101ea000, 0x1000, 0x1000, 0x4121ff, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc210288780, 0x7fd40a0e1d20, 0xc210175988, 0x5, 0xc210175988, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc2101d9a00, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc2101d9a00, 0xc2100fd000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc21031dba0)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc21031dba0, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc210305980)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 49 [sleep]:
time.Sleep(0xbebc200)
    /usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
github.com/cheggaaa/pb.(*ProgressBar).writer(0xc21026a870)
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:332 +0x61
created by github.com/cheggaaa/pb.(*ProgressBar).Start
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:101 +0x70

goroutine 46 [select]:
net/http.(*persistConn).writeLoop(0xc210305980)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 50 [finalizer wait]:
runtime.park(0x4121d0, 0xadab00, 0xad8908)
    /usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394
odeke-em commented 9 years ago

This was a good catch by trying something that hadn't been in the normal flow. Basically what happened was that most definitely '2015' did not exist locally nor remotely yet was being coerced into a change. However, I should be tracking this condition which is now being done with https://github.com/odeke-em/drive/commit/2f83616eba1024fb5a6d06f34ecd9ed7bb304c6c

Please get the latest from master, and try again.

Thank you very much for your patience and for reporting this.

tawanda commented 9 years ago

thanks, what's the command to pull from your master please

odeke-em commented 9 years ago
$ go get -u github.com/odeke-em/drive/cmd/drive
tawanda commented 9 years ago

i cant remember the folder i initialised your repo in, will go automagically send the files to the right dir no matter what folder i run this from ?

odeke-em commented 9 years ago

No, you'd have to run in that specific folder. However I can try to help you find it. Go to your root and run this command assuming you are on a *NIX system and have access to discover all files at least. In your shell run this

$ cd /
$ # Next, we will search from root to a depth of 100 for directories prefixed with .gd, but also
$ # close stderr due to errors you might encounter that might cause unnecessary noise.
$ # The .gd directory's parent is where you most likely have initialized drive
$ find / -maxdepth 100 -type d -name ".gd" 2>&-
odeke-em commented 9 years ago

Oops, I just noticed that I misunderstood your question, I interpreted it as initialized drive the mounted dir not the code. Yes, go get will initialize the code into the right repo if go is properly setup on your system.

tawanda commented 9 years ago

great, ill try it our when i get home in a few hours

tawanda commented 9 years ago

same error, should i maybe create this folder first on gdrive

Intelligent Systems Group Reasearch  drive push -force 2015
Resolving...
+ /Intelligent Systems Group Reasearch/2015
+ /Intelligent Systems Group Reasearch/2015/Assignment 1
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/q1.pyc
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/q1.py
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data/Dataset_1.mat
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data/Dataset_2.mat
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/report_body.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/report_body.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.synctex.gz
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/declaration_of_originality.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.log
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.pdf
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.toc
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.out.ps
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.dvi
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/uplogo.png
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.log
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/declaration_of_originality.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/2015-02-23 22_39_41-conditional probability of a union - Mathematics Stack Exchange.png
+ /Intelligent Systems Group Reasearch/2015/STUDY GUIDE.txt
+ /Intelligent Systems Group Reasearch/2015/eai732_studyguide_2015.zp42794.pdf
+ /Intelligent Systems Group Reasearch/2015/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004)
+ /Intelligent Systems Group Reasearch/2015/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004)/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004).djvu
+ /Intelligent Systems Group Reasearch/2015/isg_schedule.pdf
+ /Intelligent Systems Group Reasearch/2015/eai732_wps.pdf
+ /Intelligent Systems Group Reasearch/2015/declaration_of_originality.tex
+ /Intelligent Systems Group Reasearch/2015/bayes_question
+ /Intelligent Systems Group Reasearch/2015/eai732_blockweek2_agenda_2015.pdf
+ /Intelligent Systems Group Reasearch/2015/eai732_blockweek1_agenda_2015.pdf
Addition count 36 src: 12.73MB dest: 12.58MB
Proceed with the changes? [Y/n]:  
25 / 36 [==========================================================================================================================================================================>--------------------------------------------------------------------------] 69.44 % 26spanic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x40 pc=0x47880f]

goroutine 1 [running]:
runtime.panic(0x6f3fc0, 0xad6dc8)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/odeke-em/drive/src.(*Remote).UpsertByComparison(0xc210043bd0, 0xc210372cc0, 0x0, 0x7fa027460a80, 0xc2100b4f30)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/remote.go:486 +0x9f
github.com/odeke-em/drive/src.(*Commands).remoteMod(0xc2100499c0, 0xc210271380, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:286 +0x27f
github.com/odeke-em/drive/src.(*Commands).remoteAdd(0xc2100499c0, 0xc210271380, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:305 +0x43
github.com/odeke-em/drive/src.(*Commands).playPushChangeList(0xc2100499c0, 0xc2100b0800, 0x24, 0x40, 0x0, ...)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:221 +0xca
github.com/odeke-em/drive/src.(*Commands).Push(0xc2100499c0, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:113 +0xd46
main.(*pushCmd).Run(0xc210037a20, 0xc21000a030, 0x1, 0x1)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:335 +0x169
github.com/rakyll/command.Run()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:155 +0x81
github.com/rakyll/command.ParseAndRun()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:162 +0x1f
main.main()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:63 +0x23bc

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [chan send]:
github.com/odeke-em/cli-spinner.func·001()
    /home/tawanda/gocode/src/github.com/odeke-em/cli-spinner/spinner.go:94 +0x1ae
created by github.com/odeke-em/cli-spinner.(*Spinner).spin
    /home/tawanda/gocode/src/github.com/odeke-em/cli-spinner/spinner.go:104 +0xdc

goroutine 5 [chan receive]:
github.com/odeke-em/drive/src.func·013()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:50 +0x44
created by github.com/odeke-em/drive/src.(*Commands).Push
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:54 +0x3f8

goroutine 12 [IO wait]:
net.runtime_pollWait(0x7fa027461bd8, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210046a00, 0x72, 0x7fa027460278, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210046a00, 0xb, 0x7fa027460278)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc2100469a0, 0xc2102d4000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc2102c8010, 0xc2102d4000, 0x1000, 0x1000, 0x6fd4e0, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc2102ca0c0, 0x7fa027461dd8, 0xc2102c8010, 0x5, 0xc2102c8010, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc2102d0000, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc2102d0000, 0xc2102f1000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc2102b97e0)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc2102b97e0, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc2102cd000)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 8 [syscall]:
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 9 [IO wait]:
net.runtime_pollWait(0x7fa027461c80, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2100466f0, 0x72, 0x7fa027460278, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2100466f0, 0xb, 0x7fa027460278)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210046690, 0xc2100a9000, 0x400, 0x400, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210000208, 0xc2100a9000, 0x400, 0x400, 0x0, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc2100674b0, 0x7fa027461dd8, 0xc210000208, 0x5, 0xc210000208, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc2100a7000, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc2100a7000, 0xc2102ba000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc2102b9060)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc2102b9060, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc210072080)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 10 [select]:
net/http.(*persistConn).writeLoop(0xc210072080)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 13 [select]:
net/http.(*persistConn).writeLoop(0xc2102cd000)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 34 [finalizer wait]:
runtime.park(0x4121d0, 0xadab00, 0xad8908)
    /usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 33 [sleep]:
time.Sleep(0xbebc200)
    /usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
github.com/cheggaaa/pb.(*ProgressBar).writer(0xc21004f960)
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:332 +0x61
created by github.com/cheggaaa/pb.(*ProgressBar).Start
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:101 +0x70
odeke-em commented 9 years ago

Are you sure you updated by go get -u github.com/odeke-em/drive/cmd/drive on branch master? Please try updating this one more time and let me know what version you are using as well as the results.

tawanda commented 9 years ago

it definitely updated because the 'proceed with changes' misformed syntax was fixed

now i have copied full output starting from my root directory and showing the .gd folder

even though it fails at 75% most of the files copy over onto google drive

 ~  cd ~/
➜  ~  cd GoogleDrive 
➜  GoogleDrive  ls -la .gd
total 32
drwxr-xr-x  3 tawanda tawanda  4096 Feb 28 13:00 .
drwxrwxr-x 19 tawanda tawanda 12288 Mar  3 17:40 ..
-rw-------  1 tawanda tawanda   195 Feb  7 20:14 credentials.json
drwxr-xr-x  2 tawanda tawanda  4096 Mar  4 23:16 indices
➜  GoogleDrive  go get -u github.com/odeke-em/drive/cmd/drive
➜  GoogleDrive  ls -la .gd                                   
total 32
drwxr-xr-x  3 tawanda tawanda  4096 Feb 28 13:00 .
drwxrwxr-x 19 tawanda tawanda 12288 Mar  3 17:40 ..
-rw-------  1 tawanda tawanda   195 Feb  7 20:14 credentials.json
drwxr-xr-x  2 tawanda tawanda  4096 Mar  4 23:16 indices
➜  GoogleDrive  cd Intelligent\ Systems\ Group\ Reasearch 
➜  Intelligent Systems Group Reasearch  drive push -force 2015 
Resolving...
+ /Intelligent Systems Group Reasearch/2015
+ /Intelligent Systems Group Reasearch/2015/Assignment 1
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code
M /Intelligent Systems Group Reasearch/2015/Assignment 1/code/q1.pyc
M /Intelligent Systems Group Reasearch/2015/Assignment 1/code/q1.py
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data/Dataset_1.mat
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/code/data/Dataset_2.mat
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/report_body.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/report_body.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.synctex.gz
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/declaration_of_originality.aux
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.log
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.pdf
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.toc
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.out.ps
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.dvi
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/main.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/uplogo.png
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/title.log
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/declaration_of_originality.tex
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/draft.txt
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/graphics
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/graphics/figure_1-q1.png
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/Report/graphics/figure_2-q2.png
+ /Intelligent Systems Group Reasearch/2015/Assignment 1/2015-02-23 22_39_41-conditional probability of a union - Mathematics Stack Exchange.png
+ /Intelligent Systems Group Reasearch/2015/STUDY GUIDE.txt
+ /Intelligent Systems Group Reasearch/2015/eai732_studyguide_2015.zp42794.pdf
+ /Intelligent Systems Group Reasearch/2015/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004)
+ /Intelligent Systems Group Reasearch/2015/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004)/The LaTeX companion. Tools and techniques for computer typesetting (2nd ed., 2004).djvu
+ /Intelligent Systems Group Reasearch/2015/isg_schedule.pdf
+ /Intelligent Systems Group Reasearch/2015/eai732_wps.pdf
+ /Intelligent Systems Group Reasearch/2015/declaration_of_originality.tex
+ /Intelligent Systems Group Reasearch/2015/eai732_blockweek1_agenda_2015.pdf
+ /Intelligent Systems Group Reasearch/2015/bayes_question
+ /Intelligent Systems Group Reasearch/2015/eai732_blockweek2_agenda_2015.pdf
Addition count 38 src: 12.83MB dest: 12.58MB
Modification count 2 src: 5.36KB dest: 4.73KB
Proceed with the changes? [Y/n]: Y
29 / 40 [=================================================================================================================================================================================>-------------------------------------------------------------------] 72.50 % 34spanic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x40 pc=0x47880f]

goroutine 1 [running]:
runtime.panic(0x6f3fc0, 0xad6dc8)
    /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/odeke-em/drive/src.(*Remote).UpsertByComparison(0xc210043bd0, 0xc2100f3d40, 0x0, 0x7f49c0f718f0, 0xc2101341b0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/remote.go:486 +0x9f
github.com/odeke-em/drive/src.(*Commands).remoteMod(0xc2100499c0, 0xc21029d840, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:286 +0x27f
github.com/odeke-em/drive/src.(*Commands).remoteAdd(0xc2100499c0, 0xc21029d840, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:305 +0x43
github.com/odeke-em/drive/src.(*Commands).playPushChangeList(0xc2100499c0, 0xc210361400, 0x28, 0x40, 0x0, ...)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:221 +0xca
github.com/odeke-em/drive/src.(*Commands).Push(0xc2100499c0, 0x0, 0x0)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:113 +0xd46
main.(*pushCmd).Run(0xc210037a20, 0xc21000a030, 0x1, 0x1)
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:335 +0x169
github.com/rakyll/command.Run()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:155 +0x81
github.com/rakyll/command.ParseAndRun()
    /home/tawanda/gocode/src/github.com/rakyll/command/command.go:162 +0x1f
main.main()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:63 +0x23bc

goroutine 3 [syscall]:
os/signal.loop()
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 37 [finalizer wait]:
runtime.park(0x4121d0, 0xadab00, 0xad8908)
    /usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 5 [chan receive]:
github.com/odeke-em/drive/src.func·013()
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:50 +0x44
created by github.com/odeke-em/drive/src.(*Commands).Push
    /home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:54 +0x3f8

goroutine 8 [syscall]:
runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 9 [IO wait]:
net.runtime_pollWait(0x7f49c0f72bc8, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210069060, 0x72, 0x7f49c0f710e8, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210069060, 0xb, 0x7f49c0f710e8)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210069000, 0xc2100b6000, 0x400, 0x400, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc21009c020, 0xc2100b6000, 0x400, 0x400, 0x0, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc21001fed0, 0x7f49c0f72d20, 0xc21009c020, 0x5, 0xc21009c020, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc2100b4000, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc2100b4000, 0xc2102cc000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc210298b40)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc210298b40, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc2100af000)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 10 [select]:
net/http.(*persistConn).writeLoop(0xc2100af000)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 12 [IO wait]:
net.runtime_pollWait(0x7f49c0f72b20, 0x72, 0x0)
    /usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2102bb8b0, 0x72, 0x7f49c0f710e8, 0xb)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2102bb8b0, 0xb, 0x7f49c0f710e8)
    /usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc2102bb850, 0xc210303800, 0x800, 0x800, 0x0, ...)
    /usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc21009c060, 0xc210303800, 0x800, 0x800, 0x6fd4e0, ...)
    /usr/lib/go/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc2102da030, 0x7f49c0f72d20, 0xc21009c060, 0x5, 0xc21009c060, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc2100b4280, 0x17, 0x0, 0x8)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc2100b4280, 0xc210300000, 0x1000, 0x1000, 0x0, ...)
    /usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc2100b37e0)
    /usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc2100b37e0, 0x1, 0x0, 0x0, 0x0, ...)
    /usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc2100af080)
    /usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:528 +0x607

goroutine 13 [select]:
net/http.(*persistConn).writeLoop(0xc2100af080)
    /usr/lib/go/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
    /usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e

goroutine 35 [sleep]:
time.Sleep(0xbebc200)
    /usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
github.com/cheggaaa/pb.(*ProgressBar).writer(0xc2102fa690)
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:332 +0x61
created by github.com/cheggaaa/pb.(*ProgressBar).Start
    /home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:101 +0x70
➜  Intelligent Systems Group Reasearch  
odeke-em commented 9 years ago

By update I mean inside the code repo that drive is located not your Google Drive. Please provide me with the output.

$ cd $GOPATH/src/github.com/odeke-em/drive
$ git branch
$ git log | head -n 15
$ drive version
tawanda commented 9 years ago
➜  Intelligent Systems Group Reasearch  cd $GOPATH/src/github.com/odeke-em/drive
➜  drive git:(master) pwd
/home/tawanda/gocode/src/github.com/odeke-em/drive
➜  drive git:(master) git branch
* master
➜  drive git:(master) git log | head -n 15
commit 8ba3cb4b9fb42e2f7239c44e0db6f5931a55b61e
Author: Emmanuel Odeke <emm.odeke@gmail.com>
Date:   Thu Mar 5 09:20:50 2015 -0700

    version bump to v0.1.2

commit 2f83616eba1024fb5a6d06f34ecd9ed7bb304c6c
Author: Emmanuel Odeke <emm.odeke@gmail.com>
Date:   Wed Mar 4 22:38:35 2015 -0700

    abort resolveChange if local & remote are both nil

    + This fixes issues #79.
    + Took out spinners from remote and placed them in push/pull
      fixing issue #78.
➜  drive git:(master) drive version
drive version 0.1.2
➜  drive git:(master) 
tawanda commented 9 years ago

pulled again from within that dir

➜  drive git:(master) go get -u github.com/odeke-em/drive/cmd/drive
➜  drive git:(master) git log | head -n 15                         
commit 8ba3cb4b9fb42e2f7239c44e0db6f5931a55b61e
Author: Emmanuel Odeke <emm.odeke@gmail.com>
Date:   Thu Mar 5 09:20:50 2015 -0700

    version bump to v0.1.2

commit 2f83616eba1024fb5a6d06f34ecd9ed7bb304c6c
Author: Emmanuel Odeke <emm.odeke@gmail.com>
Date:   Wed Mar 4 22:38:35 2015 -0700

    abort resolveChange if local & remote are both nil

    + This fixes issues #79.
    + Took out spinners from remote and placed them in push/pull
      fixing issue #78.
➜  drive git:(master) drive version                                
drive version 0.1.2
➜  drive git:(master) 
tawanda commented 9 years ago

email me and i will send you my team viewer id then when we fix this we can say what we did here

odeke-em commented 9 years ago

Thank you for that. I have pushed up a quick hack to master, please redo the pull and try again. I won't be that responsive until about 8 hours from now when I get back home.

tawanda commented 9 years ago

ok i have tried to pull but got an error

➜  drive git:(master) go get -u github.com/odeke-em/drive/cmd/drive
# github.com/odeke-em/drive/src
src/remote.go:487: undefined: fm
➜  drive git:(master) go get -u github.com/odeke-em/drive/cmd/drive
# github.com/odeke-em/drive/src
src/remote.go:487: undefined: fm
➜  drive git:(master) 
odeke-em commented 9 years ago

Oops that was an edit without running, patched.

tawanda commented 9 years ago

oops looks like more is broken

➜  drive git:(master) go get -u github.com/odeke-em/drive/cmd/drive
# cd /home/tawanda/gocode/src/github.com/odeke-em/drive; git pull --ff-only
From https://github.com/odeke-em/drive
 + 01e3e4e...c83642e master     -> origin/master  (forced update)
fatal: Not possible to fast-forward, aborting.
package github.com/odeke-em/drive/cmd/drive: exit status 128
➜  drive git:(master) go get -u github.com/odeke-em/drive/cmd/drive
# cd /home/tawanda/gocode/src/github.com/odeke-em/drive; git pull --ff-only
fatal: Not possible to fast-forward, aborting.
package github.com/odeke-em/drive/cmd/drive: exit status 128
➜  drive git:(master) go get -u github.com/odeke-em/drive/cmd/drive
# cd /home/tawanda/gocode/src/github.com/odeke-em/drive; git pull --ff-only
fatal: Not possible to fast-forward, aborting.
package github.com/odeke-em/drive/cmd/drive: exit status 128
➜  drive git:(master) 
odeke-em commented 9 years ago

That is a git problem instead of a drive problem.

$ git pull origin master
$ go get github.com/odeke-em/drive/cmd/drive

Should cut the deal.

tawanda commented 9 years ago

I actually had to prune the whole branch

git fetch origin master
git reset --hard FETCH_HEAD
git clean -df

then (just to be safe)

git pull origin master
go get github.com/odeke-em/drive/cmd/drive

Now it woks beautifully! thanks for hanging in there with me all these days, and thanks for this great app

odeke-em commented 9 years ago

Thank you too for the patience and for exploring this in detail. Please feel free to reach out in case of any questions.