GithubHelp home page GithubHelp logo

lazalatin / space-engineers-dedicated-ubuntu-docker-server Goto Github PK

View Code? Open in Web Editor NEW
22.0 6.0 9.0 52 KB

This project aims to provide an ubuntu docker image in order to host a fully functional dedicated Space Engineers® Server under Linux OSes

License: GNU General Public License v3.0

Dockerfile 60.45% Shell 39.55%
docker space-engineers ubuntu1804-docker ubuntu gaming

space-engineers-dedicated-ubuntu-docker-server's People

Contributors

halkeye avatar lazalatin avatar littlefinix avatar mark-kubacki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

space-engineers-dedicated-ubuntu-docker-server's Issues

Server SimSpeed dropping

SimSpeed is at 1.00 ~1.02 then will drop around 0.88 for ~1s every 10s or so.

Still looking into it as simspeed drops can come from anywhere.
So really, how is your simSpeed : Stable, fluctuating, always bad ?

Removed All InGame Causes that i could think of :

  • Mods
  • EmptyWorld
  • No Asteroids / Planet
  • Drop Containers
  • Encounters
  • Drones
  • Cargo Ships
  • Economy
  • Ingame Scripts
  • Experimental Mode
  • Airtightness
  • Oxygen
  • World Size
  • Trash Removal
  • World Size

I've included the Sandbox.sbc for reference

Sandbox.zip

Error starting Steam dedicated server

I followed the instructions in the readme... Dockerfile built just fine as far as I can tell. However, when I run docker-compose up, I get the following error message:

space_1  | Connecting anonymously to Steam Public...Logged in OK
space_1  | Waiting for user info...OK
space_1  | Success! App '298740' already up to date.
space_1  | /entrypoint.sh: line 47: warning: command substitution: ignored null byte in input
space_1  | 002d:err:ole:CoGetContextToken apartment not initialised
space_1  | 2020-01-23 04:15:47.580: App Version: 01_193_103
space_1  | 2020-01-23 04:15:47.583: Is official: True [NO][NIS][NAMP]
space_1  | 2020-01-23 04:15:47.583: Environment.ProcessorCount: 8
space_1  | 002f:err:vulkan:wine_vk_init Failed to load Wine graphics driver supporting Vulkan.
space_1  | 002f:err:module:find_forwarded_export module not found for forward 'winevulkan.wine_vkGetInstanceProcAddr' used by L"C:\\windows\\system32\\vulkan-1.dll"
space_1  | 2020-01-23 04:15:47.699: Environment.OSVersion: Microsoft Windows 7 Professional (Microsoft Windows NT 6.1.7601 Service Pack 1)
space_1  | 2020-01-23 04:15:47.699: Environment.CommandLine: "C:\SpaceEngineersDedicatedServer\DedicatedServer64\SpaceEngineersDedicated.exe" -noconsole -ignorelastsession -ip 0.0.0.0 -path C:\users\root\AppData\Roaming\SpaceEngineersDedicated
space_1  | 2020-01-23 04:15:47.699: Environment.Is64BitProcess: True
space_1  | 2020-01-23 04:15:47.699: Environment.Is64BitOperatingSystem: True
space_1  | 2020-01-23 04:15:47.700: Environment.Version: .NET Framework 4.7.3062.0
space_1  | 2020-01-23 04:15:47.700: Environment.CurrentDirectory: C:\SpaceEngineersDedicatedServer
space_1  | 2020-01-23 04:15:47.865: CPU Info: AMD FX(tm)-8350 Eight-Core Processor
space_1  | 002b:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Diagnostics.AsyncCausalityTracer"
space_1  | 2020-01-23 04:15:50.167: Bind IP : 0.0.0.0:27016
space_1  | 2020-01-23 04:15:53.307: Error starting Steam dedicated server
seds_space_1 exited with code 255

What's going on here? I would be happy to provide more info if needed. Thanks!

(minor) Dockerfile cache cleanup

Thank you for this project. Just one minor suggestion for your Dockerfile:

You always try to clean up your apt-get installation caches etc. but this is without real effect if you do it in a separate layer (in a separate RUN instruction).
See the official Docker best practices guide to see how to cleanup apt-get cache.

