venus icon indicating copy to clipboard operation
venus copied to clipboard

[venus-wallet] 端口已经被占用,提示信息是INFO级别,建议改成WARN/ERROR级别。

Open alisazhang777 opened this issue 3 years ago • 1 comments

链服务模块 / Chain Service Components

  • [X] venus
  • [ ] venus-auth
  • [ ] venus-gateway
  • [ ] venus-messager
  • [ ] venus-miner
  • [ ] 文档 / docs

订单服务模块 / Deal Service Components

  • [ ] venus-market
  • [ ] 文档 / docs

算力服务模块 / Storage Power Service Components

  • [ ] venus-sector-manager
  • [ ] venus-worker
  • [ ] 文档 / docs

描述 / Description

venus-wallet组件 端口已经被占用,导致钱包地址注册不到gateway。提示信息是INFO级别,不易被察觉,建议改成WARN/ERROR级别

-------venus-wallet.log------- 2022-09-07T11:01:51.389+0800 INFO wallet_event wallet_event/listenevent.go:42 api hub: urls: [/ip4/127.0.0.1/tcp/45132], token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQlkiLCJwZXJtIjoiYWRtaW4iLCJleHQiOiIifQ.wX6dCsDv-uh6QB4iU9j9U4u5KdWYgIANj5oSyYMmqKU, support account: [BY] 2022-09-07T11:01:51.390+0800 INFO wallet_event walletevent/wallet_client.go:116 {"api hub": "/ip4/127.0.0.1/tcp/45132", "rand sign byte": "sYSIRBPKFVDv6nFhd2D+lUxaQ9Zt3ATWD7MkycoAVcQ="} could not listen: listen tcp4 0.0.0.0:5678: bind: address already in use

-------venus-gateway.log------- root@forcenet-venus-128:~/forcenet-venus/venus-gateway# ./venus-gateway wallet list null

alisazhang777 avatar Sep 07 '22 03:09 alisazhang777

端口被占用,程序应该直接退出

simlecode avatar Sep 16 '22 05:09 simlecode

据测试,这个日志could not listen: listen tcp4 127.0.0.1:5678: bind: address already in use 是没显示日志级别的,打印后程序退出了,符合软件正常行为,使用者只需关注进程号是否存在即可判断

diwufeiwen avatar Sep 26 '22 03:09 diwufeiwen