Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 5 of 5
  1. #1
    Join Date
    June 2011
    Posts
    8

    Upgrade beta30 to RC1 Problem

    Hi,

    I wanted to update my server.
    I proceed as follows:
    - Stop my serveur (3.0.0-Beta30)
    - Overwrite the old files with the new files (3.0.0-RC1)
    - implementation of chmod 777 on my server folder /home/teamspeak3
    - Start server with the command : ./ts3server_startscript.sh start

    and... I get this :

    Starting the TeamSpeak 3 server
    TeamSpeak 3 server started, for details please view the log file
    [email protected]:~$

    sh*t !! I look in the logs :
    Code:
    2011-06-02 04:31:40.267862|INFO    |ServerLibPriv |   | Server Version: 3.0.0-rc1 [Build: 14468], Linux
    2011-06-02 04:31:40.268551|INFO    |DatabaseQuery |   | dbPlugin name:    MySQL plugin, (c)TeamSpeak Systems GmbH
    2011-06-02 04:31:40.268583|INFO    |DatabaseQuery |   | dbPlugin version: 1
    2011-06-02 04:31:40.269182|ERROR   |DatabaseQuery |   | mysql_real_connect() failed with error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    Mmmh ok I check my mysql :

    /etc/init.d/mysql status

    Server version 5.1.49-3
    Protocol version 10
    Connection Localhost via UNIX socket
    UNIX socket /var/run/mysqld/mysqld.sock
    Uptime: 43 min 57 sec

    Threads: 1 Questions: 5147 Slow queries: 0 Opens: 1044 Flush tables: 2 Open tables: 64 Queries per second avg: 1.951.
    [email protected]:~#


    My mysql works fine. And if I make a backup of my server beta30, it works again.
    What is the problem?

    My server runs on 64 bit debian6.

    Thx for the support.

  2. #2
    Join Date
    May 2010
    Posts
    6,310
    Hello

    Please post the ts3server.ini and ts3db_mysql.ini file (hiding the sensible information).

    Important:
    Quote Originally Posted by Senka
    implementation of chmod 777 on my server folder /home/teamspeak3
    NEVER DO THAT. This is a security hole.

  3. #3
    Join Date
    June 2011
    Posts
    8
    the problem is there even on a new installation.

    my ts3server.ini
    Code:
    machine_id=
    default_voice_port=9987
    voice_ip=0.0.0.0
    liscensepath=./
    filetransfer_port=30033
    filetransfer_ip=0.0.0.0
    query_port=10011
    query_ip=0.0.0.0
    dbplugin=ts3db_mysql
    dbpluginparameter=ts3db_mysql.ini
    dbsqlpath=sql/
    dbsqlcreatepath=create_mysql/
    logpath=logs
    logquerycommands=1
    and my ts3db_mysql.ini
    Code:
    [config]
    host=localhost
    port=3306
    username=teamspeak3
    password=mypassword
    database=teamspeak3
    socket=
    just in case, my ts3server_starscript.sh
    Code:
    #!/bin/sh
    # Copyright (c) 2010 TeamSpeak Systems GmbH
    # All rights reserved
    
    COMMANDLINE_PARAMETERS="dbplugin=ts3db_mysql inifile=ts3server.ini" #add any command line parameters you want to pass here
    D1=$(readlink -f "$0")
    BINARYPATH="$(dirname "${D1}")"
    cd "${BINARYPATH}"
    LIBRARYPATH="$(pwd)"
    
    if [ -e "ts3server_linux_x86" ]; then
    	BINARYNAME="ts3server_linux_x86"
    elif [ -e "ts3server_linux_amd64" ]; then
    	BINARYNAME="ts3server_linux_amd64"
    elif [ -e "ts3server_freebsd_x86" ]; then
    	BINARYNAME="ts3server_freebsd_x86"
    elif [ -e "ts3server_freebsd_amd64" ]; then
    	BINARYNAME="ts3server_freebsd_amd64"
    else
    	echo "Could not locate binary file, aborting"
    	exit 5
    fi
    
    case "$1" in
    	start)
    		if [ -e ts3server.pid ]; then
    			if ( kill -0 $(cat ts3server.pid) 2> /dev/null ); then
    				echo "The server is already running, try restart or stop"
    				exit 1
    			else
    				echo "ts3server.pid found, but no server running. Possibly your previously started server crashed"
    				echo "Please view the logfile for details."
    				rm ts3server.pid
    			fi
    		fi
    		if [ "${UID}" = "0" ]; then
    			echo WARNING ! For security reasons we advise: DO NOT RUN THE SERVER AS ROOT
    			c=1
    			while [ "$c" -le 10 ]; do
    				echo -n "!"
    				sleep 1
    				c=$((++c))
    			done
    			echo "!"
    		fi
    		echo "Starting the TeamSpeak 3 server"
    		if [ -e "$BINARYNAME" ]; then
    			if [ ! -x "$BINARYNAME" ]; then
    				echo "${BINARYNAME} is not executable, trying to set it"
    				chmod u+x "${BINARYNAME}"
    			fi
    			if [ -x "$BINARYNAME" ]; then
    				export LD_LIBRARY_PATH="${LIBRARYPATH}:${LD_LIBRARY_PATH}"					
    				"./${BINARYNAME}" ${COMMANDLINE_PARAMETERS} > /dev/null & 
    				echo $! > ts3server.pid
    				echo "TeamSpeak 3 server started, for details please view the log file"
    			else
    				echo "${BINARNAME} is not exectuable, cannot start TeamSpeak 3 server"
    			fi
    		else
    			echo "Could not find binary, aborting"
    			exit 5
    		fi
    	;;
    	stop)
    		if [ -e ts3server.pid ]; then
    			echo -n "Stopping the TeamSpeak 3 server"
    			if ( kill -TERM $(cat ts3server.pid) 2> /dev/null ); then
    				c=1
    				while [ "$c" -le 300 ]; do
    					if ( kill -0 $(cat ts3server.pid) 2> /dev/null ); then
    						echo -n "."
    						sleep 1
    					else
    						break
    					fi
    					c=$((++c)) 
    				done
    			fi
    			if ( kill -0 $(cat ts3server.pid) 2> /dev/null ); then
    				echo "Server is not shutting down cleanly - killing"
    				kill -KILL $(cat ts3server.pid)
    			else
    				echo "done"
    			fi
    			rm ts3server.pid
    		else
    			echo "No server running (ts3server.pid is missing)"
    			exit 7
    		fi
    	;;
    	restart)
    		$0 stop && $0 start || exit 1
    	;;
    	status)
    		if [ -e ts3server.pid ]; then
    			if ( kill -0 $(cat ts3server.pid) 2> /dev/null ); then
    				echo "Server is running"
    			else
    				echo "Server seems to have died"
    			fi
    		else
    			echo "No server running (ts3server.pid is missing)"
    		fi
    	;;
    	*)
    		echo "Usage: ${0} {start|stop|restart|status}"
    		exit 2
    esac
    exit 0
    for chmod is just a temporary time to resolve the problem.

  4. #4
    Join Date
    June 2011
    Posts
    8
    up ?

    i need news.

  5. #5
    Join Date
    May 2010
    Posts
    6,310
    So in the ts3server.ini
    Replace dbpluginparameter=ts3db_mysql.ini by dbpluginparameter=
    In the ts3db_mysql.ini
    Try with socket line deleted.
    The Mysql user is allowed to connect on local ?

    After that, try to start your server with this start line :
    Code:
    ./ts3server_minimal_runscript.sh inifile=ts3server.ini

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem to start my server (upgrade debian)
    By v1g00 in forum Linux / FreeBSD
    Replies: 10
    Last Post: February 17th, 2011, 10:24 PM
  2. TeamSpeak 3 Server 3.0.0-beta30 Available
    By R. Ludwig in forum Archive
    Replies: 56
    Last Post: December 16th, 2010, 12:28 AM
  3. TeamSpeak 3 Client 3.0.0-beta30 Available
    By Peter in forum Archive
    Replies: 11
    Last Post: September 23rd, 2010, 08:39 AM
  4. Upgrade/Server Problem
    By Trackpad in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: June 4th, 2010, 04:57 AM
  5. [Solved] Problem starting ts3 after upgrade
    By shocker38 in forum Windows
    Replies: 2
    Last Post: May 22nd, 2010, 03:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •