PDA

View Full Version : RPM available


ScratchMonkey
28-08-2002, 18:07
I've created an RPM (and matching SRPM) for 2.0.17.17:

ftp://ftp.matureasskickers.net/pub/TeamSpeak/ts2/

Please report feedback here.

Note that the restart option doesn't work properly at this time because the process killer in the initscript library doesn't wait for the server to completely exit. Hopefully Ralf can help with that. I think the problem is that the parent exits before all the children are dead, and the killproc function only waits for the process listed in the PID file to die. An alternative is to list all the child PID's in the PID file. I think the killproc function can handle multiple PID's in the file.

ScratchMonkey
28-08-2002, 18:10
BTW, to start the server, run "service tss2 start". To make the server start at boot time, use chkconfig or ntsysv to add the service to your default runlevel.

The program has been renamed to /usr/bin/tss2. It runs as user "nobody" with the working directory set to /etc/tss2, and the server.ini and server.db files are kept there. It logs to /var/log/tss2.

Since the server.db file contains passwords, it is set readable only by user "nobody".

ScratchMonkey
28-08-2002, 18:15
Crap. Looks like you need to delete the initial server.db file as the latest server binary is not regenerating it if it's present but zero size. (I generate an empty one in the RPM so that it will be recorded in the RPM database as a do-not-replace config file. There's another way to do that, and I'll work that in in the next release.)

Bones_taw
29-08-2002, 08:34
Hi,
thanks for making RPM.

Here is what happened to me:

I'm running mandrake 8.1 on P133
I installed binary

Looked ok.
When I start service, I get...
[root@robin tss2]# service tss2 start
Starting TeamSpeak service: Error stating daemon. Aborted
[FAILED]
[root@robin tss2]#

I can connect to TSS2 ok. Howevery admin page won't load. In login file, I see....
28-08-02 16:22:30,ALL,Info,server, Server startup finished
28-08-02 16:22:30,WARNING,Info,server, TeamSpeak Server daemon activated
28-08-02 16:24:39,WARNING,Info,WEBINTERFACE, File not found: /httpdocs/index.
html
28-08-02 16:24:46,WARNING,Info,WEBINTERFACE, File not found: /httpdocs/index.
html
28-08-02 16:24:53,WARNING,Info,WEBINTERFACE, File not found: /httpdocs/index.
html
28-08-02 16:29:46,ERROR,All,WEBINTERFACE, OnException Exception: Connectio
n Closed Gracefully.
28-08-02 16:30:46,,,server, Server shutdown initialized
28-08-02 16:30:54,,,server, Server shutdown finished

Any ideas?

tia

Bones

ScratchMonkey
29-08-2002, 16:43
28-08-02 16:24:39,WARNING,Info,WEBINTERFACE, File not found: /httpdocs/index.
html

That's curious. That suggests that it's trying to start the server while in the root directory. The httpdocs are installed in /etc/tss2/httpdocs.

The initscript starts the server by using the initscript library function "daemon". This is defined in the file /etc/rc.d/init.d/functions. On Red Hat, this doesn't change directories. Does it change directories on Mandrake?

(I've requested that the devs give me another command line switch to deal with this situation, allowing me to tell tss2 where to find the httpdocs directory.)

Bones_taw
30-08-2002, 07:40
I created a link to root dir now browser login works. I.e.

cd /
ln -s /etc/tss2/httpdocs httpdocs

I installed rpm on another computer with redhat 7.3.
I don't get the daemon error like on mandrake, but I still get the not found problem on httpdocs. Did workaround like link above.

Bones

Bones_taw
31-08-2002, 02:35
Access to admin through web seems to die after a while.
I get messages like this one in the log file:

29-08-02 16:44:42,ERROR,All,WEBINTERFACE, OnException Exception: Connectio
n Closed Gracefully.

Any ideas?

Bones

ScratchMonkey
31-08-2002, 23:36
The problem with httpdocs is weird. I built the RPM on RH7.3 so it shouldn't have a problem. In /etc/rc.d/init.d/tss2, there should be a line that cd's to /etc/tss2 just before starting the tss2 server. What version of initscripts do you have loaded? (I have initscripts-6.67-1. This provides the /etc/rc.d/init.d/functions library.)

The webadmin crash is a known problem and not related to the RPM packaging. Check the Linux server forums for more help on that.

ScratchMonkey
26-10-2002, 22:50
I've got a new RPM with the latest tss2 server and a tweaked initscript.

The new script uses a helper script to get the working directory right so that httpdocs will be found. Apparently there's something weird in the "daemon" function supplied for initscripts that resets the working directory to "/" if the server is run as a specific user (ie. nobody) so I use a helper script to set the working directory to /etc/tss2.

I also now permit an optional sysconfig file, /etc/sysconfig/tss2. For now the only useful thing to put in this file is a line like this to force the admin password in case the db file gets lost:

TSS2ARGS="-ADMINPW=secret"

The new RPM's (source and binary) are here:

ftp://ftp.matureasskickers.net/pub/TeamSpeak/ts2

nicotine
06-06-2004, 06:16
when will you release a new RPM of 2.0.20.1? and I am unable to find any of your previous releases at the two mentioned urls.

r0dman
09-06-2004, 02:28
need to login to your ftp to download it???

maggy
10-06-2004, 00:33
*bump*
yes, this is something we need as well...