Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miner listen head changes errored and affect submit window post #5113

Closed
spacetimedevx opened this issue Dec 4, 2020 · 3 comments · Fixed by #5614
Closed

Miner listen head changes errored and affect submit window post #5113

spacetimedevx opened this issue Dec 4, 2020 · 3 comments · Fixed by #5614

Comments

@spacetimedevx
Copy link

Lotus: 1.2.2

this happens sometimes, and it doesn’t seem to be able to reconnect to restore, but lotus sync wait return ok
Every time I encounter this situation, I need to restart miner to solve it

2020-12-04T05:05:05.821+0800 ^[[35mDEBUG^[[0m advmgr sector-storage/sched.go:359 SCHED 0 queued; 102 open windows
2020-12-04T05:05:06.071+0800 ^[[34mINFO^[[0m miner miner/miner.go:384 Time delta between now and our mining base: 6s (nulls: 0)
2020-12-04T05:06:07.060+0800 ^[[31mERROR^[[0m rpc go-jsonrpc@v0.1.2/websocket.go:654 Connection timeout {"remote": "10.8.1.1:30101"}
2020-12-04T05:06:07.060+0800 ^[[33mWARN^[[0m storageminer storage/wdpost_sched.go:106 window post scheduler notifs channel closed
2020-12-04T05:06:07.060+0800 ^[[33mWARN^[[0m events events/events.go:97 listenHeadChanges quit
2020-12-04T05:06:07.060+0800 ^[[31mERROR^[[0m miner miner/miner.go:230 mining block failed: failed to get mining base info:
github.com/filecoin-project/lotus/miner.(*Miner).mineOne
/soft/ntwk-calibration/lotus/miner/miner.go:365

  • handler: websocket connection closed
    2020-12-04T05:06:07.060+0800 ^[[33mWARN^[[0m events events/events.go:97 listenHeadChanges quit
    2020-12-04T05:06:07.060+0800 ^[[31mERROR^[[0m storageminer storage/wdpost_sched.go:94 ChainNotify error: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:07.060+0800 ^[[33mWARN^[[0m rpc go-jsonrpc@v0.1.2/websocket.go:289 failed to send request {"method": "xrpc.cancel", "id": 218114, "error": "write tcp 10.8.1.1:51428->10.8.1.1:30101: use of closed network connection"}
    2020-12-04T05:06:07.060+0800 ^[[33mWARN^[[0m rpc go-jsonrpc@v0.1.2/websocket.go:289 failed to send request {"method": "xrpc.cancel", "id": 218115, "error": "write tcp 10.8.1.1:51428->10.8.1.1:30101: use of closed network connection"}
    2020-12-04T05:06:07.060+0800 ^[[31mERROR^[[0m rpc go-jsonrpc@v0.1.2/websocket.go:497 sending ping message: write tcp 10.8.1.1:51428->10.8.1.1:30101: use of closed network connection
    2020-12-04T05:06:07.987+0800 ^[[31mERROR^[[0m sectors storage-sealing/garbage.go:53 RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:08.060+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:08.060+0800 ^[[31mERROR^[[0m miner miner/miner.go:176 failed to get best mining candidate: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:08.060+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:08.060+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:08.060+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:09.060+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:09.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:09.060+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:09.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:10.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:10.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:10.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:10.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:11.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:11.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:11.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:11.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:12.060+0800 ^[[31mERROR^[[0m rpc go-jsonrpc@v0.1.2/websocket.go:497 sending ping message: write tcp 10.8.1.1:51428->10.8.1.1:30101: use of closed network connection
    2020-12-04T05:06:12.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:12.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:12.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:12.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:13.061+0800 ^[[31mERROR^[[0m miner miner/miner.go:176 failed to get best mining candidate: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:13.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:13.061+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:13.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:13.061+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:14.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:14.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:14.062+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:14.062+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:15.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:15.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:15.062+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:15.062+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:16.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:16.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:16.062+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:16.062+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:17.060+0800 ^[[31mERROR^[[0m storageminer storage/wdpost_sched.go:94 ChainNotify error: RPC client error: sendRequest failed: websocket routine exiting
    2020-12-04T05:06:17.061+0800 ^[[31mERROR^[[0m rpc go-jsonrpc@v0.1.2/websocket.go:497 sending ping message: write tcp 10.8.1.1:51428->10.8.1.1:30101: use of closed network connection
    2020-12-04T05:06:17.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:17.062+0800 ^[[34mINFO^[[0m events events/events.go:104 restarting listenHeadChanges
    2020-12-04T05:06:17.063+0800 ^[[31mERROR^[[0m events events/events.go:95 listen head changes errored: listenHeadChanges ChainNotify call failed: RPC client error: sendRequest failed: websocket routine exiting
@shaodan
Copy link
Contributor

shaodan commented Dec 5, 2020

lost all power in the midnight ☹️

@hyunmoon
Copy link

hyunmoon commented Dec 5, 2020

This PR might fix this issue:

filecoin-project/go-jsonrpc#33

@askender
Copy link

askender commented Jan 9, 2021

Same problem. websocket is unstable sometimes since 1.4.0
Any further progress on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants