• 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.

Solved Problem to start the bot

Status
Not open for further replies.

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Thank you for your attention!

It would be great if the bot would work ^^

No Problem, i updated my last poste please check the permissions and tell me the result :)
 

Duche

Member
Code:
-rw-r--r--  1 ts3bot ts3bot      136 Dec 21 14:00 config.ini
-rw-r--r--  1 root   root        124 May 25  2015 config.ini.dist
drwxr-xr-x  7 ts3bot ts3bot     4096 Dec 21 13:39 data
-rwxr-xr-x  1 root   root   10910656 Jul  1 00:19 libavcodec.so.56
-rwxr-xr-x  1 root   root    1843856 Jul  1 00:19 libavformat.so.56
-rwxr-xr-x  1 root   root     311752 Jul  1 00:19 libavutil.so.54
-rwxr-xr-x  1 root   root     107992 Jul  1 00:19 libswresample.so.1
drwxr-xr-x  2 root   root       4096 Dec 21 13:41 plugin
-rw-r--r--  1 root   root       3228 May 25  2015 README.md
drwxr-xr-x  2 root   root       4096 Dec 21 13:41 scripts
-rwxr-xr-x  1 root   root   29446913 Nov 16 16:14 sinusbot
-rw-r--r--  1 root   root   10663084 Dec 21 13:36 sinusbot-0.9.8.tar.bz2
-rw-r--r--  1 root   root   14642923 Dec 21 13:40 sinusbot-0.9.9-8f70ff3.tar.bz2
drwxrwxr-x 12 root   root       4096 Dec 21 13:45 TeamSpeak3-Client-linux_amd64
-rwxr-xr-x  1 root   root   36639550 Oct 22 16:17 TeamSpeak3-Client-linux_amd64-3.0.18.2.run
-rwxr-xr-x  1 root   root   15056862 May 27  2015 ts3bot

Same problem :
Could not generate private key
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Same problem :
Could not generate private key

Mhm yes, data and the config has ts3bot as user & group the other files root and i think the bot folder also root that can't work.

Run:

/opt/sinusbot - is the path to your bot
Code:
chown -R ts3bot:ts3bot /opt/sinusbot/

After this run the bot only as user 'ts3bot'. Keep in mind with the latest 0.9.9 you don't need the xinit stuff! Just run the bot with
Code:
./sinusbot
 

Duche

Member
Oh nice! The bot started, but i can't access with webinterface :/

Code:
 ___ ___ _  _ _   _ ___ ___  ___ _____  BETA
/ __|_ _| \| | | | / __| _ )/ _ \_   _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

Version: 0.9.9-8f70ff3
(C) 2013-2015 Michael Friese. All rights reserved.

2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin advertising.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin aloneMode.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin badchan.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin bookmark.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin covatar.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin dev.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin followme.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin idle.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin metadata.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin norecording.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin rememberChannel.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin showcase.js
2015/12/21 14:19:38 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin welcometext.js
-------------------------------------------------------------------------------
Generating new bot instance with account 'admin' and password 'foobar'
PLEASE MAKE SURE TO CHANGE THE PASSWORD DIRECTLY AFTER YOUR FIRST LOGIN!!!
-------------------------------------------------------------------------------
2015/12/21 14:19:38 X [MAIN] Starting up fake x-server...
2015/12/21 14:19:38 Updating database to v1... 0
2015/12/21 14:19:38 Updating database to v2... 1
2015/12/21 14:19:38 Updating database to v3... 2
2015/12/21 14:19:38 Updating database to v4... 3
2015/12/21 14:19:38 f1c19c9d          INFO   Loading instances
2015/12/21 14:19:38 f1c19c9d          INFO   Creating default instance
2015/12/21 14:19:38 f1c19c9d a12f5871 DEBUG  Spawning instance shortly due to missing configuration file.
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   Starting instance ts3server://127.0.0.1?port=9987&nickname=TS3SB-Demobot&password=&channel=&channelpassword=
2015/12/21 14:19:38 X [MAIN] New connection
2015/12/21 14:19:38 f1c19c9d          INFO   Promoting instance to main instance
2015/12/21 14:19:38 f1c19c9d          INFO   Adding new user admin
2015/12/21 14:19:38 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/12/21 14:19:38 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/12/21 14:19:38 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2015/12/21 14:19:38 [GENERAL/RADIO  ] INFO   Could not find RadioStation-Data, updating...
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS>Crashdump ENABLED,  directory is: /opt/ts3soundboard/data/ts3/f1c19c9d-b392-42c4-ab42-d730ab340587/a12f5871-085c-4579-9267-6f56169f70e6/crashdumps
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS>DUMP defined! Dumpdir is: /opt/ts3soundboard/data/ts3/f1c19c9d-b392-42c4-ab42-d730ab340587/a12f5871-085c-4579-9267-6f56169f70e6/crashdumps
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |TeamSpeak 3 Client 3.0.18.2 (2015-10-22 11:14:48)
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |SystemInformation: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u1 (2015-12-14) x86_64 Binary: 64bit
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |Using hardware aes
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |ERROR   |SoundBckndIntf|   |libpulse.so.0: cannot open shared object file: No such file or directory
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |ERROR   |SoundBckndIntf|   |libasound.so.2: cannot open shared object file: No such file or directory
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |WARNING |SoundDevManager|   |Did not load any sound backends. No (usable) dynamic libraries found.
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |Loading plugin: libclientquery_plugin
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |Loading plugin: liblua_plugin
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |Loading plugin: libsoundbot_plugin
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |Loading plugin: libtest_plugin
2015/12/21 14:19:38 f1c19c9d a12f5871 INFO   TS |INFO    |Query         |   |listening on 127.0.0.1:25639
2015/12/21 14:19:39 X [MAIN] New connection
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS>ClientQueryPlugin: currentServerConnectionChanged 1 (0)
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |*** Time [MAINWINDOW]: 199
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |              |   |*** Time [INIT]: 200
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |   |*** Time [SQLITE_CONVERTER]: 7
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |   |Failed to init text to speech engine
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |   |Qt version: 5.5.0
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |   |Using configuration location: /opt/ts3soundboard/data/ts3/f1c19c9d-b392-42c4-ab42-d730ab340587/a12f5871-085c-4579-9267-6f56169f70e6/settings.db
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |   |ts3server: 127.0.0.1?port=9987&nickname=TS3SB-Demobot&password=&channel=&channelpassword=
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |1  |Connect to server: 127.0.0.1
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |1  |Blacklist check ok
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |1  |Initiating connection: 127.0.0.1:9987 127.0.0.1
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |1  |Connect status: Connecting
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |DEVELOP |PktHandler    |   |Puzzle solve time: 6
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |1  |Connect status: Connected
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |1  |Connect status: Establishing connection
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |1  |Connect status: Connection established
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |PermManager   |   |Requesting permissions from server
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |   |Last update check was: Never
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |ClientUI      |   |Checking for update
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |Update        |   |Checking for updates...
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |Update        |   |Check license version: 1
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |LicenseViewer |   |License language: en
2015/12/21 14:19:39 f1c19c9d a12f5871 INFO   TS |INFO    |LicenseViewer |   |Requesting remote license for version 1 and language en
2015/12/21 14:19:40 f1c19c9d a12f5871 INFO   TS |INFO    |Newsticker    |   |Newsticker language change detected
2015/12/21 14:19:40 f1c19c9d a12f5871 INFO   TS |INFO    |Newsticker    |   |Newsticker next check:
2015/12/21 14:19:40 f1c19c9d a12f5871 INFO   TS |INFO    |Newsticker    |   |Newsticker received for language en, expires on Mon Dec 21 14:49:40 2015, next check in 1800 seconds
2015/12/21 14:19:40 f1c19c9d a12f5871 INFO   TS |INFO    |LicenseViewer |   |Downloaded license file for version 1 and language en
tracks 11007
2015/12/21 14:19:41 [GENERAL/RADIO  ] INFO   RadioStation data loaded
2015/12/21 14:19:41 [GENERAL/RADIO  ] INFO   Imported radio stations
2015/12/21 14:19:48 f1c19c9d a12f5871 WARN   Could not request shutdown. Please make sure that the loopback interface is not firewalled.
2015/12/21 14:19:49 X [MAIN] Disconnected:  1
2015/12/21 14:19:49 X [MAIN] Disconnected:  0
2015/12/21 14:19:49 f1c19c9d a12f5871 INFO   TS>qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
2015/12/21 14:19:49 f1c19c9d a12f5871 INFO   TS>qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
2015/12/21 14:19:49 f1c19c9d a12f5871 INFO   TSClient quit.
2015/12/21 14:20:07 f1c19c9d a12f5871 DEBUG  Storing configuration.

