Running Multiple Servers On the Same Machine

Discussions and advertising of dedicated, private servers made by players, for players

Trekkan
 
Posts: 11
Joined: 21 Feb 2014, 06:30

Running Multiple Servers On the Same Machine

Post by Trekkan » 24 Dec 2014, 03:52

I have a server up and running and my players are enjoying that.

However now I want to do some testing on a server they aren't playing on. I'm getting an error that there is already an instance of the server running.

I've done the following:

copied my world_1.xml file to world_2.xml
Changed the ID to 2
Changed the name of the server
Changed the port

Copied the original dedicated server shortcut
Change that to reflect world 2

I get this error: <[shutdownRequest]onPostInit> Can't init server... looks like another instance is already started!

Interestingly at the top of the log I see these entries:

ECHO 2014-12-23 19:36:43.212 {02} <initServer> Init of DB interface
WARN 2014-12-23 19:36:43.218 {02} <initServer> CmServerInfoManager::loadLocalWorldsList() - world# 1 already registered. Skip config/world_2.xml
WARN 2014-12-23 19:36:43.218 {02} <initServer> DB::RS(0 ms) SHOW DATABASES LIKE 'lif_1';
WARN 2014-12-23 19:36:43.219 {02} <initServer> DB::noRS(0 ms) USE `lif_1`;

Not sure why it's skipping that config and then it's attempting to mess with the first instance. Possibly I've missed something (of course), but I'm not sure what else to change.

Thanks for any help!


Trekkan
 
Posts: 11
Joined: 21 Feb 2014, 06:30

Re: Running Multiple Servers On the Same Machine

Post by Trekkan » 24 Dec 2014, 04:43

Ok, I finally found the problem.

The shortcut that is automatically created uses the parameter "-world 1". This is where I copied it from as an example for my second instance.

But in order to start the second instance it should be "-worldid 2".

Return to Private Servers