CoiniumServ
CoiniumServ copied to clipboard
Termination because of unhandled exception
Hi, first off all great work for that peace of coinserver.
I am running on debian strech latest version and have the following mono version running:
Mono JIT compiler version 5.14.0.177 (tarball Mon Aug 6 09:13:21 UTC 2018) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug Interpreter: yes LLVM: yes(3.6.0svn-mono-/) GC: sgen (concurrent by default) When I get an UpdateTip: new best=00000000000000000012c897454f11c4a627bb48eec92e9ab156a3b823438c06 height=539818 version=0x20000000 log2_work=89.593139 tx=339094338 date='2018-09-03 18:33:48' progress=0.999998 cache=23.8MiB(178318txo) warning='7 of last 100 blocks have unexpected version'
The debug.log of the CoiniumServer shows this error message:
09/03/2018 20:43:28 +02:00 [Fatal] [Program] [global] Terminating because of unhandled exception!
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <2943701620b54f86b436d3ffad010412>:0 at System.Linq.Enumerable+SelectEnumerableIterator
2[TSource,TResult].MoveNext () [0x00029] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () [0x00059] in <7aa7d6192efc4d31a9896d7a49ef2104>:0 at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable
1[T] source, System.Boolean& found) [0x00045] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at CoiniumServ.Mining.MinerManager.Remove (CoiniumServ.Server.Mining.Stratum.Sockets.IConnection connection) [0x0006c] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.StratumServer.OnClientDisconnect (System.Object sender, CoiniumServ.Server.Mining.Stratum.Sockets.ConnectionEventArgs e) [0x00027] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.OnClientDisconnect (CoiniumServ.Server.Mining.Stratum.Sockets.ConnectionEventArgs e) [0x0000a] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.RemoveConnection (CoiniumServ.Server.Mining.Stratum.Sockets.IConnection connection) [0x0008c] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.ReceiveCallback (System.IAsyncResult result) [0x00054] in <8bb94b2d076d4444a6813e48dd9d8164>:0
at System.Net.Sockets.SocketAsyncResult+<>c.<Complete>b__27_0 (System.Object state) [0x0000b] in
After a little time and a lot of hashing, this happend:
09/03/2018 20:49:08 +02:00 [Error] [StratumServer] [Bitcoin] Send
System.Net.Sockets.SocketException (0x80004005): The socket has been shut down
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00016] in
Do you have a clue?
Thanks, Stephan
@bonesoul Seen alot of nancy socket errors lately preventing miners from joining