Replies: 2 comments 5 replies
-
I'm not in a place where I can get to a computer and properly look at my notes, but least year when II be was trying to setup my multiple instances of a Valheim dedicated server on my Linux box, I ran into a problem that might be relevant. It doesn't make sense to me that this would be an issue inside docker containers, but as of last year, the Valheim code base (both dedicated server and client) fails spectacularly on systems with more than one nick, or more than one IP address. If I was faced with your problem, I'd start with focusing on the network side of things. First I'd make sure the containers are not been assigned multiple internal IP addresses. Then I'd try an experiment and swap around the network/port parts of each containers config to see if the stable/unhealthy statuses followed a specific set of port mapping assignments. Your log shows the healthy container as hand already been up for awhile. Maybe restart the healthy container to see if it suddenly goes unhealthy. If that happens, it's likely something new inside a recent update to the container image. I've also had the occasional container start unhealthy and sort itself out after a few hours. Good luck! |
Beta Was this translation helpful? Give feedback.
-
I was able to perform a workaround. I'm using three different docker-compose files to create the server instances. I started with a fresh install of Ubuntu 22.04. I learned when I was creating and testing them, it seemed as if the server TYPE variable did not work consistently with the BepInExFull and ValheimPlus parameters. Vanilla and BepInEx seemed to work fine. I created three different servers - 1x Vanilla and 2x BepInEx. All started and performed their healthchecks successfully. I then went in to one of the BepInEx servers and added variables for mods, which worked. I went into the other and installed ValheimPlus manually. This worked as well. End result on the production machine: In the end, I'm sure I could now consolidate the docker-compose files, but I would then still have to install ValheimPlus manually again, presumably because of the TYPE variable not functioning as expected. My next goal is to figure out how to do the same thing in Kubernetes or ECS! |
Beta Was this translation helpful? Give feedback.
-
Hello! I cannot seem to create multiple instances. When I bring the containers up, only one server shows as healthy:
Here is my docker-compose.yml file, with some slight omissions for server details:
Here is some output from valheim_server.log (valheim_server.err did not seem to catch anything out of the ordinary):
Is there something special I need to do with multiple NICs (I only have a single NIC)? I was assuming since different ports were mapped to each server that this would not be the case. Please let me know what I am doing wrong. Thanks for all of your work you have done on this. It is a great solution!
Beta Was this translation helpful? Give feedback.
All reactions