Bot connection issue

Started by Emre, October 17, 2014, 01:24:01 AM

Previous topic - Next topic

Emre

Hello,

I'm following the deb 7 box all rules correctly, but not connected bot. I keep asking myself what am I doing wrong.

PHP Version: 5.5

MySQL 5.6
Database client version: libmysql - 5.6.19
PHP extension: mysqli

JTS3ServerMod 5.2.2 Hosting Edition Final (29.06.2014) Instance Manager started...
Successfully connected to MySQL server for logging!
MySQL mode enabled!
Telnet interface started on port 5873!


2014-10-16 23:06:29 START_MANAGER JTS3ServerMod 5.2.2 Hosting Edition Final (29.06.2014) Instance Manager started...
2014-10-16 23:06:29 CONFIG Bot chat command !exec is disabled!
2014-10-16 23:06:29 CONFIG Multi IP Mode disabled!
2014-10-16 23:06:30 LOGGER_SQL_CONNECT Successfully connected to MySQL server for logging!
2014-10-16 23:06:30 CONFIG MySQL mode enabled!
2014-10-16 23:06:30 TELNET_START Telnet interface started on port 5873!
2014-10-16 23:06:36 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:06:36 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:06:38 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:06:38 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:06:44 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:06:44 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:07:37 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:07:37 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:08:01 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:08:01 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:09:07 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:09:07 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:09:09 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:09:09 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:09:21 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:09:21 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:09:23 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:09:23 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:09:25 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:09:25 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-16 23:09:26 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-16 23:09:26 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...



JTS3ServerMod_InstanceManager.cfg

bot_fulladmin_list =WhA9x041NVqEasFTGDlRQCdusMw=

telnet_enable = 1
telnet_port = -1
telnet_password = testpass1
telnet_whitelist = 127.0.0.1
telnet_run_forever = 1

mysql_enable = 1
mysql_host = 127.0.0.1
mysql_port = 3306
mysql_user = root
mysql_password = dbtestpass
mysql_database = db1


JTS3ServerMod_server1.cfg

ts3_server_address = 127.0.0.1
ts3_server_query_port = 10011
ts3_server_query_login = serveradmin
ts3_server_query_password = VdFeokA
ts3_virtualserver_id = 11
ts3_virtualserver_port = 9987
bot_channel_id = -1
bot_admin_list = 4jFbaS9C7eZXVQo9RqjJg4h7a5A=



Bot Settings

Bot Name: bot1_3 Display log Rename Bot
Server IP: 67.45.44.22 - ID / Port: 9987
Bot Status: Bot service not available!


Teamspeak 3 server address.
67.45.44.22 and tested 127.0.0.1

Teamspeak 3 server query port, default is 10011.
10011

Teamspeak 3 server query account name, which should be used by the bot.
serveradmin

Teamspeak 3 server query account password.
VdFeokA



Web Settings

The IP address of the computer where the JTS3ServerMod process is running.
127.0.0.1

The telnet port of the JTS3ServerMod telnet server. This port was set at the InstanceManager.cfg file.
5873

The password of the JTS3ServerMod telnet server. This password was set at the InstanceManager.cfg file.
testpass1



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:30033           0.0.0.0:*               LISTEN      5500/ts3server_linu
tcp        0      0 0.0.0.0:1140            0.0.0.0:*               LISTEN      22072/apache
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2074/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2333/exim4
tcp        0      0 0.0.0.0:10011           0.0.0.0:*               LISTEN      5500/ts3server_linu
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      21938/mysqld
tcp6       0      0 :::5873                 :::*                    LISTEN      24763/java
tcp6       0      0 :::22                   :::*                    LISTEN      2074/sshd
tcp6       0      0 ::1:25                  :::*                    LISTEN      2333/exim4
tcp6       0      0 :::9000                 :::*                    LISTEN      24739/php-fpm
udp        0      0 0.0.0.0:9987            0.0.0.0:*                           5500/ts3server_linu
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     5391     2072/dbus-daemon    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     SEQPACKET  LISTENING     3984     292/udevd           /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     29164    21938/mysqld        /var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     5363     1995/acpid          /var/run/acpid.socket
root@localhost:/tmp/sr2#


