• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Could not request shutdown. Please make sure that the loopback interface is not firewalled.

Status
Not open for further replies.

LukBoy99

Donor
is awesome!
Hello, I have 7 instances, one of them works perfectly the rest don't work even tho all are licensed and same and first time on server ( did clean reinstall of sinusbot cause !sub was being bugged )

example instance log of one unable to connect:
Code:
2016-07-15T17:41:03+03:00 Storing configuration.
2016-07-15T17:40:58+03:00 Ping failed.
2016-07-15T17:40:48+03:00 Starting instance ts3server://51.254.161.138?port=9987&nickname=TOP%20HITS%20BOT&password=&channel=&channelpassword=
2016-07-15T17:40:48+03:00 Could not insert into Notifications-Tableno such table: Notifications
2016-07-15T17:40:48+03:00 Could not delete from Notificationsno such table: Notifications
2016-07-15T17:40:48+03:00 Could not insert into Notifications-Tableno such table: Notifications
2016-07-15T17:40:48+03:00 Could not delete from Notificationsno such table: Notifications
2016-07-15T17:40:34+03:00 Initialization complete

Sometime they can connect but they have disabled microphone (1/10 times)

This is instance log of when they connect with disabled sometimes:
Code:
http://pastebin.com/he2QPdEL

This is bot log
Code:
http://pastebin.com/sT6TvmHm

This is my config
Code:
http://pastebin.com/QUXuRxbh

I think i put everything, please help xd
 

LukBoy99

Donor
is awesome!
100% clean reinstall again, it worked without license so i closed, added private.dat and added license and changed licensekey in config and then i get this mess when starting (didnt use start script this time)
Code:
http://pastebin.com/N9Xju0MX
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Xuxe is magic ;) - You may used the latest beta with xinit? ^^
 

LukBoy99

Donor
is awesome!
It's quite old, friend gave it to me when I first downloaded sinusbot but works fine
Code:
#! /bin/bash
### BEGIN INIT INFO
# Provides: ts3bot
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Sinusbot
### END INIT INFO

##################################################################################
# #
# Usage: ./launch.sh {start|stop|status|restart|console|update|backup} #
# - start: start the bot #
# - stop: stop the bot #
# - status: display the status of the bot (down or up) #
# - restart: restart the bot #
# - console: display the bot console #
# - update: runs the bot updater (with start & stop)
# - backup: archives your bot root directory
# To exit the console without stopping the server, press CTRL + A then D. #
# #
##################################################################################

SCREEN_NAME="sinusbot"
USER="sinusbot"
DIR_ROOT="/home/sinusbot"
DIR_BACKUP="/home/backup/sinusbot"
BOT_RUNCMD="./sinusbot"
BOT_UPDATE_ARG=" -update"

# No edits necessary beyond this line
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ ! -x `which screen` ]; then echo "ERROR: You need screen for this script (try apt-get install screen)"; exit 1; fi
if [ ! -x `which tar` ]; then echo "WARNING: You need tar for the Backup Function (try apt-get install tar)";  fi

function start {
    if [ ! -d $DIR_ROOT ]; then echo "ERROR: $DIR_ROOT is not a directory"; exit 1; fi
    if status; then echo "$SCREEN_NAME is already running"; exit 1; fi

    # Start bot
    if [ `whoami` = root ]
    then
        su - $USER -c "cd $DIR_ROOT ; screen -AmdS $SCREEN_NAME $BOT_RUNCMD"
    else
        cd $DIR_ROOT
        screen -AmdS $SCREEN_NAME $BOT_RUNCMD
    fi
}

function backup {

    DATE=$(date +%Y-%m-%d)
   
    if [ `whoami` = root ]
    then
        su - $USER -c "cd $DIR_ROOT ; tar -cjpf $DIR_BACKUP/sinusbot-$DATE.tar.bz2 $DIR_ROOT"
    else
        cd $DIR_ROOT
        tar -cjpf $DIR_BACKUP/sinusbot-$DATE.tar.bz2 $DIR_ROOT
    fi
}
function update {
    if [ `whoami` = root ]
    then
        su - $USER -c "cd $DIR_ROOT ; $BOT_RUNCMD$BOT_UPDATE_ARG"
    else
        cd $DIR_ROOT
        $BOT_RUNCMD$BOT_UPDATE_ARG
    fi
}

function stop {
    if ! status; then echo "$SCREEN_NAME could not be found. Probably not running."; exit 1; fi

    if [ `whoami` = root ]
    then
        su - $USER -c "screen -S $SCREEN_NAME -X stuff '\003'"
    else
        screen -S $SCREEN_NAME -X stuff '\003'
    fi
}

function status {
    if [ `whoami` = root ]
    then
        su - $USER -c "screen -ls" | grep [.]$SCREEN_NAME[[:space:]] > /dev/null
    else
        screen -ls | grep [.]$SCREEN_NAME[[:space:]] > /dev/null
    fi
}

function console {
    if ! status; then echo "$SCREEN_NAME could not be found. Probably not running."; exit 1; fi

    if [ `whoami` = root ]
    then
        su - $USER -c "screen -x $SCREEN_NAME"
    else
        screen -x $SCREEN_NAME
    fi
}

function usage {
    echo "Usage: $0 {start|stop|status|restart|console}"
    echo "On console, press CTRL+A then D to stop the screen without stopping the server."
}

case "$1" in

start)
    echo "Using following data:"
    echo "USER: $USER"
    echo "DIR ROOT: $DIR_ROOT"
    echo "BOT RUN CMD: $BOT_RUNCMD"
    echo ""
    sleep 2
    echo "Starting $SCREEN_NAME..."
    start
    sleep 2
    echo "$SCREEN_NAME started successfully"
;;

stop)
    echo "Stopping $SCREEN_NAME..."
    stop
    sleep 2
    echo "$SCREEN_NAME stopped successfully"
;;

restart)
    echo "Restarting $SCREEN_NAME..."
    status && stop
    sleep 5
    start
    sleep 2
    echo "$SCREEN_NAME restarted successfully"
;;

status)
    if status
    then echo "$SCREEN_NAME is UP"
    else echo "$SCREEN_NAME is DOWN"
    fi
;;

console)
    echo "Open console on $SCREEN_NAME..."
    console
;;

update)
    if status
    then stop && sleep 5 && update
    else update 
    fi
   
;;

backup)

    if [ -d "$DIR_BACKUP" ]
    then 
            if status
            then stop && sleep 5 && backup
            else backup
            fi
    else echo "BACKUP DIRECTORY NOT EXISTS. EXIT!"; exit 1;
    fi
   
;;

*)
    usage
    exit 1
;;

esac

exit 0
 
Status
Not open for further replies.
Top