Author Topic: Running two soldat serves on one VPS  (Read 3952 times)

0 Members and 1 Guest are viewing this topic.

Offline Balrog

  • Major(1)
  • Posts: 19
Running two soldat serves on one VPS
« on: October 01, 2014, 02:59:03 am »
Hi!

I have my own VPS server, with www, one soldat server and one separate ftp server for IP camera. I dont have firewall on it, and when I set first soldat server I didnt need to open ports for it(its run on port that I set in soldat.ini    eg. 23083).
This soldat server I run as a separate user in screen, and I have no problem with it at all. And Because I still have some power on this VPS i want to run second server, but after creating new user, uploading all files, set up them and running screen i get this:

Code: [Select]
bash: ./soldatserver: Text file busy
Im not too good at linux, most of help I get from my notes where I write all needed commands that I find on internet, but I cant find anything about running two identical servers on one IP...

I would be happy to get info how to run two server on one VPS :]

Offline Balrog

  • Major(1)
  • Posts: 19
Re: Running two soldat serves on one VPS
« Reply #1 on: October 02, 2014, 11:18:08 am »
I know that you all pissing yourself like puppies thinking about new version of Soldat(its nothing bad so dont feel offended), but I would be glad if there are people that care not only about what they want in next version, but people that know how to make this game alive and are not afraid to help others.
Because Server = Players
And Players = Soldat is still known and everyone are happy...

Of course Im not saying that my server is cure to cancer but I have "few" players(my current server have average 4-16 players between 16:00-22:00), and I have few ideas to run second server that would not be empty like most of copy/paste ctf or climb servers :]


Beside I would like to know why I cant set second server on my VPS... and maybe other people would be glad when they gonna get the same problem in the future :]

Offline darDar

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 794
    • #Soldat Gather - Community on Discord
Re: Running two soldat serves on one VPS
« Reply #2 on: October 02, 2014, 11:52:51 am »
I have no idea and I've been running servers for years. Are you sure you have a different port set on your other server folder? That's the only reason I could think of right now.

I usually run the server via ./soldatserver -d but I guess that won't help you. You can try it though.
Soldat Gather 'Matchmaking Community on Discord'

gather.soldat.pl

| My Maps: ctf_Pyramid, ctf_Replay, ctf_Blako, ctf_R6, ctf_Ntex, ctf_Caro, ctf_Bizar & vs_mode mappack |

Offline CheeSeMan.

  • Flagrunner
  • ****
  • Posts: 731
  • WOOT SLIPPERY PICKLES
Re: Running two soldat serves on one VPS
« Reply #3 on: October 10, 2014, 02:44:56 pm »
Yeah I never had a problem running multiple servers off one VPS, trying pming zakath or fryer they know a lot more about linux and may be able to give you the answer. Post some screenshots of the error if you can.
Banana Banging since summer 2008!     
cB. Cheeky Bananas                
#CheekyB.Soldat

Offline ]{ing

  • Major(1)
  • Posts: 17
Re: Running two soldat serves on one VPS
« Reply #4 on: October 14, 2014, 03:33:21 am »
I'm not sure if I can fix your problem. But I do run like 3 servers of a linux vps. I don't use screen or set up different users the way you described.
All I really had to do was just copy my original server to another location and just start it up. I use nohup command to run them:
Code: [Select]
nohup ./soldatserver -p 1337 > /dev/null &This approach works for me 100% of the time.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Running two soldat serves on one VPS
« Reply #5 on: October 14, 2014, 03:59:39 am »
I'm not sure if I can fix your problem. But I do run like 3 servers of a linux vps. I don't use screen or set up different users the way you described.
All I really had to do was just copy my original server to another location and just start it up. I use nohup command to run them:
Code: [Select]
nohup ./soldatserver -p 1337 > /dev/null &This approach works for me 100% of the time.


Yeah, I have a feeling the OP in this thread is trying to run them all from the same folder.
There are other worlds than these

Offline Balrog

  • Major(1)
  • Posts: 19
Re: Running two soldat serves on one VPS
« Reply #6 on: October 14, 2014, 05:44:57 am »
Im not running them from the same folder...(I have no idea why you even get this feeling)

first server is in home/soldat1/server1 and its run in screen by user soldat1

second server is in home/soldat2/server_beta and Im trying to run it by user soldat2

and why Im run them as a users? because different people gonna use those servers and they need accounts to maintain them via puTTy and FTP
I tried different folders and even run as root(and everyone should  know that its not recommended to run it as a root) with or without screen everytime I get this message: "bash: ./soldatserver: Text file busy"

I have loots of processes running on this server, mostly camera monitoring and two sites and separate FTP for backup I thought its because of that, but nope its not power/resources of my VPS because for few days I had CS server running on it, and it didnt had any problem at all.

Offline Moroes

  • Soldier
  • **
  • Posts: 165
    • Soldat-Game.eu
Re: Running two soldat serves on one VPS
« Reply #7 on: October 14, 2014, 06:02:51 am »
Why? I think that error means that a file is already used by another process, that's why the feeling. Maybe try lsof cmd to get more info. But I've never seen this problem and I am just guessing.

Offline Balrog

  • Major(1)
  • Posts: 19
Re: Running two soldat serves on one VPS
« Reply #8 on: October 14, 2014, 06:12:40 am »
I also never saw this error when I was running other games, I have no problem when I even run two CS servers on those accounts...

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: Running two soldat serves on one VPS
« Reply #9 on: October 14, 2014, 08:25:16 am »
Could it be file's permissions/owner related?
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Running two soldat serves on one VPS
« Reply #10 on: October 14, 2014, 11:39:28 am »
Could it be file's permissions/owner related?

Paste us

find /home/soldat1 /home/soldat2 -ls
There are other worlds than these

Offline ]{ing

  • Major(1)
  • Posts: 17
Re: Running two soldat serves on one VPS
« Reply #11 on: October 14, 2014, 02:08:45 pm »
Something is trying to modify the executable while you are trying to run it. Maybe you created the folder with the wrong user. Maybe it has wrong permissions. Maybe it's the client you're using. These are all just guesses. It's really difficult to say what the problem is without examining it closer. You could pm your ssh info and I can ssh into and check it out, but that is all I got.

Like Moroes said, use
Code: [Select]
lsof on the soldatserver executable to find out more info.