Native Linux server available


  • Developer

    Install

    Install 32-bit libraries (libstdc++, glibc) if needed

    The process varies. Prefix any commands with sudo if need be.

    Debian Jessie (Ubuntu and other Debian-based distros should be similar):

    dpkg --add-architecture i386
    apt-get update
    apt-get install libstdc++6:i386
    

    CentOS (other RHEL-based distros should be similar):

    yum install libstdc++.i686
    

    Get steamcmd

    mkdir ~/steam
    cd ~/steam
    wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
    tar zxf steamcmd_linux.tar.gz
    

    Download the dedicated server

    ./steamcmd.sh
    login anonymous
    app_update 220070
    

    Copy in some missing files

    Now some files that are missing from the Chivalry Linux dedicated server’s install (adjust paths so that “chivalry” is wherever the dedicated server is installed; the directories should all already exist):

    cp steam/linux32/steamclient.so steamapps/common/chivalry_ded_server/Binaries/Linux/lib
    echo 219640 > steamapps/common/chivalry_ded_server/Binaries/Linux/steam_appid.txt
    

    Note that you must log in anonymously to download it. Valve set it up somehow such that logged-in users can’t get it.

    Run it

    (of course, you’ll probably want to set up an init/systemd script to do this, might want to use screen, etc.; I’m not much of a Linux admin, so my advice is to look at other guides for this or other games, like https://wiki.teamfortress.com/wiki/Linux_dedicated_server and http://forums.tornbanner.com/showthread.php/3635-How-to-Linux-Dedicated-server-(WINE) ):

    cd ~/.local/share/Steam/steamapps/common/chivalry_ded_server/Binaries/Linux
    ./UDKGameServer-Linux aocffa-moor_p\?steamsockets\?adminpassword=changeme\?port=7000\?queryport=7010 -seekfreeloadingserver
    

    NB: we have bug currently where, should you run UDKGameServer-Linux from a different directory (not chivalry_ded_server/Binaries/Linux) it may delete some Steam-related files. Please cd into the Binaries/Linux directory (or otherwise set that as your working directory) before running it!

    The executable is a 32-bit one. You’ll need the standard set of 32-bit libraries from your distro to actually use it (e.g. 32-bit glibc, libstdc++, …).

    We have not migrated official servers to Linux so haven’t extensively tested it. Any feedback or bug reports would be appreciated. Thanks!

    Possible problems with solutions:

    The server segfaults shortly after starting

    Make sure you’re passing a valid map name to the executable, and are including -seekfreeloadingserver (see above)

    I can’t see the server in the server browser

    Set your QueryPort (in PCServer-UDKEngine.ini or in the command line as shown above) to something valid and Internet-accessible. Steam’s server browser will not NAT-punch.

    There’s some scary log output happening

    This is what you should expect to see after launching the server:

    [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
    Setting breakpad minidump AppID = 219640
    Loading library: libPhysXCooking.so
    Result of loading library libPhysXCooking.so: 0xaa0e780
    Loading library: PhysXUpdateLoader.so
    ERROR: PhysXUpdateLoader.so: cannot open shared object file: No such file or directory
    Result of loading library PhysXUpdateLoader.so: 0x0
    Loading library: libPhysXCore.so
    Result of loading library libPhysXCore.so: 0xaa0e500
    

    Yes, libPhysXCore and libPhysXCooking won’t load. Don’t need them. Yes, SteamAPI_Init() will initially spit out a fail; that’s something Steam-related, it will succeed the second time but doesn’t log anything for success.



  • Not having much luck.

    Steam>app_update 220070 -beta linuxtesting
    Update state (0x5) validating, progress: 0.00 (0 / 0)
    Success! App ‘220070’ fully installed.

    From the appmanifest:

    AppState"
    {
            "appid"         "220070"
            "Universe"              "1"
            "name"          "Chivalry: Medieval Warfare Dedicated Server"
            "StateFlags"            "4"
            "installdir"            "chivalry_ded_server"
            "LastUpdated"           "1421198167"
            "UpdateResult"          "0"
            "SizeOnDisk"            "0"
            "buildid"               "485806"
            "LastOwner"             ""
            "BytesToDownload"               "0"
            "BytesDownloaded"               "0"
            "AutoUpdateBehavior"            "0"
            "AllowOtherDownloadsWhileRunning"               "0"
            "UserConfig"
            {
                    "betakey"               "linuxtesting"
            }
            "MountedDepots"
            {
            }
    
    


  • Having the same problem downloading. Tried downloading using the -beta switch on windows and it just downloads the regular windows version, same thing when trying to choose the beta on the steam client itself.


  • Developer

    Yeah, we’re trying to work out what’s going on here. It looks like the appropriate depots aren’t being granted.



  • @CrustaceanSoup:

    Yeah, we’re trying to work out what’s going on here. It looks like the appropriate depots aren’t being granted.

    No issue, wanted to make sure I wasn’t at fault. I’ll be ready for testing once a fix is found.



  • Hi just to register my interest in the server app.
    I also had the same issue as above.



  • Update state (0x5) validating, progress: 0.00 (0 / 0)
    Success! App ‘220070’ fully installed.

    2 weeks later … still not working …



  • This post is deleted!


  • Any news here? Still wait for download and test linux server.



  • Still broken as of March 1st

    Torn Banner, whats going on over there??



  • @Tyguy7:

    Still broken as of March 1st

    Torn Banner, whats going on over there??

    From another thread
    @TBS:

    Yeah, I’m working with Valve to get [the packages] enabled…



  • Thanks for that response. Looking forward to setting up more west coast low rank servers.



  • It seems that you don’t need to use the beta code linuxtesting anymore since the latest linux dedicated server release is included in the default release now.

    Beta Code

    "AppState"
    {
        "appid"        "220070"
        "Universe"        "1"
        "name"        "Chivalry: Medieval Warfare Dedicated Server"
        "StateFlags"        "4"
        "installdir"        "chivalry_ded_server"
        "LastUpdated"        "1425466951"
        "UpdateResult"        "0"
        "SizeOnDisk"        "991794604"
        "buildid"        "502647"
        "LastOwner"        "76561201179592768"
        "BytesToDownload"        "244104384"
        "BytesDownloaded"        "244104384"
        "AutoUpdateBehavior"        "0"
        "AllowOtherDownloadsWhileRunning"        "0"
        "UserConfig"
        {
            "betakey"        "linuxtesting"
        }
        "MountedDepots"
        {
            "220072"        "1408652631493350438"
        }
    }
    
    

    Default

    "AppState"
    {
        "appid"        "220070"
        "Universe"        "1"
        "name"        "Chivalry: Medieval Warfare Dedicated Server"
        "StateFlags"        "4"
        "installdir"        "chivalry_ded_server"
        "LastUpdated"        "1425395080"
        "UpdateResult"        "0"
        "SizeOnDisk"        "1033114529"
        "buildid"        "535123"
        "LastOwner"        "76561200786622468"
        "BytesToDownload"        "254256336"
        "BytesDownloaded"        "254256336"
        "AutoUpdateBehavior"        "0"
        "AllowOtherDownloadsWhileRunning"        "0"
        "UserConfig"
        {
        }
        "MountedDepots"
        {
            "220072"        "4642553527372070934"
        }
    }
    
    

    Still not having any luck with getting it working on the Ubuntu server distribution.

    I’ve tried installing libopenal but it has not fixed the problem possibly someone here might be able to help me with this issue.


  • Developer

    How are you trying to download it? It may be that they only fixed it for anonymous downloading.

    I just tested, and downloaded the server, via:

    ./steamcmd
    login anonymous
    app_update 220070



  • @CrustaceanSoup:

    How are you trying to download it? It may be that they only fixed it for anonymous downloading.

    I just tested, and downloaded the server, via:

    ./steamcmd
    login anonymous
    app_update 220070

    I downloaded it as login anonymous.



  • @KoDusk:

    I downloaded it as login anonymous.

    OMG I can’t believe that worked. Sheesh. This whole time I just had to be anonymous.


  • Developer

    @KoDusk:

    Still not having any luck with getting it working on the Ubuntu server distribution.

    I’ve tried installing libopenal but it has not fixed the problem possibly someone here might be able to help me with this issue.

    Sorry, I saw the thread earlier but have been busy the last few days. Which openal have you installed? We’re only compiling 32-bit binaries for Linux right now, so you’ll need the 32-bit version. e.g., on Ubuntu, should be able to get it with something like: apt-get install libopenal:i386

    In any case, we can probably get rid of that and a number of other unnecessary dependencies for the server executable, I’ll make a note for us to look into that as a Patch 36 item.



  • After installing it anonymously when trying to launch I get an error:

    [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
    Segmentation fault (core dumped)

    Launch command was ./UDKGameServer-Linux AOCFFA-Arena3_P?steamsockets -seekfreeloadingserver

    This is a fresh install of Ubuntu 14.04



  • I’m getting the same generic error on Ubuntu 14.04 and there doesn’t appear to be any launch logs to shed any light on what may be wrong. I’m going to spin up an older version of Ubuntu (12.04) to see if it works any better.



  • Hi all! Here’s my report about my not working Chivalry Linux server, I’m under Ubuntu 12.04 LTS, this is where I got stuck:

    1 - You have to login anonymously to SteamCMD in order to be able to download the Linux server files. This is a first problem for me.
    2 - here is my command line result after trying to start a Linux server:

    om@no:~/chivalrybeta/Binaries/Linux$ ./UDKGameServer-Linux AOCCTF-Moor_p?steamsockets -Port=2222 -log=server.log -seekfreeloadingserver
    [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
    dlopen failed trying to load:
    steamclient.so
    with error:
    steamclient.so: cannot open shared object file: No such file or directory
    [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
    Loading library: libPhysXCooking.so
    Result of loading library libPhysXCooking.so: 0xa5d0780
    Loading library: PhysXUpdateLoader.so
    ERROR: PhysXUpdateLoader.so: cannot open shared object file: No such file or directory
    Result of loading library PhysXUpdateLoader.so: 0x0
    Loading library: libPhysXCore.so
    Result of loading library libPhysXCore.so: 0xa5d0500
    [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
    dlopen failed trying to load:
    steamclient.so
    with error:
    steamclient.so: cannot open shared object file: No such file or directory
    [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
    
    

    After that nothing happens, it stays there… If anyone can help, or dev can have a look… cheers.


Log in to reply
 

Looks like your connection to Torn Banner Forums was lost, please wait while we try to reconnect.