MySQL

Table  Descending Action Rows Type Collation Size Overhead
jts3servermodwebui_botfunction 14 MyISAM utf8_unicode_ci 5.3 KiB -
jts3servermodwebui_functionpage 109 MyISAM utf8_unicode_ci 13.1 KiB -
jts3servermodwebui_language 2 MyISAM utf8_unicode_ci 2.1 KiB -
jts3servermodwebui_settings 16 MyISAM utf8_unicode_ci 5.4 KiB 52B
jts3servermodwebui_translation 928 MyISAM utf8_unicode_ci 174.5 KiB -
jts3servermodwebui_users 1 MyISAM utf8_unicode_ci 2.1 KiB -
jts3servermodwebui_usersinstances 1 MyISAM utf8_unicode_ci 2.1 KiB -
jts3servermod_advertising 0 MyISAM utf8_unicode_ci 1 KiB -
jts3servermod_automove 0 MyISAM utf8_unicode_ci 1 KiB -
jts3servermod_badchannelname 0 MyISAM utf8_unicode_ci 1 KiB -
jts3servermod_badnickname 0 MyISAM utf8_unicode_ci 1 KiB -
jts3servermod_instanceconfig 9 MyISAM utf8_unicode_ci 2.6 KiB 128B
jts3servermod_instances 1 MyISAM utf8_unicode_ci 3 KiB -
jts3servermod_log 0 MyISAM utf8_unicode_ci 1 KiB -
jts3servermod_servergroupprotection 0 MyISAM utf8_unicode_ci 1 KiB -
15 tables

Stefan1200

Very good error report, thank you.
Does everything (bot, web interface, TS3, MySQL) runs on the same machine?

It's confusing for me, because the bot is writing:
2014-10-16 23:06:36 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
But the web interface write
Bot Status: Bot service not available!
I guess that is your problem, right?

As a side note: If you have the MySQL mode activated, you don't need the JTS3ServerMod_server1.cfg file.

Emre

Does everything (bot, web interface, TS3, MySQL) runs on the same machine?

   Yes, same machine.

I guess that is your problem, right?

  True

PS: MySQL mode activated, but unfortunately:

QuoteBot Name:   bot1_5 Display log Rename Bot
Server IP:   127.0.0.1 - ID / Port: 9987
Bot Status:   Bot service not available!

Stefan1200

If you try it again now, do you get a line with the new date and time with this text in the log file of the bot?
TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...

Emre

2014-10-17 06:42:11 SHUTDOWN Got signal from operating system, quitting now...
2014-10-17 06:42:11 STOP_ALL Stopping all virtual bot instances...
2014-10-17 06:42:11 QUIT_MANAGER Quit instance manager...


2014-10-17 06:42:25 START_MANAGER JTS3ServerMod 5.2.2 Hosting Edition Final (29.06.2014) Instance Manager started...
2014-10-17 06:42:25 CONFIG Bot chat command !exec is disabled!
2014-10-17 06:42:25 CONFIG Multi IP Mode disabled!
2014-10-17 06:42:26 LOGGER_SQL_CONNECT Successfully connected to MySQL server for logging!
2014-10-17 06:42:26 CONFIG MySQL mode enabled!
2014-10-17 06:42:26 TELNET_START Telnet interface started on port 5873!


Web Backend

Bot List of: administrator
Bot Settings
  Bot Settings - Connection Details
   Save


Produced Log

2014-10-17 06:42:44 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 06:42:44 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 06:42:46 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 06:42:46 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 06:42:59 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 06:42:59 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 06:43:00 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 06:43:00 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 06:43:04 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 06:43:04 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 06:43:08 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 06:43:08 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...


Stefan1200

At the web interface it is still?:
Bot Status:   Bot service not available!

Emre


Stefan1200

I hope I can release a new test version today. Currently I try to add a feature to track down bot telnet problems.

Emre

Thank you.

I disable temporarily MySQL mode and reboot.

JTS3ServerMod 5.2.2 Hosting Edition Final (29.06.2014) Instance Manager started...
MySQL mode disabled!
bot1: Virtual bot instance "bot1" starts now
bot1: Successful connected to 127.0.0.1!
bot1: Login as "serveradmin" successful!
Telnet interface started on port 5873!
bot1: Successful selected virtual server 1!
bot1: Creating client database cache...
bot1: Bot started and connected successful, write !botinfo in server chat to get an answer!


In this way seems to not have any problems. But does not trigger via the web

2014-10-17 07:01:23 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 07:01:23 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 07:01:25 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 07:01:25 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 07:01:32 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 07:01:32 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...


Bot List of: administrator

Bot Name Last Bot Start Last successful connection
Bot not runningbot1_5 Never Never


Bot Name: bot1_5 Display log Rename Bot
Server IP: 127.0.0.1 - ID / Port: 9987
Bot Status: Bot service not available!


I hope this information helps.

Stefan1200

No, the problem is not the bot connecting to the TS3 server. This is also working with MySQL (you just don't see a log file, because it is written into the MySQL database).

Your problem is this:
Bot Status:   Bot service not available!
This is just the web interface try to connect to the bot.

Emre

#10
QuoteYour problem is this:
Bot Status:   Bot service not available!
This is just the web interface try to connect to the bot.

All right. Thank you for your help.

Stefan1200

Please try a fresh reinstall of the new version 5.3 RC1 of the bot.

Emre

2014-10-17 12:38:40 SHUTDOWN Got signal from operating system, quitting now...
2014-10-17 12:38:40 STOP_ALL Stopping all virtual bot instances...
2014-10-17 12:38:40 QUIT_MANAGER Quit instance manager...
2014-10-17 12:38:43 START_MANAGER JTS3ServerMod 5.3 Hosting Edition RC 1 (17.10.2014) Instance Manager started...
2014-10-17 12:38:43 CONFIG Bot chat command !exec is disabled!
2014-10-17 12:38:43 CONFIG Multi IP Mode disabled!
2014-10-17 12:38:44 LOGGER_SQL_CONNECT Successfully connected to MySQL server for logging!
2014-10-17 12:38:44 CONFIG MySQL mode enabled!
2014-10-17 12:38:44 TELNET_START Telnet interface started on port 5873!
2014-10-17 12:38:46 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:38:46 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:38:47 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:38:47 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:38:55 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:38:55 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:38:56 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:38:56 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:01 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:01 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:01 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:01 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:05 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:05 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:05 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:05 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:08 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:08 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:09 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:09 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:24 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:24 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:26 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:26 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:27 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:27 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:28 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:28 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:31 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:31 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:40 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:40 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 12:39:41 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 12:39:41 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...


Bot Name: bot1_1 Display log Rename Bot
Server IP: 67.45.44.22 - ID / Port: 9987
Bot Log Status: 0 warnings and 0 errors occurred since last bot start on 31/Dec/69 07:00:00PM!
Bot Status: Bot service not available!


Bot Name: bot1_1 Display log Rename Bot
Server IP: 192.0.0.1 - ID / Port: 9987
Bot Log Status: 0 warnings and 0 errors occurred since last bot start on 31/Dec/69 07:00:00PM!
Bot Status: Bot service not available!


I tried JTS3ServerMod 5.3 Hosting Edition RC 1, the issue still continues.


Stefan1200

Ok, but this version has a small connection test on the settings page, you find it below of the telnet password. Please post what you can see here (of course, you can remove that displayed password).

Emre

This do a small connection test to the JTS3ServerMod telnet server. If you get the "Bot service not available!" message while configuring a bot, check here if there are connection problems. Web interface was banned or on that IP address / port is another service running.

Make sure that the IP address of the web interface is whitelisted (check telnet_whitelist in the JTS3ServerMod_InstanceManager.cfg) and the password is correct!