vyzo / ipfs-crawl Goto Github PK
View Code? Open in Web Editor NEWa simple crawler for diagnosing connectivity issues in the ipfs network
License: MIT License
a simple crawler for diagnosing connectivity issues in the ipfs network
License: MIT License
I'm using go version 14.4 in Ubuntu 18.04.4
When I try to make
I get the following error:
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
# github.com/whyrusleeping/gx-go
../go/src/github.com/whyrusleeping/gx-go/link.go:48:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/link.go:52:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/link.go:56:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/main.go:137:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/main.go:175:2: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in field value
../go/src/github.com/whyrusleeping/gx-go/main.go:196:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/main.go:200:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/main.go:658:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/main.go:662:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/main.go:798:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../go/src/github.com/whyrusleeping/gx-go/main.go:200:15: too many errors
Makefile:9: recipe for target 'gx' failed
make: *** [gx] Error 2
events.go:9:2: cannot find package "gx/ipfs/QmTG23dvpBCBjqQwyDxV8CQT6jmS4PSftNr1VqHhE3MLy7/go-log/writer" in any of:
/usr/lib/golang/src/gx/ipfs/QmTG23dvpBCBjqQwyDxV8CQT6jmS4PSftNr1VqHhE3MLy7/go-log/writer (from $GOROOT)
/root/go/src/gx/ipfs/QmTG23dvpBCBjqQwyDxV8CQT6jmS4PSftNr1VqHhE3MLy7/go-log/writer (from $GOPATH)
make: *** [bin] Error 1
We do want those event logs (#2) but it results in this:
21:14:26.582 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmUUVNiTz2K9zQSH9PxerKWXmN1p3DBo3oJXurvYziFzqh metadata.go:25
21:14:26.583 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmUUVNiTz2K9zQSH9PxerKWXmN1p3DBo3oJXurvYziFzqh metadata.go:25
21:14:26.726 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmfVriFBJ567y4mKwV4r1LzdZQwN7tmJQ1rMdHdaJbWKww metadata.go:25
21:14:26.726 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmfVriFBJ567y4mKwV4r1LzdZQwN7tmJQ1rMdHdaJbWKww metadata.go:25
21:14:27.441 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmUUVNiTz2K9zQSH9PxerKWXmN1p3DBo3oJXurvYziFzqh metadata.go:25
21:14:27.441 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmUUVNiTz2K9zQSH9PxerKWXmN1p3DBo3oJXurvYziFzqh metadata.go:25
21:14:27.582 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmfVriFBJ567y4mKwV4r1LzdZQwN7tmJQ1rMdHdaJbWKww metadata.go:25
21:14:27.583 ERROR eventlog: Over writting key: peerID, old: QmUsnD8Jyv9PUbCRhjZCPc1CLcnoZJNZyiWWwWQiKcS5Yv, new: QmfVriFBJ567y4mKwV4r1LzdZQwN7tmJQ1rMdHdaJbWKww metadata.go:25
It can be grepped out, so it's not a blocker -- but it still gives a horrible user experience for the crawler.
Unfortunately it's not a simple matter of patching and making a new gx release for go-log, it will have to be propagated to upstream libp2p modules as well (or we'll end up using a different instance of the module).
Just to be sure, is that a correct way to get how many peers are dialable or not ?
$ cat /tmp/ipfs-crawl.out | jq .status | sort | uniq -c
62 "ERROR"
37 "OK"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.