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 6 of 6
  1. #1
    Join Date
    March 2016
    Posts
    0

    init.d script 3.0.12.3

    Hi,

    I recently upgrade from 3.0.11.x to 3.0.12.3 and I have a hard time to start the server from an init.d script.

    The previous script I used to start the server didn't work anymore when I changed the name of the server executable (I didn't change the folder wich remains the same than in 3.0.11.x version).

    This is the init.d file I use now (found it somewhere on the Internet) :

    Code:
    #!/bin/sh
    #
    ### BEGIN INIT INFO
    # Provides:         Teamspeak 3 Server
    # Required-Start:   $remote_fs $syslog $network $named $portmap
    # Required-Stop:    $remote_fs $syslog
    # Default-Start:    2 3 4 5
    # Default-Stop:     0 1 6
    # Short-Description:    Start/Stop Teamspeak 3 Server
    # Description       Linux Teamspeak 3 Server
    ### END INIT INFO
     
    NAME="Teamspeak 3 Server"
    USER="teamspeak"
    GROUP="teamspeak"
    PATHTOFILE="/opt/teamspeak3-server_linux-amd64"
    EXECFILENAME="ts3server_startscript.sh"
     
    start() {
        echo -n "Starting $NAME..."
        /sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME start
    }
     
    stop() {
        echo -n "Stopping $NAME..."
        /sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME stop
    }
     
    restart() {
        echo -n "Restarting $NAME..."
        /sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME restart
    }
     
    case "$1" in
        start)
            start
        ;;
        stop)
            stop
        ;;
        restart)
            restart
        ;;
        *)
            echo "Usage: $0 (start|stop|restart)"
            exit 1
        ;;  
    esac
    exit 0
    And the log when I try to start the server with it :

    Code:
    2016-03-23 07:53:25.616570|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.0.12.3 (2016-03-04 08:31:20)
    2016-03-23 07:53:25.623595|INFO    |ServerLibPriv |   |SystemInformation: Linux 2.6.32-042stab111.12 #1 SMP Thu Sep 17 11:38:20 MSK 2015 x86_64 Binary: 64bit
    2016-03-23 07:53:25.623661|INFO    |ServerLibPriv |   |Using hardware aes
    2016-03-23 07:53:25.635292|INFO    |DatabaseQuery |   |dbPlugin name:    SQLite3 plugin, Version 2, (c)TeamSpeak Systems GmbH
    2016-03-23 07:53:25.635391|INFO    |DatabaseQuery |   |dbPlugin version: 3.8.6
    2016-03-23 07:53:25.695540|INFO    |DatabaseQuery |   |checking database integrity (may take a while)
    2016-03-23 07:53:25.889536|INFO    |Accounting    |   |Licensing Information
    2016-03-23 07:53:25.889623|INFO    |Accounting    |   |type              : Non-profit
    2016-03-23 07:53:25.889663|INFO    |Accounting    |   |starting date     : Wed Dec  9 00:00:00 2015
    2016-03-23 07:53:25.889688|INFO    |Accounting    |   |ending date       : Thu Jun  9 00:00:00 2016
    2016-03-23 07:53:25.889712|INFO    |Accounting    |   |max virtualservers: 2
    2016-03-23 07:53:25.889733|INFO    |Accounting    |   |max slots         : 512
    2016-03-23 07:53:26.054675|CRITICAL|              |   |Assertion "my_sz <= static_cast<unsigned int>(bytesNeeded)" failed at ../../../../s/deps/teamspeak_common_lib/src/encryption/rsa_puzzle.cpp:465;
    The server runs fine when I start it directly with ts3server_startscript.sh in /opt/teamspeak3-server_linux-amd64 (with the root user).

    I'm not a linux genius, I hope somebody could tell me why it fails like that.

    Thanks a lot.

    P.S : Ubuntu 14.04
    Last edited by Carlton2001; March 23rd, 2016 at 09:27 AM.

  2. #2
    Join Date
    June 2008
    Posts
    18,513
    Can you start the server with our own startsctript as that user teamspeak too? Or does this crash?
    Code:
    ./opt/teamspeak3-server_linux-amd64/ts3server_startscript.sh start
    
    If this is the path (I guess you need to move the folder to a path where user teamspeak has access to
    For us it looks like needed permissions are not handed over to the user teamspeak. This could cause such assertion.


    // We will try that script too and see if that also happens for us
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    March 2016
    Posts
    0
    Ok I'll try this tomorrow morning (Paris Time ^^^) when there is no users on the server.
    Thanks for your reply.
    Last edited by Carlton2001; March 23rd, 2016 at 03:02 PM.

  4. #4
    Join Date
    June 2008
    Posts
    18,513
    I managed to start the server with your script. No crash here and the right user without special permissions did run the server fine..


    What i have done to get it running
    Code:
    Installed ubuntu 14.04 LTS and used google a lot to get root login enabled
    Enabled root login
    Created the teamspeak user (without geeting aksed for password)
    Installed the server in opt folder and renamed it to the old style
    Added your script named as teamspeak into the init.d folder and gave permissions to be executed
    Executed the script
    Checked who is running the process ./ts3server
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  5. #5
    Join Date
    December 2004
    Location
    RF
    Posts
    3,008
    Quote Originally Posted by Carlton2001 View Post
    This is the init.d file
    ...
    Ubuntu 14.04
    One does not connect to another.
    Why you are not using upstart directly?

  6. #6
    Join Date
    March 2016
    Posts
    0

    Post

    Code:
    su teamspeak -c './ts3server_startscript.sh start'
    
    Starting the TeamSpeak 3 server
    TeamSpeak 3 server started, for details please view the log file
    Mmmmh it's working

    I'll try to run the init.d again

    Code:
    su teamspeak -c './ts3server_startscript.sh stop'
    /etc/init.d/teamspeak3-server start
    
    Starting the TeamSpeak 3 server
    TeamSpeak 3 server started, for details please view the log file
    What's the...

    Code:
    reboot
    And the TS server is up and running after a server restart

    I don't understand, perhaps the manual launch with the teamspeak user saved the day. I don't know.


    Anyway thanks a lots for your time dante696 I'm sorry to have bothered you like this.
    I learned new things from this problem.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Debian 5 init.d script
    By Largo in forum Linux / FreeBSD
    Replies: 1
    Last Post: April 11th, 2011, 07:44 PM
  2. Init script for Red Hat-like distributions
    By creator in forum Linux / FreeBSD
    Replies: 1
    Last Post: March 13th, 2011, 03:56 PM
  3. Init script for new ts3server_startscript.sh?
    By Jimi` in forum Linux / FreeBSD
    Replies: 2
    Last Post: February 27th, 2010, 05:19 PM
  4. Replies: 2
    Last Post: December 21st, 2009, 08:32 AM

Posting Permissions

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