Ich habe vermutlich ein ähnliches Problem von meinem Linux Server aus. Hat da schon jemand eine Lösung gefunden?
Installiert habe ich Mono 6.6.0.161
Der Stacktrace wiederholt sich bis ich der bot gekillt wird.
Code: Alles auswählen
$ ./MFBot_Konsole_x86_64
Loaded assembly
[INFO] [CORE] (Probably) Because of a non-supported TLS implementation, dungeon/pet file updates, error reporting and statistics are disabled.
[INFO] [CORE] Triggering error: Error: TrustFailure (The authentication or decryption has failed.)
> Running MFBot Konsole, MFBot 5.3.2.1 (Tilia) on Mono runtime
> Geben Sie "exit" ein um den Bot zu beenden.
/select xxx@s1.sfgame.de
/login
> Selektierte Accounts: xxx
18.05.2020 16:18:18 Info Core xxx@S1.SFGAME.DE Logging in...
18.05.2020 16:18:21 Warn Core xxx@S1.SFGAME.DE Server exception. (Not reachable? Message was Error: TrustFailure (The authentication or decryption has failed.)) Waiting 30 seconds and try it again..
18.05.2020 16:18:21 Warn Core General System.Net.WebException: Error: TrustFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00037] in <f0057a409c774a0484f771ccbe01772e>:0
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <f0057a409c774a0484f771ccbe01772e>:0
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <f0057a409c774a0484f771ccbe01772e>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x00032] in <f0057a409c774a0484f771ccbe01772e>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <f0057a409c774a0484f771ccbe01772e>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x0004b] in <f0057a409c774a0484f771ccbe01772e>:0
at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x0000e] in <1a0168907d2042858c12ff7b2c118a26>:0
at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <1a0168907d2042858c12ff7b2c118a26>:0
at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0007b] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Net.WebConnection.CreateStream (System.Net.HttpWebRequest request) [0x00073] in <1a0168907d2042858c12ff7b2c118a26>:0
--- End of inner exception stack trace ---
at System.Net.WebClient.DownloadDataInternal (System.Uri address, System.Net.WebRequest& request) [0x00072] in <1a0168907d2042858c12ff7b2c118a26>:0
at System.Net.WebClient.DownloadData (System.Uri address) [0x00020] in <1a0168907d2042858c12ff7b2c118a26>:0
at (wrapper remoting-invoke-with-check) System.Net.WebClient.DownloadData(System.Uri)
at de.mfbot.MFBot_NG.Basisbibliothek.Server.sendstr (de.mfbot.MFBot_NG.Basisbibliothek.Account acc, de.mfbot.MFBot_NG.Basisbibliothek.Command command, System.Double UnixStampOfCall) [0x0050a] in <919407374df9421785e1f21fb76b20dd>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Server.send (de.mfbot.MFBot_NG.Basisbibliothek.Account acc, de.mfbot.MFBot_NG.Basisbibliothek.Command cmd) [0x00114] in <919407374df9421785e1f21fb76b20dd>:0
18.05.2020 16:18:51 Warn Core xxx@S1.SFGAME.DE Try to send again..
18.05.2020 16:18:52 Warn Core xxx@S1.SFGAME.DE Server exception. (Not reachable? Message was Error: TrustFailure (The authentication or decryption has failed.)) Waiting 30 seconds and try it again..
18.05.2020 16:18:52 Warn Core General System.Net.WebException: Error: TrustFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00037] in <f0057a409c774a0484f771ccbe01772e>:0
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <f0057a409c774a0484f771ccbe01772e>:0
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <f0057a409c774a0484f771ccbe01772e>:0
--- End of inner exception stack trace ---
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x00032] in <f0057a409c774a0484f771ccbe01772e>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <f0057a409c774a0484f771ccbe01772e>:0
--- End of inner exception stack trace ---
Folgenden Fehler habe ich auch noch, wenn ich das Terminal nicht auf xterm stelle. Hängen die eventuell zusammen?
Code: Alles auswählen
$ echo $TERM
xterm-256color
$ ./MFBot_Konsole_x86_64
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.ConsoleDriver..cctor () [0x0004d] in <a6f810169ec746eeb2789b925e2858c0>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Console..cctor () [0x0008e] in <a6f810169ec746eeb2789b925e2858c0>:0
--- End of inner exception stack trace ---
at BasisFightSimulation.FightSimulationAssemblyLoader.Load () [0x00000] in <c79e4c4647844c198901b52f28cbdf3b>:0
at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00000] in <4b9d087ed9d5499c83f266e6981f7a74>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.ConsoleDriver..cctor () [0x0004d] in <a6f810169ec746eeb2789b925e2858c0>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Console..cctor () [0x0008e] in <a6f810169ec746eeb2789b925e2858c0>:0
--- End of inner exception stack trace ---
at BasisFightSimulation.FightSimulationAssemblyLoader.Load () [0x00000] in <c79e4c4647844c198901b52f28cbdf3b>:0
at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00000] in <4b9d087ed9d5499c83f266e6981f7a74>:0
$ export TERM=xterm
$ ./MFBot_Konsole_x86_64
Loaded assembly