-
Notifications
You must be signed in to change notification settings - Fork 495
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
[Error] [HybridStorage] [Bitcoin] An exception occured while comitting share #788
Comments
Dears, This error occurred before above issue came out. 4/16/2017 23:29:25 +09:00 [Debug] [StratumServer] [Bitcoin] Stratum client disconnected: "192.168.1.102:57314" 04/16/2017 21:03:43 +09:00 [Error] [HybridStorage] [Bitcoin] An exception occured while comitting share: Unexpected response type: MultiBulk (expecting Int) Regards, |
Dears, Is following releated with BufferStream error? if I changed to another value then is there anything make an problem on the CoiniumServ server? CoiniumServ/src/CoiniumServ/Server/Mining/Stratum/Sockets/Connection.cs /// Default buffer size. /// public static readonly int BufferSize = 16 * 1024; // 16 KB to modify like following? Regards, |
Dears, Finally, I figure out the cause of root related with asyncBufferSize of CSREDIS of NUGET package. Create a new RedisClient with specific async concurrency settings |
Create a pull request please so we can apply the fix. |
Dear Bonesoul,
Thank you for replay my reported error.I was create a new pull request as following
#790
Regards,John Ahn-----Original Message-----
From: "Hüseyin Uslu"<[email protected]>
To: "bonesoul/CoiniumServ"<[email protected]>;
Cc: "jeong760"<[email protected]>; "Author"<[email protected]>;
Sent: 2017-04-17 (월) 20:11:13
Subject: Re: [bonesoul/CoiniumServ] [Error] [HybridStorage] [Bitcoin] An exception occured while comitting share (#788)
Create a pull request please so we can apply the fix.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Dears, Also when I use a AUTH mode on Redis it shows me following. 22:32:55 [Error] [RedisProvider] [Litecoin] Redis storage initialization failed: 127.0.0.1:6379 - NOAUTH Authentication required. |
Dears, I needed more time to the investigation of csredis issues as I mentioned above. because I was changed a BTC stratum diff option on configuration file like following. and after it was not appeared again. So I was little bits confused why? because I was changed only two things as following
Before After Regards, |
Dears, Also, I am not professional programmer and not familiar GitHub so I don't know how to request a PR for only specific modules. Regards, |
Dears, Definitely, it caused by CSREDIS connector between CoiniumServ to the Redis-server on Windows PC. Symptoms [Error] [HybridStorage] [Bitcoin] An exception occurred while committing share: Unexpected response type: MultiBulk (expecting Int)
[Error] [HybridStorage] [Bitcoin] An exception occurred while committing share: Cannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that the stream underlying this BufferedStream can seek or avoid interleaving read and write operations on this BufferedStream. Solutions Currently, I am trying to solve this error but there is no way except modification of CSREDIS Regards, |
Dears, If I turn off the Redis-server then is there anything problem on CoiniumServ server except the pool information? Why Redis-Server needed? Regards, |
Redis is used for shares calculation, without it you won't be able to determine your workers profits/shares. |
Dears, Does it relate to the following code on VardiffManger.cs? The _Buffersize on VardiffManger.cs file. Because as I mentioned above when I adjustment the following value on default.json. it delayed shows up BufferStream errors for 3 hours later or nothing happen. but if I increase this values then BufferStream Error show up on the screen after bitcoin pool activated. I was changed a those two values more shorter than original settings. and it does not happen or occurred showed up around 3 hours later. The configuration values on default.Json for Target and Retarget time. So I think that BufferStream error message related to those values on /pools/*.json file. _Buffersize = Config.RetargetTime / Config.TargetTime * 8 or more grater values. Regards, |
Dears, What is following code on VardiffManger.cs file? if (miner.VardiffBuffer == null) Regards, |
Dears, That's all I assume that BufferStram errors of CoiniumServ server. I don't have much time to relies on testing for CoiniumServ and check for a code and also I am not a programmer. but I want to solve this issue for other people who want to use a CoiniumServ for their mining pool solution. Even though, someone wrote that this project was abandoned and only a few programmers remaining and struggle to improve a CoiniumServ. And I show your question about error messages that The requested feature is not implemented on csredis. you have opened this question on 2014 and end of this question you mentioned it was solved. but I have a Redis connection issue with the same error message on Ubuntu Linux 14.04 and 16.04 LTS version when I running a CoiniumServ. My issues link here: #787 So the problem does not solve or it comes again when after you changed to use a csredis on Nuget version. Link: ctstone/csredis#22 Regards, |
Dears, Can we available to use following csredis instead current one? Nuget name: CSRedis .NETCore 1.0.0: https://www.nuget.org/packages/CSRedisCore/ Regards, |
Dears, Where can I find a database create format data on CoiniumServ source code? I want to check for database create command data for Redis and Mysql. Could you possible to give me a short description of each source code folder do(Their Purpose)? |
Dears, Please refer to the following comment of Streaming Response matter. In order to avoid a large result issues like BULK we should insert a code somewhere in CoiniumServ. Streaming responses For large result sizes, it may be preferred to stream the raw bytes from the server rather than allocating large chunks of memory in place. This can be achieved with RedisClient.StreamTo(). Note that this only applies to BULK responses (e.g. GET, HGET, LINDEX, etc). Attempting to stream any other response will result in an InvalidOperationException. Here is an example that stores the response in a MemoryStream 64 bytes at a time. A more useful example might use a FileStream and a larger buffer size. redis.Set("test", new string('x', 1048576)); // 1MB string |
Currently, when a miner is trying to insert a large result of shares into Redis server it generates following errors. so we need to modification a HybridStorage Redis provider section. but I don't know where... 04/20/2017 11:22:13 +09:00 [Error] [HybridStorage] [Bitcoin] An exception occured while comitting share: Unexpected response type: Bulk (expecting Int) Redis is handling this large result of shares as InvalidOperationException because there is no for "RedisClient.StreamTo()" code for fast miner trying to insert a large shares result. Regards, |
Dears, As you see the following logs CoiniumServ generate a System.InvalidOperationException, which related with Redis result insert of large shares by fast miner generated during initial targeting from 16 until 15 seconds. The thread 0x3404 has exited with code 0 (0x0). |
Dears, Here are Redis XML file contents for the BULK response... - |
'CoiniumServ.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. |
Dears,
I have the following issue when I running a CoiniumServ on Windows machine with redis-server.
How can I solved this error?
23:35:27 [Error] [HybridStorage] [Bitcoin] An exception occured while comitting share: Cannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that the stream underlying this BufferedStream can seek or avoid interleaving read and write operations on this BufferedStream.
Regards,
John Ahn
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: