Setting up a ECO server on Ubuntu (other linux is probably very similar)



  • Hmmm .. I have start the local on my PC the eco server unter Linux Mint 18.3 with mono 5.8.0.108 and become this

    https://paste.md-5.net/yuvajowaya.xml

    which mono version must installed, the dev or completed ?



  • Seems I should visit this forum more often :P. Hey guys if your running debian based you should look into my tool ELSM.

    https://github.com/kicker22004/ECO_LINUX_SERVER_MANAGER

    Video guide: https://youtu.be/NHfhYW5RJcQ



  • @kicker22004

    Debian 9 with Google Cloud. I get to the part in your video where you say "hit Back" to load the world and it starts throwing this error image.png

    I installed lsof and retried running ELSM and it had me just stop and start the server again. Going to check if it works.

    Edit2 Electric boogaloo: I threw in a firewall rule each for ingress and egress with the Google Cloud stuff and was finally able to connect. It seems to work! Thank you so much for making this.



  • I tried the ELSM today and got the following error on server startup:

    --BEGIN DUMP--
    Dump Time
    02/17/2018 19:57:25

    Exception
    System.AggregateException: One or more errors occurred. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Newtonsoft.Json.JsonSerializationException: Could not create an instance of type Eco.WorldGenerator.ITerrainModule. Type is an interface or abstract class and cannot be instantiated. Path 'TerrainModule.Modules[1].Modules[0].Default', line 76, position 22. -- Full dump: Crash AggregateException 02175725.ecodmp

    I tried 7.1.1 and 7.1.2.
    Is this a mono-related error or did I forgot something? :D



  • @kicker22004
    What would be the process for updating the server?



  • @kicker22004
    Thanks so much for your work here, I subscribed your channel in support hope you get to monetized again soon. What I the recommended way to reset the world and start over? It did seem that my world upgraded automagicly to the latest beta when I created it even though not in the list.
    Cheers
    Hmm guess I should look at the menu closer since there is a world reset option....



  • Getting following on startup

    [06:49] Initializing ControllerManager...
    [06:49] Initializing DisasterPlugin...
    [06:49] Initializing BackupPlugin...
    [06:49] Initializing PropertyManager...
    [06:49] Initializing WirePlugin...
    [06:49] Initializing DifficultySettingsFinished in 2.6ms
    [06:49] Initializing ChatServer... Finished in 2.6ms
    [06:49] Initializing EcoSim... Finished in 3.9ms
    [06:49] Initializing MinimapManager... shed in 0.5ms
    [06:49] Initializing RouteProbingPlugin... 151.8ms1ms9ms.0ms
    [06:49] Initializing WorldLayerManager... Finished in 0.9ms
    [06:49] Initializing EconomyTracker... Finished in 1.5ms
    [06:49] Initializing WorldObjectManager... shed in 0.8ms
    [06:49] Initializing EconomyPlugin... Finished in 1,347.3ms
    [06:49] Initializing RoomPlugin... Finished in 21.3ms
    [06:49] Initializing ObjectivePlugin... hed in 5.0ms
    [06:49] Initializing Legislation... Finished in 2.2ms
    [06:50] Initializing WebServerPlugin... shed in 73.5ms
    [06:50] Initializing DiscordPlugin... Finished in 405.5ms
    [06:50] Server Initialization finished in 4,299.9ms.4ms
    [06:50] Failed to start UDP client, LAN discovery may not be available. (Exception:



  • How can I create new laws and all that stuff? It keeps saying "must access from server"



  • Where do I get the newest server version for version 7.2.1 ? I cant`t find anything.



  • Just to say that's always working fine, tested on ubuntu server 16.04 LTS, (mono EcoServer.exe -nogui ) dont omit to add mono repo like on this page ;) So , great job for this game guys!! waiting for a headless server now, webbase GUI is a good idea.



  • @AngelEpa I get the same error, did you find any fix for this? :)

    Edit: There is a newer release available for download which works for me :D

    Link: https://s3-us-west-2.amazonaws.com/eco-releases/EcoServer_v0.7.0.0-beta-staging-7da08558.zip



  • Initializing WorldGeneratorPlugin...
    Generating world 4km²...
    Generating terrain...
    Caching world data...
    Failed to post server listing to remote service: Error: ConnectFailure (Connection timed out)
    Generating plateaus...
    Failed to post server listing to remote service: Error: ConnectFailure (Connection timed out)
    Carving rivers...
    Generating special features...
    Ticking (Pass 1)...
    Initializing world layers...
    Failed to post server listing to remote service: Error: ConnectFailure (Connection timed out)
    Ticking world layers...
    Failed to post server listing to remote service: Error: ConnectFailure (Connection timed out)

    I become this Message all Time when i load the Server after some Minutes. The World load and the Message is coming, then World Cache is loading, after this the message come... Any Idea ?



  • For anyone else that is running Debian such as myself to get the mono package do the following

    apt-get update
    apt-get install unzip
    apt-get install mono-complete

    Log into your account to see what the latest server is and download it using wget
    there are several examples listed above on how to use wget or do a man wget
    for help.

    Use unzip to unzip the server that you download again man unzip for help.

    I would also recommend running this as a separate user instead of just making
    a directory.

    do the following:

    adduser eco
    su eco
    cd

    You must be root when you are doing this
    This will add the a user called eco and then change to that new account
    that you just created and then take you to the home directory for eco which
    should be /home/eco

    The process of getting an eco server setup on Debian was really easy. I do have
    30+ years though of running Linux. :)



  • Hey
    I followed your tutorial but every time I start the server, it looks like it is starting, right until world gen:
    It runs for between 40-80% (seems random) then suddenly writes "Killed" and it shuts down.

    Anyone know why?



  • @Swahgner said:

    Hey
    I followed your tutorial but every time I start the server, it looks like it is starting, right until world gen:
    It runs for between 40-80% (seems random) then suddenly writes "Killed" and it shuts down.

    Anyone know why?

    Well was there anything in the log files? Anything to go on? we need a lot more information other than
    what was given if we want to troubleshoot this issue.

    What flavor of linux you running Debian, Redhat, Slackware etc.

    Post your logs as well if there is anything in the logs.

    Does it give you anything more than just "killed" on your screen any other error messages?

    What version of the Eco server are you trying to run are you using the latest if not
    I would recommend getting the latest version.

    What are the stats of the machine running your Linux OS? how much memory free hard drive space, CPU etc.

    Thanks,



  • Ok a couple more tips on running and Eco server under Linux

    so this is the script I use to start my server it is a simple and
    dirty script I use to start my eco server

    Once you create it remember to chmod 700 start-server.sh

    I call it start-server.sh

    #/bin/sh
    mono EcoServer.exe -nogui &

    I made a script to run to find the process ID to be able to kill the server

    once you recreate this file remember to chmod 700 find-server.sh

    I call this find-server.sh

    #/bin/bash
    ps -aef | grep -v grep | grep 'EcoServer.exe' | awk '{print $2}'

    That is all it is.. what it will do is print out the PID of the process for your EcoServer.exe
    very short and dirty but it works well for me on Debian. If it doesn't return anything that means
    the server is not running.

    Another issue I found was that how do you get access to the admin commands running the server on Linux

    The first thing you need is your steam64id or slgid

    To get the slgid go to https://ecoauth.strangeloopgames.com/home

    And log into your account the slgid will be called your User ID: it will look something like this
    slg666666

    I do not know how to get the steam id since I am not a steam user sorry.

    Now I found a really good guide on how to setup your server so it
    recognizes you as an admin the guide is at

    https://pingperfect.com/phpbb/viewtopic.php?f=97&t=1467

    you have to go into the Configs directory and edit the Users.eco file
    go down to where it says Admins Now my config file looks something like this my ID
    has been changed here in this example

    If you have to add two people all you do is add a comma for example

    "slg666666", "slg666667"

    This is an example for Beta 7.2.5 that I am using

    "Admins": {
    "$id": "4",
    "System.String": {
    "$type": "System.Collections.Generic.List`1[[System.String, mscorlib]], m$
    "$values": [
    "slg666666"
    ]
    }
    },

    I hope that this helps everyone out



  • I had no idea anyone ever posted here, I'm sorry guys I just got on here to grab a screenshot of the old bugs. Anyways I don't often check this forum, Please reach out to me on the official Discord in the Linux discussion channel, I'm more then willing to help you and have even made tools to make it easier. Hope to see you there and just Mention me and i'll get back to you.



  • @AngelEpa Did you ever figure out how to get past your "Failed to start UDP client, LAN discovery may not be available." problem?



  • There is a problem. After leaving the putty console the server switches off. What should I do to make it work?



  • @Acheron
    Run it in screen:
    screen -AdmS eco mono /path-to-exe/EcoServer.exe -nogui.

    @kicker22004
    I got another problem. In the first post it says mono version 5.4+ but atm mono only released 5.14?!
    Can someone help me there?
    Edit: Ah I get it. 0.4 is lower than 0.14. Even if that numbering is a bit odd.
    Still I cant run a server.
    It just quits at 100% without an error.
    Running Debian Stretch.


Log in to reply