If you split them in separate RUN instructions the final image will have a layer with all the caches and a layer with instructions to delete the files. You will not save anything in your final image.
Always cleanup the mess in same RUN instruction.

ERROR: Service 'space' failed to build: Error parsing reference: "ubuntu:18.04 as preStage" is not a valid repository/tag: invalid reference format

docker-compose version 1.18.0, build 8dd22a9

Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64
Go version: go1.10.3
Git commit: 7f2769b/1.13.1
Built: Sun Sep 15 14:06:47 2019
OS/Arch: linux/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64
Go version: go1.10.3
Git commit: 7f2769b/1.13.1
Built: Sun Sep 15 14:06:47 2019
OS/Arch: linux/amd64
Experimental: false

Service 'space' failed to build:

I am starting the Container by docker-composer up from my console. Any help here? (Sry if this mighty be a noobish question, hardly ever worked with Docker though :/ (Docker-ce and Docker Composer where updated)
Error is:

The command '/bin/sh -c dpkg --add-architecture i386 && wget -nc https://dl.winehq.org/wine-builds/winehq.key && apt-key add winehq.key && rm winehq.key && add-apt-repository https://dl.winehq.org/wine-builds/ubuntu/ && add-apt-repository ppa:cybermax-dexter/sdl2-backport && apt-get -q update && apt-get --no-install-recommends --no-install-suggests -y install winehq-devel wine-devel wine-devel-i386 wine-devel-amd64 && rm -rf /root/.wine && env WINEDLLOVERRIDES="mscoree,mshtml=" wineboot --init && xvfb-run winetricks --unattended vcrun2013 vcrun2017 && wineboot --init && winetricks --unattended dotnet472 corefonts dxvk && apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/{apt,dpkg,cache,log}/' returned a non-zero code: 1

Error: No IP assigned.

I get the following error:

`space_1  | Connecting anonymously to Steam Public...Logged in OK
space_1  | Waiting for user info...OK
space_1  | Success! App '298740' already up to date.
space_1  | 00c0:err:vulkan:wine_vk_init Failed to load Wine graphics driver supporting Vulkan.
space_1  | 00c0:err:module:find_forwarded_export module not found for forward 'winevulkan.wine_vkGetInstanceProcAddr' used by L"C:\\windows\\system32\\vulkan-1.dll"
space_1  | 2020-06-06 23:28:04.150: App Version: 01_194_211
space_1  | 2020-06-06 23:28:04.185: Is official: True [NO][NIS][NAMP]
space_1  | 2020-06-06 23:28:04.185: Environment.ProcessorCount: 8
space_1  | 2020-06-06 23:28:04.223: Environment.OSVersion: Microsoft Windows 7 Professional (Microsoft Windows NT 6.1.7601 Service Pack 1)
space_1  | 2020-06-06 23:28:04.223: Environment.CommandLine: "C:\SpaceEngineersDedicatedServer\DedicatedServer64\SpaceEngineersDedicated.exe" -noconsole -ignorelastsession -ip 0.0.0.0 -path C:\users\root\AppData\Roaming\SpaceEngineersDedicated
space_1  | 2020-06-06 23:28:04.223: Environment.Is64BitProcess: True
space_1  | 2020-06-06 23:28:04.223: Environment.Is64BitOperatingSystem: True
space_1  | 2020-06-06 23:28:04.224: Environment.Version: .NET Framework 4.7.3062.0
space_1  | 2020-06-06 23:28:04.225: Environment.CurrentDirectory: C:\SpaceEngineersDedicatedServer\DedicatedServer64
space_1  | 2020-06-06 23:28:04.225: CPU Info: Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
space_1  | Computer does not meet minimum requirements, forcing Experimental mode
space_1  | 00c0:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Diagnostics.AsyncCausalityTracer"
space_1  | 2020-06-06 23:28:10.103: Bind IP : 0.0.0.0:27016
space_1  | dbus[44]: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file ../../../dbus/dbus-connection.c line 3543.
space_1  | This is normally a bug in some application using the D-Bus library.
space_1  |
space_1  |   D-Bus not built with -rdynamic so unable to print a backtrace
space_1  | wine: Assertion failed at address 00007FB614129E97 (thread 005c), starting debugger...
space_1  | 0154:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
space_1  | 0154:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
space_1  | 2020-06-06 23:28:29.521: Error: No IP assigned.

The ip in resources/SpaceEngineers-Dedicated.cfg is set to 0.0.0.0

Changing which save file is loaded

Best way i've found to change which save to load :

  1. Change the WORLD_NAME in docker-compose.yml to match the save* you want to load.
    ( * : folder name in/opt/SpaceEngineersDedicated/Saves)

  2. Delete SpaceEngineers-Dedicated.cfg from /opt/SpaceEngineersDedicated.
    ( make a backup ? )

  3. Restart your server

sed: read error on stdin: Is a directory

username@host:~/docker/SpaceEngineers$ docker-compose up Recreating spaceengineers_space_1_cb2810cadaed ... done Attaching to spaceengineers_space_1_cb2810cadaed **space_1_cb2810cadaed | sed: read error on stdin: Is a directory** spaceengineers_space_1_cb2810cadaed exited with code 4

I configured everything as said in the readme. I'm running on an ubuntu server installation

Preloader warning

I set my server up on fresh host. After I started server it shows me these strange warnings:
https://gyazo.com/31e49c9257c6f7ff5d2f738b53898e99
And then I join the server it's laggy and it's unable to play (only several fps). I use VPS to run this with these specs:
8 vCPU
24 GB
and Ubuntu 18 OS 64 bit
So I assume that I have resourses for powering the server but something is wrong here.
After I searched in google for this particular thing, I found that it has something to do with wine.

Build on linux server failed because Display

I can't create the image.

0054:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0054:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0053:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0053:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
------------------------------------------------------
Note: command wine vcredist_x86.exe /q returned status 120. Aborting.
------------------------------------------------------
ERROR: Service 'space' failed to build: The command '/bin/sh -c dpkg --add-architecture i386 &&     wget -nc https://dl.winehq.org/wine-builds/winehq.key &&     apt-key add winehq.key &&
 rm winehq.key &&     add-apt-repository https://dl.winehq.org/wine-builds/ubuntu/ &&     add-apt-repository ppa:cybermax-dexter/sdl2-backport &&     apt-get -q update &&     apt-get --n
o-install-recommends --no-install-suggests -y install         winehq-devel wine-devel wine-devel-i386 wine-devel-amd64         &&     rm -rf /root/.wine &&     env WINEDLLOVERRIDES="msco
ree,mshtml=" wineboot --init &&     xvfb-run winetricks --unattended vcrun2013 vcrun2017 &&     wineboot --init &&     winetricks --unattended dotnet472 corefonts dxvk &&     apt-get cle
an autoclean && apt-get autoremove -y && rm -rf /var/lib/{apt,dpkg,cache,log}/' returned a non-zero code: 1

Can build this without display or x screen?

Server config does not reflect what the server is actually running

Been playing with SpaceEngineers-Dedicated.cfg ( both in ./resources and the one in /opt/SpaceEngineersDedicated )

Some options seems to be ignored on server reboot :

  • Survival
    Server stays on Creative

Is there a 3rd cfg files hidden somewhere?
Do I need to do something special for a server reboot ( more than simply $ sudo docker-compose up ? )

Can't access remote admin

hey i'm unable to access the remote admin with the remote admin console. had it on same subnet, when test on my win pc going to the http and port uses brings up a error page, for the docker just sits at waiting to respond. dont think the remote admin port being properly forwarded from docker, dunno new to dockers.

Unable to create a freshly generated world

Up until now I did not manage to generate a new world only using the console/terminal. Only already generated worlds were sufficient.

I have to investigate more into how this enhancement could be achieved.

Constant low CPU usage

There are 2 problems I would like to ask about:

  1. Every 5-20 seconds, my server sim CPU load spikes up to >80% for less than 1 second and then goes back down to a steady 15%-18%. This causes character movement (especially noticeable when within 5m-10m of any stationary object) to jerk back/slow down for a second. I have tried connecting both via LAN and WAN with no noticeable difference in performance so I don't think this is a networking issue.

  2. Average CPU load is usually between 30%-50%. This is the same whether I run my empty world and get a constant 1.00 sim speed or if I run my modded world and get a relatively steady 0.40-0.50 sim speed. Is there any way to allow/force the server to utilize more of my CPU/more cores? I have an older AMD fx-8350 8 core CPU in my server and 16gb of ram.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.