Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 326513

Summary: media-sound/teamspeak-server-bin-3.0.0_beta25: Server Query Admin Acccount info missing...
Product: Gentoo Linux Reporter: Jarry <mr.jarry>
Component: Current packagesAssignee: Christian Parpart (RETIRED) <trapni>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: chris, pacho
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jarry 2010-07-01 19:01:32 UTC
http://teamspeak.netfire.com/literature/TeamSpeak%203%20Server%20Quick%20Start.txt says:

To gain global administration permissions for ServerQuery access, the first time the server instance is started a ServerQuery password is printed to the console output:

------------------------------------------------------------------
                      I M P O R T A N T
------------------------------------------------------------------
              Server Query Admin Acccount created
         loginname= "serveradmin", password= "BAIPwM8X"
------------------------------------------------------------------

This does not happen when you run TS3 for the first time, using Gentoo start-up script /etc/init.d/teamspeak3-server. Nothing about Server Query Admin Account is printed to console, or log...

Reproducible: Always

Steps to Reproduce:
1. # emerge media-sound/teamspeak-server-bin-3.0.0_beta25
2. apply fix to the init script https://bugs.gentoo.org/show_bug.cgi?id=303621
3. # /etc/init.d/teamspeak3-server start

Actual Results:  
teamspeak3-server starts silently. No info about "Server Query Admin Account" is printed (neither concole, nor log-file)

Expected Results:  
When starting TS3 server for the first time, Server Query Admin Account is created. "TeamSpeak 3 Server Quick Start.txt" says, info about "Server Query Admin Account" should be printed to the console.
Comment 1 Nicholas Herring 2010-07-29 03:14:15 UTC
This information should be in the first successful instance of /var/log/teamspeak3-server/ts3server_*.log
Comment 2 Jarry 2010-07-29 17:20:31 UTC
(In reply to comment #1)
> This information should be in the first successful instance of
> /var/log/teamspeak3-server/ts3server_*.log

No, should not be, and is not. There are two special account created automatically: ServerAdmin and ServerQueryAdmin. Token for ServerAdmin is saved in the 1st log-file, that is true. But what I am talking about is "Server Query Admin" account, that is a different thing! For this account, nothing is written into log-file, info is (or more exactly, should be!) written only to the console, as "TeamSpeak 3 Server Quick Start.txt" says:


**********************************************************
-------------------------------
(8) Gaining Adminstrator Access
-------------------------------

(i) Regular clients

The first time a virtual server is created, a server administrator token will
be automatically created in the server log with the following form:

--------------------------------------------------------
ServerAdmin token created, please use the line below
token=ppEa0Wp6hopKBzKhH5RiUtb5Ggve5aI8J7ifu+/P
--------------------------------------------------------

This token can be used in the TeamSpeak 3 Client to gain administrator permissions for the currently logged in client. A token can only be used *ONCE*.

The server log is written to a file in the logs subdirectory. On Linux and Mac OS X it is also printed to the console from which the server was started.

(ii) ServerQuery clients

To gain global administration permissions for ServerQuery access, the first time the server instance is started a ServerQuery password is printed to the console output:

------------------------------------------------------------------
                      I M P O R T A N T
------------------------------------------------------------------
              Server Query Admin Acccount created
         loginname= "serveradmin", password= "BAIPwM8X"
------------------------------------------------------------------

Use the provided login name and password to access the server using the ServerQuery interface.

Note: The ServerQuery password is only shown *ONCE* when the server is started for the first time, so make sure you save this information for future reference. The only way to generate a new token and password would be to delete the server database by starting server with the "clear_database=1" commandline paramater or deleting the file ts3server.sqlitedb. In this case all server settings and user accounts would be lost.

**********************************************************

And that is the problem: when starting TS3 for the first time on gentoo, nothing si written to the console, so password for ServerQueryAdmin is lost...
Comment 3 Benjamin Börngen-Schmidt 2010-11-19 16:07:13 UTC
But this does not really matter, since you can always create a new query admin account when you are Serveradmin.

Though I understand, that this is an annoyance. But I guess this might be related to #346059 since the init script actually fails to start the Server, so this information might get lost.
I'll provide some patches for #346059 later this weekend and would be really happy if you can test again.
Comment 4 Citrine Oak 2011-06-10 13:11:19 UTC
I found a work around for this bug and others:

http://bugs.gentoo.org/show_bug.cgi?id=370711
Comment 5 Christophe PEREZ 2012-03-26 20:34:24 UTC
(In reply to comment #3)
> But this does not really matter, since you can always create a new query
> admin account when you are Serveradmin.

?? How do you do that without password ?

I agree with Jarry. This server admin admin password is essential. I just spent hours to find it. I didn't know TS3, and everywhere they talk about this serveradmin password wich is invisible with gentoo initscript.
Comment 6 Pacho Ramos gentoo-dev 2012-05-15 11:38:36 UTC
Still valid with teamspeak-server-bin-3.0.5-r1
Comment 7 Pacho Ramos gentoo-dev 2012-06-09 18:48:07 UTC
(In reply to comment #6)
> Still valid with teamspeak-server-bin-3.0.5-r1