1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Wine - Server Host has left the game

Discussion in 'Groups & Dedicated Servers' started by phit, Sep 12, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. phit

    phit Trainee Engineer

    Messages:
    15
    I installed the dedicated server successfully on Ubuntu 14.04 64bit running wine 1.7.50, the server starts fine no errors in the SpaceEngineersDedicated.log, but when anyone tries to join the connection times out with the generic error "Server Host has left the game". I know there are a few people running on the same setup, maybe someone here can point me in the right direction.
    I opened port 8766 and the specified gameserver port in iptables.

    What I've tried
    • different ports in the config
    • map generated on the server
    • map copied from a server on a windows DS
    • map generated ingame on windows
    • different wine versions 1.6 & 1.7
    • disable firewall
    • various serversettings


     
    Last edited: Sep 25, 2015
  2. Echillion

    Echillion Senior Engineer

    Messages:
    1,334
    Server host left means the server is unavailable to the players as to a solution I'm sorry I don't know
     
  3. moomin

    moomin Trainee Engineer

    Messages:
    84
    Perhaps you accidently kicked the server from the server? (but you've recreated everything it seems so doubt it's this)
    Also, when you boot the server,.. when it says it's up,.. its not entirely up yet,.. :) If that makes sense,..
    Give it a while before joining after starting the server? I've had people join to quickly after starting. Then they get disconnected,.. then reconnect before the ghost of that person has been removed from the server.

    Also, the clients are running the game with steam connected?
     
  4. phit

    phit Trainee Engineer

    Messages:
    15
    yeah, I let the server run for over a day and tried to join every so often. Same error every time.

    Yup, other servers work fine for everyone that tried to connect.

    Thanks for trying to help! If you have any other ideas you want me to try, shoot :p
     
  5. moomin

    moomin Trainee Engineer

    Messages:
    84
    Few more tries then :p
    follow these in order sorta,.. like

    1(server)- launch the 64b version.

    --edit:
    not sure if it's a log error,.. but your log says youre on windows and not ubuntu,.. why is that?
    2015-09-12 10:21:34.621 - Thread: 1 -> Environment.OSVersion: Microsoft Windows NT 5.1.2600 Service Pack 3

    2(client)- Your main problem seems to be this:
    Are you connecting to the server via lan? Or your interwebs ip adress?
    When i connect to my server (hosted in my lan) via interwebs it sometimes gives me a hard time.


    3(network)
    Your opening post says you've opened the ports in iptables. That is serverside only,.. (unless you have some fancypants router and were refering to this) so you didnt forget to open the ports on your router?Edit: derp another edit :D huzzah I'm trying to fuck up my server right now so i can replicate ur error Because apperantly it's broadcasting,..so traffic gets out. The client does not receive traffic though.
    Also,.. the dchp didnt decide to change the ip adress of your server im guessing ? :p
     
    Last edited: Sep 24, 2015
  6. MTXRooster

    MTXRooster Trainee Engineer

    Messages:
    60
    Hey Phit.. I'm also working on setting up a linux box to server SE.. Maybe you can help me and I can in turn help you. Tell me what you've got set up and I'll replicate it here and see if I Can get it running and report back. What OS? (specific including 32/64bit). What version of wine? (including 32/64bit). Did you you/apt-get it or compile from winehq? Where did you put the winetricks file, and what version did you get? Soon as ya reply, I'll get a system up and going.. ONly thing different will be the hardware, this will be on an Intel C2D 2.66 w/8GB RAM, for comparison sake, minus OS download time if it's not one I have handy here, I"ll be back within a couple hours of your reply post.
    He is running the SEDS script, created by a fellow on here to enable us to run the SE Dedicated Server on Linux boxes. This is tricky in it's own right as SE HAS no dedicated server for linux. Therefore, he/the script utilizes a program called WINE to emulate aspects of a windows box. I'm in the midst of trying to set one up myself these past few days, but have been hitting some other roadblocks.

    Your comments on router/NAT setup however are valid, though depending on how he's trying to connect to his server, it may not matter. IE, if he's clicking the LAN tab and trying to access it, it SHOULD see it and connect to it regardless of router/NAT settings. iptables/firewall on the linux box however, could be an issue. If he's looking and trying to connect via the internet, then router/NAT could be an issue, but there are signs for that.. His log (which I admittedly haven't looked at yet) would show the server unable to create a steam connection. Servers must have an active pulse to steam (or rather I suppose steam must be able to ping the server through the port specified by the server).. You can see on a regular running server, if you unplug the PC ethernet cord, or reset your cablemodem etc., if done during the right time the server cmd box will report loss of connection to steam. If he's not getting that successful connection, he will be unable to join his server, possibly even through LAN (unsure, speculation - 99% sure SE servers do not have an offline mode based on experience with a local server here and a previously bad cablemodem that would go out from time to time.. I'd lose connection to my SE server even when sitting right next to it when my modem would die...).. Anyway...
     
    Last edited: Sep 24, 2015
  7. moomin

    moomin Trainee Engineer

    Messages:
    84
    Well wine kinda gave it away :p But thought perhaps something else could/should end up there im rubbish at ubuntu/linuxstuff. (point me at cisco&citrix:p)

    Tbh, i don't think it's a networking issue,.. atleast, up till the linux box. Cuz really the routerpart is the easy thing.
    The server is able to connect to steam according to the logs. but something is causing the timeout. So since i didnt see any tests of all that just pointed it out :p takes least amount of time to check :p

    Tbh, i havent noticed my connection to my lan server dropping when i loose interwebs.
    I couldnt start it because of mods ofcourse. But could stay on it. If i look at the firewall settings in w2k8r2 it doesn't give u any leads unfrotunately beyond the 2 ports.

    It has to be the server somehow though, and unfortunately i'm not great at linux/ubuntu etc. But cuz you didnt read the log :) :) TL DR : :)
    the client is receiving a time-out. BUT. these logs are not of the same event though. One(server) is of 10:00ish and the other (client)16:00 ish. I just asumed it's the same every time.
     
  8. MTXRooster

    MTXRooster Trainee Engineer

    Messages:
    60
    Read through your logs. The proof is in this statment: You might want to re-edit the final log and remove your info from there (IP, steamid, etc).
    What distro of linus are you running and what version of wine / winetricks? I noted in the logs both wine and your OS are in 32-bit. Gonna try and recreate it here.
     
  9. phit

    phit Trainee Engineer

    Messages:
    15
    Ubuntu 14.04 64bit running wine 1.7.50 32bit with winetricks dotnet40, msxml3, vb6run
    to get wine i used this
    Code:
    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update
    sudo apt-get install wine1.7
    rm -r ~/.wine
    WINEARCH=win32 wine wineboot
    winetricks -q dotnet40
    winetricks -q msxml3
    winetricks -q vb6run
    
    you need 32bit wine because dotnet40 only works in 32bit under wine and the package is required for the server to launch

    server is hosted in a different timezone, it's the same event

    responding to 1. of you list: you can't run the 64bit server in wine
    for 2. server is hosted in a datacenter in canada I'm currently in germany
    3. why would I open the ports on my client? the game uses STUN for that, but anyways i tried that made no difference and I can connect to other servers just fine
     
  10. MTXRooster

    MTXRooster Trainee Engineer

    Messages:
    60
    You're not going to like this..

    I did exactly as you stated. I installed Ubuntu 14.04 with all the updates.
    I ran down the list you provided, literally coy/pasting. I installed screen. ran the ./start.sh setup, and copy/edited my cfg file to report the proper config file location. I ran ./start.sh again, server came right up. I verified this works both with LAN and regular Internet. I didn't even alter anything firewall wise on the Ubuntu box! Literally just changed the router forward rule from my win32 box (which is off) to the linux box.

    THat being said...

    I tried this several times. I originally tried on the last OS I had on the box, CentOS using VM to create an Ubuntu environment. It didn't work, but had a different issue (I could not see the server at all). As a full-fledged owning the computer OS, it runs just fine.

    I will now attempt to replicate this again through VM, as you guys are facing and see if I can figure out what the difference is.
     
  11. Tombstone

    Tombstone Trainee Engineer

    Messages:
    1
    I'm getting this same error, no idea at all what might be causing it, the server starts up fine, the connection just fails...

    Server side:
    2015-10-17 10:24:46.090 - Thread: 1 -> Server connected to Steam
    2015-10-17 10:24:46.090 - Thread: 1 -> Server PolicyResponse (1)
    2015-10-17 10:24:46.094 - Thread: 1 -> Updating continues.
    2015-10-17 10:24:46.207 - Thread: 1 -> GC Memory: 49,115,976 B
    2015-10-17 10:24:46.364 - Thread: 1 -> Game ready... Press Ctrl+C to exit
    2015-10-17 10:25:09.306 - Thread: 1 -> Peer2Peer_SessionRequest 76561197968659349
    2015-10-17 10:25:16.217 - Thread: 1 -> GC Memory: 50,006,496 B
    2015-10-17 10:25:24.541 - Thread: 1 -> User left

    Client side:
    2015-10-17 11:25:37.373 - Thread: 1 -> Requesting dedicated servers, filterOps: gamedir:Space Engineers;secure:1
    2015-10-17 11:25:39.180 - Thread: 1 -> Requesting dedicated servers
    2015-10-17 11:25:39.180 - Thread: 1 -> Requesting favorite servers, filterOps: gamedir:Space Engineers;secure:1
    2015-10-17 11:25:59.712 - Thread: 1 -> Peer2Peer_ConnectionFailed Timeout
     
Thread Status:
This last post in this thread was made more than 31 days old.