Code Monkey home page Code Monkey logo

Comments (17)

mmmaxwwwell avatar mmmaxwwwell commented on June 28, 2024 1

When i'm developing using this container, switching between host and a few forwarded ports fixes it most times for a bit. Then it breaks again in a few mins, but I wasn't setting the external IP in the config file.

Restarting containerd and docker help sometimes too, but every fix seems to encounter the same error after a few restarts, in my experience.

I expect you to run into the same problrm again soon. Please report back if you do, and if you run it for a few days and its fine, please report that back too!

from space-engineers-dedicated-docker-linux.

whodat avatar whodat commented on June 28, 2024 1

Yeah great work on keeping this going! I did end up disabling my SE container and running it under a VM for now. Were too many minor issues (No remote admin, this "No IP assigned" error, and then started getting "given key was not present in the directionary" errors).

With that last error, my world would not load, but I can load new worlds. It seems to happen when the world gets more complex as we play on it for a few weeks. (I clean a bunch of stuff up, removing entities, etc, and still no go).

The same exact world on a Wndows VM SE server works great. So yeah am back with running it on a Windows VM for now (sigh). I do like having my remote admin back though! Will definately keep an eye on this docker container though, great work! And your idea with the dynamically spawned instances on seperate containers sounds pretty durn cool!

from space-engineers-dedicated-docker-linux.

pyro000 avatar pyro000 commented on June 28, 2024 1

In this old source code of SE

            UInt32 ip = 0;
            UInt64 id = 0;

            int timeout = 100;
            while (ip == 0 && timeout > 0)
            {
                SteamSDK.SteamServerAPI.Instance.GameServer.RunCallbacks();

                Thread.Sleep(100);
                timeout--;

                ip = SteamSDK.SteamServerAPI.Instance.GameServer.GetPublicIP();
                id = SteamSDK.SteamServerAPI.Instance.GameServer.GetSteamID();
            }

            MySandboxGame.Services.SteamService.UserId = id;

            if (ip == 0)
            {
                MyLog.Default.WriteLineAndConsole("Error: No IP assigned.");
                return;
            }

            var ipAddress = IPAddressExtensions.FromIPv4NetworkOrder(ip);

It seems like Steam is handling the Public IP recognition, which is unnecesary when we define the ip in SpaceEngineersDedicated.cfg.

from space-engineers-dedicated-docker-linux.

Merith-TK avatar Merith-TK commented on June 28, 2024 1

from space-engineers-dedicated-docker-linux.

whodat avatar whodat commented on June 28, 2024

Yeah I have been getting this randomly as well for ..hmm...the last few months?.... Posted about it here: Devidian/docker-spaceengineers#19 (which appears to be a fork of this one?)

I just keep restarting the docker until it works. Sometimes takes a couple restarts, sometimes more. The fact that I restart the server every day at 4am componds the issue. Considering changing the cron job script so that it re-tries about 10 times until the docker is successfully running.

from space-engineers-dedicated-docker-linux.

mmmaxwwwell avatar mmmaxwwwell commented on June 28, 2024

I can't really say the container is mine persay, but I've been the driving force of why this exists currently. This could change in the future, I found lots of abandoned, once working but now broken docker containers on my way here. I started off based on others work, got it most of the way, and then devidian jumped in and connected the last piece I was missing. Since then I redid the entire thing to use wine6 so we didn't need devidian's workaround for the winetricks stuff, which was great when we needed it but added complexity. Just like the people that are 'self taught' are really just learning from others and riding the coat tails of those that came before them. I'm super thankful and grateful for devidian's and everyone else's contribution to this project.

I'd really like to get a fix for this, this docker container is step 1 of this far fetched idea I have that involves multiple worlds that are networked together. I know torch can do some of this stuff, but I've had some bad experiences with torch servers in the past, and I really want to limit the number of vendors I depend on here.

Imagine you and some friends join my world, get bases set up and then everyone brings a grid to some NPC or admin station, then presses a button. A new docker container with a prebuilt scenario is spun up, and the players and grids in the area are moved to the new docker instance where they will work to complete an objective and their performance could be evaluated and quantified.