Then with http://myip:8087 :

504 Gateway Timeout
Gateway timeout expired while waiting for server response

I installed apache2, but same
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Then with http://myip:8087 :

504 Gateway Timeout
Gateway timeout expired while waiting for server response

I installed apache2, but same

You don't need a external webserver, the Bot has its own.
Can you give me the IP to your Bot?

Try to shutdown apache / nginx if you don't need it.
And post please the result of:
Code:
netstat -tulpn
 

Duche

Member
You want the IP to my VPS?


I stopped apache2.

Result of netstat -tulpn :

Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:10011           0.0.0.0:*               LISTEN      431/ts3server_linux
tcp        0      0 0.0.0.0:30033           0.0.0.0:*               LISTEN      431/ts3server_linux
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      299/sshd
tcp6       0      0 :::22                   :::*                    LISTEN      299/sshd
udp        0      0 0.0.0.0:9987            0.0.0.0:*                           431/ts3server_linux
udp        0      0 0.0.0.0:68              0.0.0.0:*                           273/dhclient
udp        0      0 0.0.0.0:14614           0.0.0.0:*                           273/dhclient
udp6       0      0 :::18305                :::*                                273/dhclient
 
Last edited by a moderator:

Duche

Member
Code:
/ __|_ _| \| | | | / __| _ )/ _ \_   _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|

Version: 0.9.9-8f70ff3
(C) 2013-2015 Michael Friese. All rights reserved.

2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin advertising.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin aloneMode.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin badchan.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin bookmark.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin covatar.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin dev.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin followme.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin idle.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin metadata.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin norecording.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin rememberChannel.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin showcase.js
2015/12/21 14:39:27 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin welcometext.js
2015/12/21 14:39:27 f1c19c9d          INFO   Initializing bot://f1c19c9d-b392-42c4-ab42-d730ab340587
2015/12/21 14:39:27 f1c19c9d          INFO   Loading instances
2015/12/21 14:39:27 f1c19c9d          INFO   Loading instance://a12f5871-085c-4579-9267-6f56169f70e6
2015/12/21 14:39:27 f1c19c9d a12f5871 INFO   Initialization complete
2015/12/21 14:39:27 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3675236; license: LGPL version 2.1 or later; 494 codecs
2015/12/21 14:39:27 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3674980; license: LGPL version 2.1 or later; 139 formats
2015/12/21 14:39:27 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2015/12/21 14:39:27 X [MAIN] Starting up fake x-server...
2015/12/21 14:39:27 [GENERAL/RADIO  ] INFO   RadioStation data loaded
2015/12/21 14:39:27 [GENERAL/RADIO  ] INFO   Imported radio stations

After ./sinusbot and now i'm blocked, need to launch other terminal to do something on my debian.

Why it happened to me? :(

I launched in other terminal netstat -tulpn :

Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State                                                                                                                                          PID/Program name
tcp        0      0 0.0.0.0:10011           0.0.0.0:*               LISTEN                                                                                                                                         431/ts3server_linux
tcp        0      0 0.0.0.0:30033           0.0.0.0:*               LISTEN                                                                                                                                         431/ts3server_linux
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN                                                                                                                                         299/sshd
tcp6       0      0 :::22                   :::*                    LISTEN                                                                                                                                         299/sshd
tcp6       0      0 :::8087                 :::*                    LISTEN                                                                                                                                         8701/sinusbot
udp        0      0 0.0.0.0:9987            0.0.0.0:*                                                                                                                                                              431/ts3server_linux
udp        0      0 0.0.0.0:68              0.0.0.0:*                                                                                                                                                              273/dhclient
udp        0      0 0.0.0.0:14614           0.0.0.0:*                                                                                                                                                              273/dhclient
udp6       0      0 :::18305                :::*                                                                                                                                                                   273/dhclient
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
After ./sinusbot and now i'm blocked, need to launch other terminal to do something on my debian.

This is normal, you need to run the bot in screen to keep it running if you disconnect from SSH.
I can reach your Bot. :)
 

Duche

Member
Ok it work, my browser blocked some adresse. Thank a lot for your help guys, really nice and really good! I hope it will work!

Edit :But i don't understand what you said, i need to keep my terminal up to launch bot ?

Edit 2 : I can manage the bot with webinterface, but i don't see the bot on my ts3 client
 
Last edited:

Duche

Member
Hi, i have new problem ^^

I can't use second instance on ts :

I have this when i want to start the bot :

Code:
2016/01/06 11:22:03 79fdf8de 07d5aa57 INFO   BOT-CONFIG [admin] NAME HOST CHAN CHANPW ANNOUNCE DESCRIPTION ANNOUNCESTR CC OK
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   Starting instance ts3server://5.39.81.9?port=9987&nickname=Calogero&password=&channel=&channelpassword=
2016/01/06 11:22:08 X [MAIN] New connection
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   TS>Crashdump ENABLED,  directory is: /opt/ts3soundboard/data/ts3/79fdf8de-53f6-4901-9510-4947d71ebb1c/07d5aa57-9aff-4de3-be15-6438c9a948cf/crashdumps
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   TS>DUMP defined! Dumpdir is: /opt/ts3soundboard/data/ts3/79fdf8de-53f6-4901-9510-4947d71ebb1c/07d5aa57-9aff-4de3-be15-6438c9a948cf/crashdumps
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   TS |INFO    |              |   |TeamSpeak 3 Client 3.0.18.2 (2015-10-22 11:14:48)
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   TS |INFO    |              |   |SystemInformation: Linux 4.2.6-1-pve #1 SMP Sat Dec 19 15:42:50 CET 2015 x86_64 Binary: 64bit
2016/01/06 11:22:08 X [MAIN] New connection
2016/01/06 11:22:08 X [MAIN] Disconnected:  7
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   TS |ERROR   |PulseAudio    |   |pa_context_connect failed
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   TS>Breakpad crash /opt/ts3soundboard/data/ts3/79fdf8de-53f6-4901-9510-4947d71ebb1c/07d5aa57-9aff-4de3-be15-6438c9a948cf/crashdumps/461ebbc5-1fea-846c-566eed44-1f762be3.dmp
2016/01/06 11:22:08 79fdf8de 07d5aa57 INFO   TS>Starting Error Reporter: /opt/ts3soundboard/TeamSpeak3-Client-linux_amd64/error_report
2016/01/06 11:22:08 X [MAIN] Disconnected:  6
2016/01/06 11:22:08 X [MAIN] New connection

So the button become green on webinterface, but i don't see the music bot on teamspeak (of course i changed the ip address) and i want to shut down the bot and i have :

2016/01/06 11:40:06 79fdf8de 07d5aa57 WARN Could not request shutdown. Please make sure that the loopback interface is not firewalled.
2016/01/06 11:40:07 79fdf8de 07d5aa57 INFO KILL [admin] OK
 
Status
Not open for further replies.
Top