-
Notifications
You must be signed in to change notification settings - Fork 57
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
Intermittent Failure to read all fans on Braiins OS+ #141
Comments
This is similar to something I see with BOS+ on S9s, where occasionally when repeatedly querying data, data for one of the hashboards will be completely omitted from the API response. This makes me wonder if the API result is getting truncated for some reason (i.e. the response is too long, as the get_data call does use + delimited multicommands). In theory this shouldn't be a problem for gRPC, as those commands get sent separately, but it seems like the only way to troubleshoot this may be to log the response the API is getting, here - pyasic/pyasic/miners/backends/braiins_os.py Line 882 in 0b69fe5 |
Just got around to testing this with an S9, I can't get it to reproduce... You can try checking |
The only other thing I could imagine here is that the miner isn't being identified properly, you are getting the miner each time instead of storing the instance (I slightly modified your script to store the instance). Here is an updated script, can you see if this problem occurs with this version?
|
Describe the bug
Approximately 0.5% of the time, when using pyasic to asynchronously read any number of miners, the fan data is truncated.
e.g. Here are several reads in a row where we saw the issue occur.
PyASIC: [{'speed': 4800}, {'speed': 4740}, {'speed': 4860}, {'speed': 4800}]
PyASIC: [{'speed': 4800}, {'speed': 4740}, {'speed': 4800}, {'speed': 4800}]
PyASIC: [{'speed': 4800}, {'speed': 4740}]
PyASIC: [{'speed': 4800}, {'speed': 4800}, {'speed': 4860}, {'speed': 4800}]
PyASIC: [{'speed': 4740}, {'speed': 4740}, {'speed': 4860}, {'speed': 4800}]
PyASIC: [{'speed': 4800}, {'speed': 4800}, {'speed': 4860}, {'speed': 4800}]
To Reproduce
Expected behavior
These should all come back every time.
Desktop (please complete the following information):
Miner Information (If applicable):
Additional context
We used the same code to validate it against querying the CGMiner API and the GRPC API to eliminate a problem with the miner. Those APIs succeeded to get the correct data every time.
The text was updated successfully, but these errors were encountered: