Open sunnycn2013 opened 6 years ago
修改 /usr/local/golang/src/github.com/Loopring/relay/config/relay.toml 中的 /Users/fukun/projects/gohome/src/github.com/Loopring/relay/config/tokens.json 为 /usr/local/golang/src/github.com/Loopring/relay/config/tokens.json 即可
此文件还有其他要修改的,请悉知
OK
修改后又报了一个新的错误??
2018-04-16T22:49:16.205+0800 info market util,supported market:REQ-WETH
2018-04-16T22:49:17.592+0800 error token:WTC, id:walton, can't sync marketcap at time:1523890157, it't last updated time:0
github.com/Loopring/relay/log.Errorf
/usr/local/golang/src/github.com/Loopring/relay/log/log.go:63
github.com/Loopring/relay/marketcap.(*CapProvider_CoinMarketCap).syncMarketCap
/usr/local/golang/src/github.com/Loopring/relay/marketcap/capprovider.go:190
github.com/Loopring/relay/marketcap.NewMarketCapProvider
/usr/local/golang/src/github.com/Loopring/relay/marketcap/capprovider.go:220
github.com/Loopring/relay/node.(*Node).registerMarketCap
/usr/local/golang/src/github.com/Loopring/relay/node/node.go:284
github.com/Loopring/relay/node.NewNode
/usr/local/golang/src/github.com/Loopring/relay/node/node.go:104
main.startNode
/usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/nodecmd.go:67
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.HandleAction
/usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:490
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run
/usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:264
main.main
/usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/main.go:57
runtime.main
/usr/local/go/src/runtime/proc.go:198
2018-04-16T22:49:19.571+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, lrcTokenAddress:0x
2018-04-16T22:49:19.828+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, ringhashRegistryAddress:0x
2018-04-16T22:49:20.099+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, tokenRegistryAddress:0x
2018-04-16T22:49:20.355+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, delegateAddress:0x
2018-04-16T22:49:20.630+0800 error err:Post http://127.0.0.1:5001/api/v0/pubsub/sub?arg=test_topic_broad_fk&encoding=json&stream-channels=true: dial tcp 127.0.0.1:5001: connect: connection refused
github.com/Loopring/relay/log.Errorf
/usr/local/golang/src/github.com/Loopring/relay/log/log.go:63
github.com/Loopring/relay/gateway/ipfs.PubSubSubscribe
/usr/local/golang/src/github.com/Loopring/relay/gateway/ipfs/ipfs.go:80
github.com/Loopring/relay/gateway.(*IPFSSubServiceImpl).newSubProxy
/usr/local/golang/src/github.com/Loopring/relay/gateway/ipfs_sub.go:150
github.com/Loopring/relay/gateway.NewIPFSSubService
/usr/local/golang/src/github.com/Loopring/relay/gateway/ipfs_sub.go:67
github.com/Loopring/relay/node.(*Node).registerIPFSSubService
/usr/local/golang/src/github.com/Loopring/relay/node/node.go:247
github.com/Loopring/relay/node.NewNode
/usr/local/golang/src/github.com/Loopring/relay/node/node.go:107
main.startNode
/usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/nodecmd.go:67
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.HandleAction
/usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:490
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run
/usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:264
main.main
/usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/main.go:57
runtime.main
/usr/local/go/src/runtime/proc.go:198
2018-04-16T22:49:20.630+0800 fatal ipfs impl create sub scribe error:Post http://127.0.0.1:5001/api/v0/pubsub/sub?arg=test_topic_broad_fk&encoding=json&stream-channels=true: dial tcp 127.0.0.1:5001: connect: connection refused
github.com/Loopring/relay/log.Fatalf
/usr/local/golang/src/github.com/Loopring/relay/log/log.go:75
github.com/Loopring/relay/gateway.NewIPFSSubService
/usr/local/golang/src/github.com/Loopring/relay/gateway/ipfs_sub.go:69
github.com/Loopring/relay/node.(*Node).registerIPFSSubService
/usr/local/golang/src/github.com/Loopring/relay/node/node.go:247
github.com/Loopring/relay/node.NewNode
/usr/local/golang/src/github.com/Loopring/relay/node/node.go:107
main.startNode
/usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/nodecmd.go:67
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.HandleAction
/usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:490
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run
/usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:264
main.main
/usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/main.go:57
runtime.main
/usr/local/go/src/runtime/proc.go:198
没有的,我只修改了你说的那个位置
这里面是路径都要改
安装成功的时候提示一个错,这个可以忽略吧?
go get -u github.com/Loopring/relay package github.com/Loopring/relay: no Go files in /root/goproject/src/github.com/Loopring/relay root@iZae6x9bu0qw3hZ:~# ls
redis 的错误没了,但是还剩下一点2018-04-16T21:48:06.940+0800 error token:WTC, id:walton, can't sync marketcap at time:1523886486, it't last updated time:0
github.com/Loopring/relay/log.Errorf
/root/goproject/src/github.com/Loopring/relay/log/log.go:63
github.com/Loopring/relay/marketcap.(*CapProvider_CoinMarketCap).syncMarketCap
/root/goproject/src/github.com/Loopring/relay/marketcap/capprovider.go:190
github.com/Loopring/relay/marketcap.NewMarketCapProvider
/root/goproject/src/github.com/Loopring/relay/marketcap/capprovider.go:220
github.com/Loopring/relay/node.(*Node).registerMarketCap
/root/goproject/src/github.com/Loopring/relay/node/node.go:284
github.com/Loopring/relay/node.NewNode
/root/goproject/src/github.com/Loopring/relay/node/node.go:104
main.startNode
/root/goproject/src/github.com/Loopring/relay/cmd/lrc/nodecmd.go:67
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.HandleAction
/root/goproject/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:490
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run
/root/goproject/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:264
main.main
/root/goproject/src/github.com/Loopring/relay/cmd/lrc/main.go:57
runtime.main
/usr/local/go/src/runtime/proc.go:198
2018-04-16T21:48:09.790+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, lrcTokenAddress:0x
2018-04-16T21:48:10.121+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, ringhashRegistryAddress:0x
2018-04-16T21:48:10.457+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, tokenRegistryAddress:0x
2018-04-16T21:48:10.788+0800 debug version:v1.0, contract:0xC01172a87f6cC20E1E3b9aD13a9E715Fbc2D5AA9, delegateAddress:0x
2018-04-16T21:48:11.111+0800 fatal ipfs impl create sub scribe error:can't connect to ipfs client
github.com/Loopring/relay/log.Fatalf
/root/goproject/src/github.com/Loopring/relay/log/log.go:75
github.com/Loopring/relay/gateway.NewIPFSSubService
/root/goproject/src/github.com/Loopring/relay/gateway/ipfs_sub.go:69
github.com/Loopring/relay/node.(*Node).registerIPFSSubService
/root/goproject/src/github.com/Loopring/relay/node/node.go:247
github.com/Loopring/relay/node.NewNode
/root/goproject/src/github.com/Loopring/relay/node/node.go:107
main.startNode
/root/goproject/src/github.com/Loopring/relay/cmd/lrc/nodecmd.go:67
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.HandleAction
/root/goproject/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:490
github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run
/root/goproject/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:264
main.main
/root/goproject/src/github.com/Loopring/relay/cmd/lrc/main.go:57
runtime.main
/usr/local/go/src/runtime/proc.go:198
[root@iZae6x9bu0qw3hZ relay]# build/bin/relay --mode=relay 2018-04-16T18:42:36.091+0800 fatal market util load tokens failed:open /Users/fukun/projects/gohome/src/github.com/Loopring/relay/config/tokens.json: no such file or directory github.com/Loopring/relay/log.Fatalf /usr/local/golang/src/github.com/Loopring/relay/log/log.go:75 github.com/Loopring/relay/market/util.getTokenAndMarketFromDB /usr/local/golang/src/github.com/Loopring/relay/market/util/marketutil.go:116 github.com/Loopring/relay/market/util.Initialize /usr/local/golang/src/github.com/Loopring/relay/market/util/marketutil.go:176 github.com/Loopring/relay/node.NewNode /usr/local/golang/src/github.com/Loopring/relay/node/node.go:103 main.startNode /usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/nodecmd.go:67 github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.HandleAction /usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:490 github.com/Loopring/relay/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run /usr/local/golang/src/github.com/Loopring/relay/vendor/gopkg.in/urfave/cli.v1/app.go:264 main.main /usr/local/golang/src/github.com/Loopring/relay/cmd/lrc/main.go:57 runtime.main /usr/local/go/src/runtime/proc.go:198 [root@iZae6x9bu0qw3hZ relay]#
你好,linux下启动 build/bin/relay --mode=relay ,时报错