View Full Version : ts not starting correctly
first i am running RH 7.2 mysql is 3.23.56
i have 36 servers
ok i have several problems
1. i am trying to use the startscript to run TS using mysql 3.23.56 on RH 7.2 when i run the command it tells me starting the teamspeak2 server
Error starting daemon. Aborted
but when i come back to it all servers are running the error log shows all servers started up properly and no errors. it looks like the teamspeak startscript isn't allowing enough time for all the servers to load before it says aborted.
2. when using a startup script that runs ts at boot i get the following error
starting the teamspeak2 server
Error starting daemon. Aborted
---------------------------------------------------------------
-------------- log started at 17-10-05 00:42 -------------
---------------------------------------------------------------
17-10-05 00:42:52,ALL,Info,server, Server init initialized
17-10-05 00:42:52,ALL,Info,server, Server version: 2.0.20.1 Linux
17-10-05 00:42:52,ERROR,All,SQL, Database initialization error: EDatabaseError.Unable to Load ./libsqlmy.so
17-10-05 00:42:52,ERROR,All,SERVER, Start_Server: unable to open database
----------------------------------------------------------
---------------------------------------------------------------
--------------- log ended at 17-10-05 00:42 --------------
---------------------------------------------------------------
how can i fix these errors so ts runs smothly?
marcelrx
17-10-2005, 12:09
first i am running RH 7.2 mysql is 3.23.56
i have 36 servers
ok i have several problems
1. i am trying to use the startscript to run TS using mysql 3.23.56 on RH 7.2 when i run the command it tells me
but when i come back to it all servers are running the error log shows all servers started up properly and no errors. it looks like the teamspeak startscript isn't allowing enough time for all the servers to load before it says aborted.
2. when using a startup script that runs ts at boot i get the following error
---------------------------------------------------------------
-------------- log started at 17-10-05 00:42 -------------
---------------------------------------------------------------
17-10-05 00:42:52,ALL,Info,server, Server init initialized
17-10-05 00:42:52,ALL,Info,server, Server version: 2.0.20.1 Linux
17-10-05 00:42:52,ERROR,All,SQL, Database initialization error: EDatabaseError.Unable to Load ./libsqlmy.so
17-10-05 00:42:52,ERROR,All,SERVER, Start_Server: unable to open database
----------------------------------------------------------
---------------------------------------------------------------
--------------- log ended at 17-10-05 00:42 --------------
---------------------------------------------------------------
how can i fix these errors so ts runs smothly?
Hey the failure should be clear: Unable to Load ./libsqlmy.so
Maybe you didn't set up your mysql connection right. Or on startup the mysql server isn't running when you start the teamspeak daemon.
mysql runs at boot it is configured with apache to run at boot it runs independently of teamspeak. the ts startup script isn't allowing enough time for the ts damemon to completly start before it gives the error. This is a timeing issue but only when mysql is used. I need to know what i need to do correct the timing.
marcelrx
17-10-2005, 19:38
mysql runs at boot it is configured with apache to run at boot it runs independently of teamspeak. the ts startup script isn't allowing enough time for the ts damemon to completly start before it gives the error. This is a timeing issue but only when mysql is used. I need to know what i need to do correct the timing.
And I need to know how your start scrip is looking.
#! /bin/bash
# Copyright (c) 2004 TeamSpeak team All rights reserved.
#
# Author: pwk.linuxfan 2004
#
case "$1" in
start)
if [ -e tsserver2.pid ]; then
echo "tsserver2.pid already exists...server already started ?";
echo "If you are sure the server is not running, delete tsserver2.pid"
exit 1
else
if [ "$UID" = "0" ]; then
echo WARNING ! For security reasons we advise: DO NOT RUN THE SERVER AS ROOT
for c in $(seq 1 10); do
echo -n "!"
sleep 1
done
echo !
fi
echo "starting the teamspeak2 server"
if [ -e server_linux ]; then
if [ ! -x server_linux ]; then
echo "server_linux is not executable, trying to set it"
chmod u+x server_linux
fi
if [ -x server_linux ]; then
./server_linux -PID=tsserver2.pid
else
echo "server_linux is not executable, fix this"
exit 4
fi
else
echo "Couldnt find server_linux"
exit 5
fi
fi
;;
stop)
if [ -e tsserver2.pid ]; then
echo -n "stopping the teamspeak2 server"
if ( kill -TERM `cat tsserver2.pid` ); then
for c in $(seq 1 300); do
if [ -e tsserver2.pid ]; then
echo -n "."
sleep 1
fi
done
fi
if [ -e tsserver2.pid ]; then
echo "server does not shutdown cleanly - killing"
kill -KILL `cat tsserver2.pid`
rm tsserver2.pid
sleep 5
else
echo "done"
fi
else
echo "tsserver2.pid is missing, no started server ?"
exit 7
fi
;;
restart)
$0 stop && $0 start || exit 1
;;
status)
if [ -e tsserver2.pid ]; then
echo "the server seems to be running"
exit 0
else
echo "the server seems to be stopped"
exit 3
fi
;;
passwords)
if [ -e server.log ]; then
date=$(cat server.log | grep "admin account info: username: admin" | tail -n 1 | sed "s/^\([0-9]\+-[0-9]\+-[0-9]\+ [0-9]\+:[0-9]\+:[0-9]\+\).*$/\1/")
spass=$(cat server.log | grep "superadmin account info: username: superadmin" | tail -n 1 | sed "s/^.*username: superadmin password: \([a-z0-9]\+\).*$/\1/")
pass=$(cat server.log | grep "admin account info: username: admin" | tail -n 1 | sed "s/^.*username: admin password: \([a-z0-9]\+\).*$/\1/")
echo "Following passwords were generated on $date"
echo "superadmin = \"$spass\""
echo "admin = \"$pass\""
else
echo "server.log not found, maybe you did not start the server yet ?"
exit 1
fi
;;
*)
echo "Usage: $0 {start|stop|restart|status|passwords}"
exit 2
esac
exit 0
this is the script i am using.
marcelrx
18-10-2005, 10:54
I have tested it on my linux box and always the same. I thing you nothing can do. But I also think there is no problem when it's printing: starting the teamspeak2 server
Error starting daemon. Aborted
Hey the servers a started. Why is this error a problem for you?
because they way its setup i need it to start auto at boot. but the error isn't allowing it to start at boot i have to start it manually and sometimes i can't do that. so i still need to fix it where it executes with no errors.
marcelrx
18-10-2005, 22:01
because they way its setup i need it to start auto at boot. but the error isn't allowing it to start at boot i have to start it manually and sometimes i can't do that. so i still need to fix it where it executes with no errors.
Why you can't start the server at boot?
It only gives you the message that teamspeak is aborted but also running.
Sorry but I have no solution for this at the moment.
when the error is produced at boot it aborts the startup of the daemon at boot. so basicall the startup script needs to be fixed to allow time for daemon to start cause that's what's happening the start script isn't allowing enough time for TS to start all the servers and it produces the error.
marcelrx
18-10-2005, 22:06
when the error is produced at boot it aborts the startup of the daemon at boot. so basicall the startup script needs to be fixed to allow time for daemon to start cause that's what's happening the start script isn't allowing enough time for TS to start all the servers and it produces the error.
Hm thats not normal. At my linux box the server doesn't stop at but if the teamspeak server didn't start. Hmm maybe try "sleep"?
what do you mean try sleep what will i need to edit in the file
marcelrx
18-10-2005, 22:16
what do you mean try sleep what will i need to edit in the file
After: if [ -x server_linux ]; then
./server_linux -PID=tsserver2.pid
Add this: sleep 3
But I didn't think that will work. Also I'm not a linux expert. :D
But I think you can't make time to wait longer. I think this error message is send from the teamspeak daemon.
nope dosn't fix it still does it. if you have an linux friends or may be the develpers can help make an update or a working binary and script that will work with mysql and sqlite cause it seams the current one dosn't work all the way with mysql like it is suppose to.
marcelrx
18-10-2005, 22:49
nope dosn't fix it still does it. if you have an linux friends or may be the develpers can help make an update or a working binary and script that will work with mysql and sqlite cause it seams the current one dosn't work all the way with mysql like it is suppose to.
I didn't thinks thats the script. I think it's the server binary. But maybe someone else knows a solution
well i foundout how to fix the startup in my server ini istead of
LibraryName=./libsqlmy.soi put
LibraryName=/home/ucc-hq/tss2_rc2/libsqlmy.so
which fixes the auto startup at boot problem. but when i try to start TS manually i still get the error but everything still works like it should. so the server binary just needs to allow more time for the server daemon to start and the error won't come back up.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.