FICTURE7 / CoCSharp

Clash of Clans library, proxy and server written in .NET [Unmaintained]
MIT License
109 stars 57 forks source link

CoCSharp in docker and Linux VPSs #104

Open ghost opened 7 years ago

ghost commented 7 years ago

Everytime I've tried to run CoCSharp in docker or in a linux VPS I get this error:

root@Debian-Server-8-7:/home/cloudsigma/Release# mono CoCSharp.Server.exe

[17/03/14 - 09:36:57.822][info] - Loading config at 'server_config.xml'... [17/03/14 - 09:36:57.930][info] - Starting server... Missing method ToList in assembly /home/cloudsigma/Release/Newtonsoft.Json.dll, type System.Linq.Enumerable [17/03/14 - 09:36:58.140][error] - Unable to synchronize assets with asset server. [17/03/14 - 09:36:58.143][error] - System.TypeInitializationException: An exception was thrown by the type initializer for Newtonsoft.Json.JsonWriter ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' at Newtonsoft.Json.JsonWriter..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at Newtonsoft.Json.JsonTextWriter..ctor (System.IO.TextWriter textWriter) [0x00000] in :0 at CoCSharp.Data.Fingerprint.ToJson (Boolean indent) [0x00000] in :0 at CoCSharp.Data.Fingerprint.ToJson () [0x00000] in :0 at CoCSharp.Data.AssetDownloader.DownloadAssets (System.String dstDir) [0x00000] in :0 at CoCSharp.Server.Server.SyncAssets (System.String contentPath) [0x00000] in :0 at CoCSharp.Server.Server.Start () [0x00000] in :0

root@Debian-Server-8-7:/home/cloudsigma/Release#

I have set up the mysql server correctly can can confirm that it is accessible from the server and that all the details in the server_config are right. I have also ensured the hashes of all the files match and they run on my windows machine both when using mono or when running from my linux dual-boot

FICTURE7 commented 7 years ago

Make sure you have installed mono completely.

ghost commented 7 years ago

So, not just mono-runtime but devel as well.

ghost commented 7 years ago

Fixed it. I was missing mono-devel :). Thank you very much

ghost commented 7 years ago

I now get this looped as output: at MySql.Data.MySqlClient.MySqlConnectionStringBuilder.get_Item (string) <0x00024> at System.Data.Common.DbConnectionStringBuilder.TryGetValue (string,object&) <0x0004a> at MySql.Data.MySqlClient.MySqlConnectionStringOption1.GetValue (MySql.Data.MySqlClient.MySqlConnectionStringBuilder) <0x00037> at MySql.Data.MySqlClient.MySqlConnectionStringOption1.GetObject (MySql.Data.MySqlClient.MySqlConnectionStringBuilder) <0x0001b>

FICTURE7 commented 7 years ago

Hmmm, is this the full exception log?

ghost commented 7 years ago

Sorry for the late answer. Yes. It loops that around 100 times before I stop it.