[Solved]Multiple public server issue (ubuntu linux)
Hello everyone,
I'm trying to setup multiple public server on the same physical server.
If I start 1 server, everything is fine, server info get pushed to the master server list.
Then if I start a second one, it will overwrite the first server on the master list.
If I start all of them at the same time, none of them get pushed to the master server list.
with the doomsday-shell-text, i monitor those server, and i don't have any error messages from the master server.
They all have their own separate ports, from 13209 to 13215
here's my config :
https://pastebin.com/WNRmuPMT
the line with the # sign are called by cron when the system boot.
Any help would be appreciated, and will result with nice & fancy server in north america
I'm trying to setup multiple public server on the same physical server.
If I start 1 server, everything is fine, server info get pushed to the master server list.
Then if I start a second one, it will overwrite the first server on the master list.
If I start all of them at the same time, none of them get pushed to the master server list.
with the doomsday-shell-text, i monitor those server, and i don't have any error messages from the master server.
They all have their own separate ports, from 13209 to 13215
here's my config :
https://pastebin.com/WNRmuPMT
the line with the # sign are called by cron when the system boot.
Any help would be appreciated, and will result with nice & fancy server in north america
Comments
My first guess is that the servers you start are using the same runtime directory, so they are identified as being the same server. Try setting a unique runtime directory for each server instance with the "-userdir" option.
In other words, add something like "-userdir ~/.doomsday/server{NN}" to the command line options.
As a side note, Doomsday comes with a Python script that helps manage multiple servers, although it is now slightly outdated after we moved to CMake. Nevertheless, for reference: https://github.com/skyjake/Doomsday-Engine/tree/master/doomsday/tools/host
When i enabled only 1 server at a time, i saw they were all being advertised on port 13209 on the master list. The weird thing is when I check the shell, they seems to be on their proper port :
+-+
| * Connect to... |
| Disconnect |
|-|
| localhost:13209 (Doom2 Canada Server; 0/8) |
| localhost:13210 (Heretic Canada Serve; 0/8) |
| localhost:13211 (Plutonia Canada Serv; 0/8) |
| localhost:13212 (TNT Canada Server; 0/8) |
| localhost:13213 (Hexen Canada Server; 0/8) |
| localhost:13214 (Hexen DK Canada Serv; 0/8) |
| localhost:13215 (Ultimate Doom Canad; 0/8) |
| Start local server |
|-|
| Scroll to bottom F5 |
| About |
| Quit Shell Ctrl-X |
+-+
F9:Menu >
Right now, The hexen server seems to be the advertised one, but we can't connect from the multiplayer tab because the server is listening on port 13213 and the master list think it's 13209. What I see in the list right now : ::ffff:69.159.111.128:13209 and should be ::ffff:69.159.111.128:13213, right ?
For what it's worth, I just tried starting a server via the Shell GUI app on macOS and a custom port was correctly announced to the master server. The same works for me using the -port option.
I'll have to redo this check later on Linux, though. Perhaps there is a platform-specific issue.
So ... yeah I guess this is a bug that is affecting linux only.
edit : I opened this bug : https://tracker.dengine.net/issues/2277