Teamspeak Server on VPS

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
codyhawkinz
New to forums
New to forums
Posts: 14
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Apr 09, 2015 1:44 pm

Teamspeak Server on VPS

Post by codyhawkinz »

My question is, why can I run the teamspeak server through 'root' but not with my other user? I'm running a San Andreas Multiplayer server on my other user and it's working fine.
I type in;"./ts3server_startscript.sh start"
Then this comes up:
"Do you have the right TS3 Server package for your system? You have: Linux x86_64, not Linux i386.
Starting the TeamSpeak 3 server
TeamSpeak 3 server started, for details please view the log file"

and it's exactly the same message I receive when running it from root and it works just fine through root. But I've heard it's better to run it through another user for safety reasons.
When I connect to the teamspeak server when running it through another user, it says;
<23:42:24> Trying to connect to server on xx.xxx.xx.xxx
<23:42:24> Failed to connect to server
Anyone who knows the reason behind this? Why it isn't working to run it through other users? Why it only works through root? How do I fix this?
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Teamspeak Server on VPS

Post by Edge100x »

Does it crash after saying that or does it seem to continue running?
codyhawkinz
New to forums
New to forums
Posts: 14
Joined: Thu Apr 09, 2015 1:44 pm

Re: Teamspeak Server on VPS

Post by codyhawkinz »

It continue running. I made sure of that by writing 'top' where I could see the ts3server running.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Teamspeak Server on VPS

Post by soja »

What does the teamspeak log say? Teamspeak has pretty good logging that will tell you if anything went wrong.

When looking through the logs, look for the one with _0.log, that is the log for the virtual TS server.
Not a NFO employee
codyhawkinz
New to forums
New to forums
Posts: 14
Joined: Thu Apr 09, 2015 1:44 pm

Re: Teamspeak Server on VPS

Post by codyhawkinz »

No logs appear when I run it through another user, only when running it through root.
So I doubt there's any useful information as it doesn't show any logs when I do it through another user.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Teamspeak Server on VPS

Post by soja »

Did you install the server as root? If the files are owned by root it would restrict your other user from being able to write files, or even read them.

try doing this on the teamspeak folder:

sudo chown -R user:user teamspeakfolder
Not a NFO employee
codyhawkinz
New to forums
New to forums
Posts: 14
Joined: Thu Apr 09, 2015 1:44 pm

Re: Teamspeak Server on VPS

Post by codyhawkinz »

I get this message "sudo: unable to resolve host (nameofhostthingy)"
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Teamspeak Server on VPS

Post by Edge100x »

Do it without "sudo" -- you don't need that when running as root.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Teamspeak Server on VPS

Post by soja »

codyhawkinz wrote:I get this message "sudo: unable to resolve host (nameofhostthingy)"
That is unrelated to teamspeak and should only be a warning. You can log into root and remove sudo from the command if you want.
Not a NFO employee
codyhawkinz
New to forums
New to forums
Posts: 14
Joined: Thu Apr 09, 2015 1:44 pm

Re: Teamspeak Server on VPS

Post by codyhawkinz »

It's working now, thank you for the support, both soja and Edge100x, really appreciated.
Post Reply