Skip to content

all workers exit by websocket routine exiting #4390

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

Closed
ffteng46 opened this issue Oct 14, 2020 · 1 comment · Fixed by #3618
Closed

all workers exit by websocket routine exiting #4390

ffteng46 opened this issue Oct 14, 2020 · 1 comment · Fixed by #3618

Comments

@ffteng46
Copy link

Describe the bug
A clear and concise description of what the bug is.
all workers exist with same error.First in lotus daemon,get this unknown actor code bafkqadlgnfwc6mrpmfrwg33vnz2a,then in miner daemon receives message that all workers connection timeout and disconnect from miner.All the miners have the same log RPC client error: sendRequest failed: websocket routine exiting,all workers exit but lotus and miner still work.
To Reproduce
Steps to reproduce the behavior:

  1. Run '...'
  2. See error
    restart all workers with lotus-worker run --*** --**
    Expected behavior
    A clear and concise description of what you expected to happen.
    all workers works fine for sealing.
    Screenshots
    If applicable, add screenshots to help explain your problem.
    image
    image
    image
    image

Version (run lotus version):
Daemon: 0.10.0+git.a6b218075.dirty+api0.16.0
Local: lotus version 0.10.0+git.a6b218075.dirty
Additional context
Add any other context about the problem here.

@TerenceClark
Copy link

I also encountered websocket routine exiting because it took me too long to restart Miner, but the API connection timeout was 30s, so it would not be reconnected after the timeout, resulting in websocket routine exiting being reported all the time. By lengthening the timeout, it will keep retrying to connect to Miner until Miner is started.

nodeApi, closer, err = lcli.GetStorageMinerAPI(cctx,
	jsonrpc.WithTimeout(30*time.Minute))

@magik6k magik6k linked a pull request Oct 28, 2020 that will close 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.

2 participants