Can't start server on debian


  • Hi. I'm trying to start a new server on Debian, but the game crashes on startup. Here's the log:
    [48:52 EcoServer] Eco Server alpha 0.3 release-979581c8
    [48:52 Eco.Plugin] Server init...
    [48:52 Eco.Plugin] Initializing ModKitPlugin...
    [48:52 Eco.ModKit] Mods recompiling...
    [48:53 Eco.ModKit] Mods recompiled without error.
    [48:53 Eco.Plugin] Initializing ModKitPlugin finished in 1,598 ms
    [48:53 Eco.Plugin] Initializing Serialization...
    [48:55 Eco.Plugin] - type Animal took 1114 ms
    [48:55 Eco.Plugin] - type StatData took 1126 ms
    [48:55 Eco.Plugin] - type WorldTime took 58 ms
    [48:55 Eco.Plugin] - type Plant took 1384 ms
    [48:55 Eco.Plugin] - type PersistentChunk took 242 ms
    [49:04 Eco.Plugin] - type ServerUser took 8781 ms
    [49:13 Eco.Plugin] - type Laws took 18061 ms
    [49:13 Eco.Plugin] - type WorldObject took 19483 ms
    [49:13 Eco.Plugin] Serialization version hash: E5A2AC1C
    [49:13 Eco.Plugin] Initializing Serialization finished in 19,571 ms
    [49:13 Eco.Plugin] Initializing StorageManager...
    [49:13 Eco.Plugin] Initializing StorageManager finished in 0 ms
    [49:13 Eco.Plugin] Initializing WorldGeneratorPlugin...
    [49:13 Eco.Plugin] Initializing WorldGeneratorPlugin finished in 235 ms
    [49:13 Eco.Plugin] Initializing NetworkManager...
    [49:13 Eco.Plugin] Initializing NetworkManager finished in 10 ms
    [49:13 Eco.Plugin] Initializing WorldCore...
    [49:13 Eco.Plugin] Initializing WorldCore finished in 39 ms
    [49:13 Eco.Plugin] Initializing SimStats...
    [49:13 Eco.Plugin] Initializing SimStats finished in 2 ms
    [49:13 Eco.Plugin] Initializing EcoSim...
    [49:13 Eco.Plugin] Initializing EcoSim finished in 176 ms
    [49:13 Eco.Plugin] Initializing Legislation...
    [49:13 Eco.Plugin] Initializing Legislation finished in 2 ms
    [49:13 Eco.Plugin] Initializing ChatServer...
    [49:13 Eco.Plugin] Initializing ChatServer finished in 0 ms
    [49:13 Eco.Plugin] Initializing ControllerPlugin...
    [49:13 Eco.Plugin] Initializing ControllerPlugin finished in 0 ms
    [49:13 Eco.Plugin] Initializing UserManager...
    [49:13 Eco.Plugin] Initializing UserManager finished in 20 ms
    [49:13 Eco.Plugin] Initializing WorldObjectManager...
    [49:13 Eco.Plugin] Initializing WorldObjectManager finished in 7 ms
    [49:13 Eco.Plugin] Initializing WebServerPlugin...
    [49:14 Eco.Plugin] Initializing WebServerPlugin finished in 240 ms
    [49:14 Eco.Plugin] Server init finished in 21,920 ms
    [ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
    at Eco.Webserver.WebServer+NetAclChecker.AddAddress (System.String address, System.String domain, System.String user) <0x4183b520 + 0x000df> in <filename unknown>:0
    at Eco.Webserver.WebServer+NetAclChecker.AddAddress (System.String address) <0x4183b3b0 + 0x00037> in <filename unknown>:0
    at Eco.Webserver.WebServer.Init (Int32 port) <0x417fbd20 + 0x000d7> in <filename unknown>:0
    at Eco.Server.Plugins.WebServerPlugin.Init () <0x417fa190 + 0x0002f> in <filename unknown>:0
    at Eco.Server.Plugins.WebServerPlugin..ctor () <0x417f9b40 + 0x000ab> in <filename unknown>:0
    at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
    at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) <0x7f3f251ac670 + 0x0003f> in <filename unknown>:0
    --- End of inner exception stack trace ---
    at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) <0x7f3f251ac670 + 0x00079> in <filename unknown>:0
    at System.RuntimeType.CreateInstanceMono (Boolean nonPublic) <0x7f3f24ffa560 + 0x00124> in <filename unknown>:0
    at System.RuntimeType.CreateInstanceSlow (Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, System.Threading.StackCrawlMark& stackMark) <0x7f3f24ffa510 + 0x00049> in <filename unknown>:0
    at System.RuntimeType.CreateInstanceDefaultCtor (Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, System.Threading.StackCrawlMark& stackMark) <0x7f3f24ffa2b0 + 0x0005c> in <filename unknown>:0
    at System.Activator.CreateInstance[T] () <0x7f3f24f1aec0 + 0x00089> in <filename unknown>:0
    at Eco.Server.Plugins.PluginManager.AddPlugin[T] () <0x415cc4c0 + 0x0009b> in <filename unknown>:0
    at Eco.Server.Plugins.PluginManager..ctor () <0x415cbc50 + 0x001ab> in <filename unknown>:0
    at Eco.Server.MainClass.Main (System.String[] args) <0x415bf600 + 0x001c7> in <filename unknown>:0

    Does anyone with source access have any idea why there's a null reference there ?


  • 3
    Posts
    1015
    Views
    Log in to reply


  • Its failing to start the webserver on the specified port (by default, 3001), so its trying to run a command its only supposed to run on windows to try adding the permissions.

    You may need to run in elevated perms which allow listening on http



  • Thanks for the reply!

    Tried sudo, didn't work. Elevation should only be required for ports <= 1024 anyway. I've tried listening on 2999, 3000, 3001 with netcat and it worked.

    I tried debugging with strace and found out the reason : I was missing the System.Net.Http assembly (libmono-system-net-http4.0-cil). You should list the required assemblies in a readme, .NET/Mono is a pain to find out what you need to install :p (if they're listed anywhere I couldn't find them. I've had to install mono-mcs, libmono-system-windows-forms4.0-cil and libmono-system-net-http4.0-cil)


3
Posts
1015
Views
Log in to reply

Internal error.

Oops! Looks like something went wrong!