TM server fails to run on users other than root [linux]

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

Post Reply
Brewno
highway camper
highway camper
Posts: 4
Joined: 06 Aug 2010 14:35
Owned TM-games: TMUF

TM server fails to run on users other than root [linux]

Post by Brewno » 06 Aug 2010 14:45

Hello all, I have this weird issue that I cannot start my TM server on another user than root. Whenever I try to, it says
tm@***:~/tmf$ ./TrackmaniaServer /game_settings=MatchSettings/Nations/NationsBlue.txt /dedicated_cfg=dedicated_cfg.txt
Starting TmForever v2010-03-15...
Unable to open '/home/tm/tmf/Logs/ConsoleLog.31962.txt'
Segmentation fault
The exact same folder (copy pasted) works well when running as root:
root@***:~/TMF# ./TrackmaniaServer /game_settings=MatchSettings/Nations/NationsBlue.txt /dedicated_cfg=dedicated_cfg.txt
Starting TmForever v2010-03-15...
Initializing...
Configuration file : dedicated_cfg.txt
Loading system configuration...
...system configuration loaded
Loading cache...
...OK
Listening for xml-rpc commands on port 5000.
Trackmania server daemon started with pid=11496 (parent=11495).
Can anyone tell me what's wrong and if it's possible to run it as a regular user (running as root is always dangerous)?
Last edited by Xymph on 06 Aug 2010 16:49, edited 1 time in total.
Reason: Don't use size tags on whole posts...

User avatar
svens
speedy pilot
speedy pilot
Posts: 304
Joined: 05 Dec 2009 23:30
Owned TM-games: TMUF, TMS, TMO
Location: Bern, CH
Contact:

Re: TM server fails to run on users other than root [linux]

Post by svens » 06 Aug 2010 17:08

Recheck your permissions. Try chown -R or chmod -R (with correct parameters ofc) on your TMF/ folder.

If it doesn't help post more infos about your system (especially distro). Also check if the ports are too low for running as non-root.

Brewno
highway camper
highway camper
Posts: 4
Joined: 06 Aug 2010 14:35
Owned TM-games: TMUF

Re: TM server fails to run on users other than root [linux]

Post by Brewno » 06 Aug 2010 20:28

Permissions should be right I guess? I unzipped, and kinda installed the whole thing as that user. Not really sure how chmod and chown work exactly, but through my FTP client I set the whole folder to be readable, writable and executable by the owner.
Also, as far as I know, only the ports up till 1024 are unbindable by non-roots.

os: Ubuntu Linux 9.04 Jaunty

User avatar
Clinton
smooth traffic navigator
smooth traffic navigator
Posts: 241
Joined: 26 Jan 2008 20:56
Owned TM-games: TMU, TMN, TMO
Location: Dripping Springs, Texas
Contact:

Re: TM server fails to run on users other than root [linux]

Post by Clinton » 06 Aug 2010 21:21

Doesn't look like a permissions error to me. Segmentation faults are nasty.

Try setting the binary to 755 though.
Image

http://allgamer.net cheapest Trackmania server hosting with the best support. We also do VPS hosting, Dedicated Servers, and Web Hosting! Request a free 3 day trial for a VPS

clinton@teameo.net for more information.

Brewno
highway camper
highway camper
Posts: 4
Joined: 06 Aug 2010 14:35
Owned TM-games: TMUF

Re: TM server fails to run on users other than root [linux]

Post by Brewno » 06 Aug 2010 22:22

It is 755 according to my FTP client.

What exactly is a segmentation fault?

User avatar
svens
speedy pilot
speedy pilot
Posts: 304
Joined: 05 Dec 2009 23:30
Owned TM-games: TMUF, TMS, TMO
Location: Bern, CH
Contact:

Re: TM server fails to run on users other than root [linux]

Post by svens » 06 Aug 2010 23:10

When a program tries to access a "segment" (or page in modern OSs) from memory it doesn't have access to. It's quite difficult to track down those "bugs", especially if you don't have the source code.

"Unable to open '/home/tm/tmf/Logs/ConsoleLog.31962.txt'"
This message told me that you really *should* recheck your permissions.

Maybe your FTP program has a "recursive" function when setting the perms, try to use it. Make the user which should run your dedicated server owner of the files, this can be done in the shell by typing `chown -R [user] tmf/`.

And yeah, you only need root for 1024 or below.

Brewno
highway camper
highway camper
Posts: 4
Joined: 06 Aug 2010 14:35
Owned TM-games: TMUF

Re: TM server fails to run on users other than root [linux]

Post by Brewno » 06 Aug 2010 23:34

Wow! That last command did fix the problem :) thank you very much svens ^^

Post Reply