Greetings!
Something still doesn't seem to be right, though.
When starting Teamspeak as user root (don't worry, none of the ports associated with TS are accessible from the 'Net right now), the server starts up just fine. However, when attempting to start it as a normal user, things go haywire.
Here's the log from TS when starting as root:
Code:
2018-08-12 14:24:58.999040|INFO |ServerLibPriv | |TeamSpeak 3 Server 3.3.0 (2018-07-31 16:10:01)
2018-08-12 14:24:58.999402|INFO |ServerLibPriv | |SystemInformation: Linux 4.17.12-1-default #1 SMP PREEMPT Fri Aug 3 06:36:01 UTC 2018 (ef4920c) x86_64 Binary: 64bit
2018-08-12 14:24:59.002267|INFO |DatabaseQuery | |dbPlugin name: MariaDB plugin, version 3, (c)TeamSpeak Systems GmbH
2018-08-12 14:24:59.002372|INFO |DatabaseQuery | |dbPlugin version: 2
2018-08-12 14:24:59.066236|WARNING |Accounting | |Unable to open /opt/teamspeak/licensekey.dat, falling back to limited functionality
2018-08-12 14:24:59.066927|INFO |Accounting | |Licensing Information
2018-08-12 14:24:59.066990|INFO |Accounting | |licensed to : Anonymous
2018-08-12 14:24:59.067034|INFO |Accounting | |type : No License
2018-08-12 14:24:59.067107|INFO |Accounting | |starting date : Sun Jul 1 00:00:00 2018
2018-08-12 14:24:59.067151|INFO |Accounting | |ending date : Wed Jul 31 00:00:00 2019
2018-08-12 14:24:59.067191|INFO |Accounting | |max virtualservers: 1
2018-08-12 14:24:59.067232|INFO |Accounting | |max slots : 32
2018-08-12 14:24:59.104394|INFO | | |myTeamSpeak identifier revocation list was downloaded successfully - all related features are activated
2018-08-12 14:24:59.993148|INFO | | |Puzzle precompute time: 832
2018-08-12 14:24:59.993997|INFO |FileManager | |listening on 0.0.0.0:30033, [::]:30033
2018-08-12 14:25:00.018190|INFO |Query | |listening for query on 0.0.0.0:10011, [::]:10011
2018-08-12 14:25:00.018391|INFO |CIDRManager | |updated query_ip_whitelist ips: 127.0.0.1/32, ::1/128,
However, when I try the same thing as user teamspeak (I have created both the uid and the gid "teamspeak" so I'm using both when starting), things start to break down. Here's what Teamspeak provides in that case:
Code:
2018-08-12 14:33:29.150985|INFO |ServerLibPriv | |TeamSpeak 3 Server 3.3.0 (2018-07-31 16:10:01)
2018-08-12 14:33:29.155021|INFO |ServerLibPriv | |SystemInformation: Linux 4.17.12-1-default #1 SMP PREEMPT Fri Aug 3 06:36:01 UTC 2018 (ef4920c) x86_64 Binary: 64bit
2018-08-12 14:33:29.167724|INFO |DatabaseQuery | |dbPlugin name: MariaDB plugin, version 3, (c)TeamSpeak Systems GmbH
2018-08-12 14:33:29.167824|INFO |DatabaseQuery | |dbPlugin version: 2
2018-08-12 14:33:29.268368|WARNING |Accounting | |Unable to open /opt/teamspeak/licensekey.dat, falling back to limited functionality
2018-08-12 14:33:29.268674|INFO |Accounting | |Licensing Information
2018-08-12 14:33:29.268712|INFO |Accounting | |licensed to : Anonymous
2018-08-12 14:33:29.268743|INFO |Accounting | |type : No License
2018-08-12 14:33:29.268783|INFO |Accounting | |starting date : Sun Jul 1 00:00:00 2018
2018-08-12 14:33:29.268814|INFO |Accounting | |ending date : Wed Jul 31 00:00:00 2019
2018-08-12 14:33:29.268842|INFO |Accounting | |max virtualservers: 1
2018-08-12 14:33:29.268870|INFO |Accounting | |max slots : 32
2018-08-12 14:33:29.416444|INFO | | |myTeamSpeak identifier revocation list was downloaded successfully - all related features are activated
2018-08-12 14:33:29.769150|ERROR |Accounting | |failed to register local accounting service
2018-08-12 14:33:30.219796|INFO | | |Puzzle precompute time: 637
2018-08-12 14:33:30.219992|ERROR |FileHelp | |CustomFileHelpers::createDirectory _wmkdir files -1 13
2018-08-12 14:33:30.220029|CRITICAL|VirtualSvrMgr | |unable to start filemanager, while creating directory : files failed
I'm using the following command line to fire up TS:
startproc -u teamspeak -g teamspeak /usr/local/bin/ts3server inifile=/etc/ts3.conf
The uid and gid that I'm using exist on the system.
I have put all library files into /usr/lib64, and everything loads just fine.
The executable resides in /usr/local/bin.
The working directory is set to /opt/teamspeak.
* Any files and subdirs therein are set to root.teamspeak (except for the directory /opt/teamspeak/files and its subdirs which are set to teamspeak.teamspeak) and set group-readable where necessary.
However, this doesn't explain why things start to go haywire when trying to start this thing with both uid and gid teamspeak. I already have set up other services in this manner, but they didn't misbehave afterwards...
So what could actually be going wrong here?
EDIT: Writing a wrapper script that sets the working directory for Teamspeak and then execs the server helps work around the file manager problem, but the accounting problem persists, causing any virtual servers that may be started to shut down immediately.
EDIT2: Problem solved: As it seems, the file /dev/shm/7gbhujb54g8z9hu43jre8 has been in the way of starting up. Removing it finally allowed Teamspeak to start up.
===> Problem solved!