This isn't just a moonshoot, I've actually implemented a POC plugin, webserver and single page application that let users control the functional block's control panel settings. It was terribly coded and probably full of security holes, but it worked great. I'm just now embarking on the journey to make this next step toward my vision a reality.

That being said, if I want to spin up a new networked world and it doesn't go for a minute or so, that's a problem for the users. Its going to ruin the experience. It needs to be rock solid if I'm going to depend on it.

I'm at a loss for what to do, maybe we can try stepping through the docker container with a disassembler somehow and see what the DS is evaluating before it emits that no IP error.

from space-engineers-dedicated-docker-linux.

Devidian avatar Devidian commented on June 28, 2024

I write it down here too, seems that keen has implemented some magic "find my external ip" into the dedicated server that is causing this error sometimes. So in this case we can do nothing to fix this.

https://support.keenswh.com/spaceengineers/pc/topic/error-no-ip-assigned

Also this topic seems to be abandoned and not yet fixed.

@mmmaxwwwell your multi-server idea sounds like my idea i had for years for several games (including se). In my case i had the idea to connect servers through a modified stargate-mod, but with servers already up - because spin up time is long enougth even without this damn bug.

from space-engineers-dedicated-docker-linux.

Devidian avatar Devidian commented on June 28, 2024

I've opened an issue in the official github

KeenSoftwareHouse/SpaceEngineers#611

i know they dont update the code there but maybe if we get enough loudness on this issue, they may fix it for the current code!

from space-engineers-dedicated-docker-linux.

msansen avatar msansen commented on June 28, 2024

As a workaround, setting the actual public ip in SpaceEngineers-Dedicated.cfg + setting the se-server network to host mode did the trick for me, only thing i'm still haven't figured out was the remote api. Great job to (all of) you :)

services:
  se-server:
    image: mmmaxwwwell/space-engineers-dedicated-docker-linux:latest
    container_name: space-engineers-dedicated-docker-linux
    restart: unless-stopped
    network_mode: "host"

from space-engineers-dedicated-docker-linux.

Devidian avatar Devidian commented on June 28, 2024

Hey Guys, they have closed the issue on their forum but said it should be re-opened when someone else encounters it, ... so i did: https://support.keenswh.com/spaceengineers/pc/topic/23166-error-no-ip-assigned

Would need some votes of course, so feel free to support that ticket

from space-engineers-dedicated-docker-linux.

Merith-TK avatar Merith-TK commented on June 28, 2024

having the issue myself lol

from space-engineers-dedicated-docker-linux.

mmmaxwwwell avatar mmmaxwwwell commented on June 28, 2024

Go vote and leave a comment on the keen site above if you have some time! Would really appreciate it!

from space-engineers-dedicated-docker-linux.

Merith-TK avatar Merith-TK commented on June 28, 2024

image

cant, sadly, I get a 401 error

from space-engineers-dedicated-docker-linux.

Devidian avatar Devidian commented on June 28, 2024

You have to be logged in on their site to see the forum. Anyway ticket seems to be opened now, maybe it finally gets fixed

from space-engineers-dedicated-docker-linux.

Devidian avatar Devidian commented on June 28, 2024

I had to reopen it again https://support.keenswh.com/spaceengineers/pc/topic/23390-error-no-ip-assigned

from space-engineers-dedicated-docker-linux.

RandomExplosion avatar RandomExplosion commented on June 28, 2024

Has anyone found a way to fix this? Or is the only reliable way to delete the server and start over?

from space-engineers-dedicated-docker-linux.

xyadelaide avatar xyadelaide commented on June 28, 2024

Has anyone found a way to fix this? Or is the only reliable way to delete the server and start over?

I think that the best way to do this is to just use a Windows VM unfortunately. I can't get this to work after trying a few fixes.

from space-engineers-dedicated-docker-linux.

Related Issues (20)

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.