-
Notifications
You must be signed in to change notification settings - Fork 733
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
Random crash every ~30 minutes (BitcoinSV) #966
Comments
What is the version of your websockets? I'm using 7.0; not sure if newer or older, but yours seems incompatible |
Was using websockets 8.1, went back to 7.0
Including the logs, maybe you see something interesting.
Thanks |
BSV always crashes recently, stops at block 622559, it runs in a docker container:
|
Here is error message from another docker instance:
|
Restart the docker instance, the log messages are:
Both docker instances stop at the same block height with the same error. They have been running for months until this crash last week. I've compacted the fist docker instance and run it, still crashes. It seems the BSV block #622559/622560 has some weird txs that could crash the electrumX. |
I will try the latest electrumX version to see if it makes any difference. |
Yes that is the problem, you need to be on 1.14 for Genesis. I'm not sure what the txs are but you may have to rebuild the DB from scratch. |
Sorry kyuupichan, but what randydu is refering to has nothing to do with the issue i posted in the first place. |
@angelix the error shown: "AttributeError: 'WebSocketServerProtocol' object has no attribute 'transfer_data_task'" originates in the websocket package and refers to a problem within its data structures. I suspect your installation of the package is somehow corrupted. |
https://github.com/aaugustin/websockets/blob/master/src/websockets/protocol.py#L278 is where it is defined, apparently |
Downgraded to websockets v7, different exceptions are occurring. Latest log:
|
@kyuupichan i was able to reproduce it with artillery.io |
@kyuupichan here is the artillery.io script that we used for the stress test:
|
@kyuupichan We are still experience crashes almost every 1-2 hours.
If you run it multiple times you can "bring" down a websocket electrumx server eg. BSV |
I'm also having this issue, that "WebSocketServerProtocol" object has no attribute 'transfer_data_task' This is my log:
It appears randomly too. Sometimes in the next 12 hours, sometimes after 3 days. |
I'm also having a different issue by "code = 1006 (connection closed abnormally [internal]), no reason" (other error output)
This appears randomly too. I'm not quite sure if this issue is related with this topic. (But it has still something to do with websocket) |
My other mirror ElectrumX (WebSocket) Server seems to be fine with very very low activity. (around 3-4 Users each day) The error from above seems to appear from my main ElectrumX Server which has much more activity, around 500 Users each day. (Of course not all at once). |
I am experience a very weird situation where electrumX is shutting down every ~30 minutes of operation with the following log/trace.
Coin: BitcoinSV
ElectrumX: latest
Services: RPC, WebSockets
OS: Ubuntu 19.04 (in Docker)
Also getting randomly the following exceptions, don't know if related.
I'll continue investigating the issue. Any insights are welcome.
The text was updated successfully, but these errors were encountered: