Ich verwende IPFS 0.4.2. Unmittelbar nach der Installation habe ich ./ipfs diag cmds
was in Panik geriet:
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
Ich glaube, ich (konzeptionell) verstehe, warum dies passiert ist; Auf diesem Knoten wurden keine Befehle ausgeführt (er ist ganz neu), daher gibt es nichts zu drucken. Trotzdem scheint Panik fehl am Platz.
Vielen Dank, dass Sie darauf gestoßen sind :) Gibt es immer noch Panik, nachdem die erste API-Anfrage gestellt wurde? ZB zu http://localhost :5001/api/v0/version.
Gestern Abend war wahrscheinlich kein so guter Zeitpunkt, um Probleme zu machen; Als erstes sehe ich, dass ich im falschen Repo gepostet habe, ich war mir sicher, dass ich es überprüft habe ... Zweitens hatte ich den Daemon nicht am Laufen, als ich ./ipfs diag cmds
ausgab. Als ich heute Morgen den Daemon laufen ließ, bekam ich:
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
Ich denke immer noch, es hätte nicht in Panik geraten sollen, aber das macht es ein bisschen einfacher zu erklären.
Soll ich dieses Problem schließen und ein neues im richtigen Repo eröffnen?
@haarts Klingt gut für mich! Fortfahren.