ipfs / ipget

Retrieve files over IPFS and save them locally.
MIT License
394 stars 54 forks source link

ipget panics when run #24

Closed whyrusleeping closed 8 years ago

whyrusleeping commented 8 years ago
> ipget QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o
2016/04/05 16:53:45 Reuse of exported var name: utpAckSkippedResends
panic: Reuse of exported var name: utpAckSkippedResends

goroutine 1 [running]:
log.Panicln(0xc8200d3da0, 0x2, 0x2)
    /home/whyrusleeping/go/src/log/log.go:334 +0xc1
expvar.Publish(0xdc58e0, 0x14, 0x7fe83dc4e978, 0xc820075bb0)
    /home/whyrusleeping/go/src/expvar/expvar.go:254 +0x233
expvar.NewInt(0xdc58e0, 0x14, 0xb)
    /home/whyrusleeping/go/src/expvar/expvar.go:272 +0x75
gx/ipfs/QmadkZhaLw1AhXKyBiPmydRuTexhj6WkiZPpo5Uks6WUVq/utp.init()
    /home/whyrusleeping/gopkg/src/gx/ipfs/QmadkZhaLw1AhXKyBiPmydRuTexhj6WkiZPpo5Uks6WUVq/utp/utp.go:52 +0x97
gx/ipfs/QmYVqhVfbK4BKvbW88Lhm26b3ud14sTBvcm1H7uWUx1Fkp/go-multiaddr-net/utp.init()
    /home/whyrusleeping/gopkg/src/gx/ipfs/QmYVqhVfbK4BKvbW88Lhm26b3ud14sTBvcm1H7uWUx1Fkp/go-multiaddr-net/utp/utp_util.go:105 +0x45
gx/ipfs/QmYVqhVfbK4BKvbW88Lhm26b3ud14sTBvcm1H7uWUx1Fkp/go-multiaddr-net.init()
    /home/whyrusleeping/gopkg/src/gx/ipfs/QmYVqhVfbK4BKvbW88Lhm26b3ud14sTBvcm1H7uWUx1Fkp/go-multiaddr-net/net.go:298 +0x56
gx/ipfs/QmSN2ELGRp4T9kjqiSsSNJRUeR9JKXzQEgwe1HH3tdSGbC/go-libp2p/p2p/net/conn.init()
    /home/whyrusleeping/gopkg/src/gx/ipfs/QmSN2ELGRp4T9kjqiSsSNJRUeR9JKXzQEgwe1HH3tdSGbC/go-libp2p/p2p/net/conn/secure_conn.go:124 +0x6f
gx/ipfs/QmSN2ELGRp4T9kjqiSsSNJRUeR9JKXzQEgwe1HH3tdSGbC/go-libp2p/p2p/net.init()
    /home/whyrusleeping/gopkg/src/gx/ipfs/QmSN2ELGRp4T9kjqiSsSNJRUeR9JKXzQEgwe1HH3tdSGbC/go-libp2p/p2p/net/interface.go:155 +0x40
gx/ipfs/QmSN2ELGRp4T9kjqiSsSNJRUeR9JKXzQEgwe1HH3tdSGbC/go-libp2p/p2p/host.init()
    /home/whyrusleeping/gopkg/src/gx/ipfs/QmSN2ELGRp4T9kjqiSsSNJRUeR9JKXzQEgwe1HH3tdSGbC/go-libp2p/p2p/host/host.go:64 +0x4c
github.com/ipfs/go-ipfs/core.init()
    /home/whyrusleeping/gopkg/src/github.com/ipfs/go-ipfs/core/pathresolver.go:91 +0x6a
github.com/noffle/ipfs-embedded-shell.init()
    /home/whyrusleeping/gopkg/src/github.com/noffle/ipfs-embedded-shell/shell.go:57 +0x5d
github.com/noffle/fallback-ipfs-shell.init()
    /home/whyrusleeping/gopkg/src/github.com/noffle/fallback-ipfs-shell/shell.go:22 +0x54
main.init()
    /home/whyrusleeping/gopkg/src/github.com/ipfs/ipget/main.go:57 +0x4f

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /home/whyrusleeping/go/src/runtime/asm_amd64.s:1721 +0x1

goroutine 20 [syscall]:
os/signal.loop()
    /home/whyrusleeping/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
    /home/whyrusleeping/go/src/os/signal/signal_unix.go:28 +0x37

goroutine 21 [select]:
gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log.(*MirrorWriter).logRoutine(0xc820070400)
    /home/whyrusleeping/gopkg/src/gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log/writer.go:71 +0x33c
created by gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log.NewMirrorWriter
    /home/whyrusleeping/gopkg/src/gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log/writer.go:38 +0xe2

goroutine 22 [chan receive]:
github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics.init.1.func2()
    /home/whyrusleeping/gopkg/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics/metrics.go:321 +0x73
created by github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics.init.1
    /home/whyrusleeping/gopkg/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/codahale/metrics/metrics.go:328 +0x7b
hackergrrl commented 8 years ago

I can't reproduce! What commands did you run? I ran

$ go get github.com/noffle/ipget

$ ipget QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o

$ echo $?
0
alexander-vielimchanitsia commented 8 years ago

I get this error when importing github.com/ipfs/go-ipfs-api :-/

hackergrrl commented 8 years ago

@alexander-vielimchanitsia is on the right track: this is happening because jbenet/go-multiaddr-net is being included both by gx (via noffle/ipfs-embedded-shell) and by ipfs/go-ipfs-api.

jyap808 commented 8 years ago

.. Confirmed that I'm having this issue.

hackergrrl commented 8 years ago

This should be fixed now: see the new gx workflow for installing here.