Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

CoCSharp in docker and Linux VPSs #104

Open
ghost opened this issue Mar 14, 2017 · 6 comments
Open

CoCSharp in docker and Linux VPSs #104

ghost opened this issue Mar 14, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 14, 2017

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
Copy link
Owner

Make sure you have installed mono completely.

@ghost
Copy link
Author

ghost commented Mar 14, 2017

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

@ghost
Copy link
Author

ghost commented Mar 14, 2017

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

@ghost ghost closed this as completed Mar 14, 2017
@ghost ghost reopened this Mar 14, 2017
@ghost
Copy link
Author

ghost commented Mar 14, 2017

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
Copy link
Owner

Hmmm, is this the full exception log?

@ghost
Copy link
Author

ghost commented Mar 30, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant