Ipfs: ./ipfs diag cmds panics

作成日 2016年05月24日  ·  4コメント  ·  ソース: ipfs/ipfs

IPFS0.4.2を実行しています。 インストールした直後に./ipfs diag cmdsを実行しましたが、パニックになりました。

me<strong i="7">@there</strong>:~/go-ipfs$ ./ipfs diag cmds
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x584857]

goroutine 1 [running]:
panic(0xe4ae40, 0xc8200100c0)
        /home/whyrusleeping/go/src/runtime/panic.go:464 +0x3e6
github.com/ipfs/go-ipfs/commands.(*ReqLog).Report(0x0, 0x0, 0x0, 0x0)
        /builds/distributions/dists/go-ipfs/gopath/src/github.com/ipfs/go-ipfs/commands/reqlog.go:108 +0x247
github.com/ipfs/go-ipfs/core/commands.glob.func1(0x767a7bae6868, 0xc8200c23c0, 0x767a7bae69f8, 0xc8200540e0)
        /builds/distributions/dists/go-ipfs/gopath/src/github.com/ipfs/go-ipfs/core/commands/active.go:22 +0x3d
github.com/ipfs/go-ipfs/commands.(*Command).Call(0x16230c0, 0x767a7bae6868, 0xc8200c23c0, 0x0, 0x0)
        /builds/distributions/dists/go-ipfs/gopath/src/github.com/ipfs/go-ipfs/commands/command.go:110 +0x472
main.callCommand(0x767a7bae6940, 0xc820016dc0, 0x767a7bae6868, 0xc8200c23c0, 0x16230c0, 0x1600320, 0x0, 0x0, 0x0, 0x0)
        /builds/distributions/dists/go-ipfs/gopath/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:346 +0xa84
main.(*cmdInvocation).Run(0xc820016d80, 0x767a7bae6940, 0xc820016dc0, 0x0, 0x0, 0x0, 0x0)
        /builds/distributions/dists/go-ipfs/gopath/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:189 +0x1e7
main.main()
        /builds/distributions/dists/go-ipfs/gopath/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:154 +0x660

私は(概念的に)なぜこれが起こったのか理解していると思います。 このノードではコマンドが実行されていないため(まったく新しい)、印刷するものはありません。 それでも、パニックは場違いのようです。

kinbug

全てのコメント4件

これに遭遇してくれてありがとう:)最初のAPIリクエストが行われた後もまだパニックになっていますか? 例: http:// localhost :5001 / api / v0 / version。

昨日の夜は、おそらく問題の作成を開始するのにそれほど良い時間ではありませんでした。 最初に、間違ったリポジトリに投稿したことがわかりました。確認したことは確かです...次に、 ./ipfs diag cmdsを発行したときにデーモンが実行されていません

me<strong i="7">@there</strong>:~/go-ipfs$ ./ipfs diag cmds
Command    Active  StartTime        RunTime
diag/cmds  true    May 25 08:55:46  696.373µs

パニックになるべきではなかったと思いますが、これで説明が少し簡単になります。

この問題を閉じて、正しいリポジトリで新しい問題を開きますか?

@haartsいいですね! どうぞ。

このページは役に立ちましたか?
0 / 5 - 0 評価