Comments (17)
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.
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.
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.
from space-engineers-dedicated-docker-linux.
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.
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.
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.
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.
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.
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.
having the issue myself lol
from space-engineers-dedicated-docker-linux.
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.
cant, sadly, I get a 401 error
from space-engineers-dedicated-docker-linux.
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.
I had to reopen it again https://support.keenswh.com/spaceengineers/pc/topic/23390-error-no-ip-assigned
from space-engineers-dedicated-docker-linux.
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.
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)
- "World folder does not exist; exiting" HOT 1
- Mods fail to download HOT 17
- Cannot start new world - Premade world not found HOT 6
- experimental mode not triggering HOT 2
- Several Python exceptions HOT 1
- Multiple issues while trying to get this to work HOT 6
- MODS HOT 12
- Fixing mod download error and running build not working for me HOT 4
- KeyValues Error: LoadFromBuffer: missing { (current key: '<!DOCTYPE') in file manifest [offset: 15] HOT 1
- Server reverting to initial save - couldn't access file HOT 2
- How to proceed with version upgrade with fixes? HOT 20
- Help with Getting Started HOT 4
- Can I turn off server autoshutdown after 12 hours of work? HOT 2
- How do you install plugins?
- Any easy way to fix file permissions? HOT 1
- Server version 1000, client 1202124, my last roadblock is just connectting via client HOT 1
- Config file overwritten on startup
- [v2] Can't get the server to start following the readme (Sandbox.sbc file does not exist) HOT 5
- Medival Engineers HOT 4
- can't start server HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from space-engineers-dedicated-docker-linux.