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
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.
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!
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...
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...
At the web interface it is still?:
Bot Status: Bot service not available!
Yes, still.
I hope I can release a new test version today. Currently I try to add a feature to track down bot telnet problems.
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.
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.
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.
Please try a fresh reinstall of the new version 5.3 RC1 of the bot.
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.
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).
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!
Please try to open a telnet connection to 127.0.0.1 and port 5873 from the same machine, where you have the bot installed. What happened?
root@sr4:~# telnet -d 127.0.0.1 5873
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
JTS3ServerMod
QuoteWhere you have the bot installed.
/home/JTS3Server_RC/JTS3ServerMod.jar
/www/jts3/index.php
Now you see me totally confused with big question marks over my head...
The web interface is doing the same and don't get this JTS3ServerMod text.
Please replace the BotTelnet.php in your web interface class directory with the attached one. Afterwards go again to the settings page of the web interface and post again the telnet test result.
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!
< J
> quit
< T
Screenshot: http://ibin.co/1e33T2I4Aqaz
Thank you, that helped me.
Again, please replace the BotTelnet.php in your web interface class directory with the attached one. Afterwards go again to the settings page of the web interface and post again the telnet test result.
Everything works great!
< JTS3ServerMod
> login 1234567x
< STATUS OK
> instancerunningcount
< 0
< STATUS OK
> quit
Bot Name: bot1_1 Display log Rename Bot
Server IP: 127.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!
2014-10-17 14:22:39 SHUTDOWN Got signal from operating system, quitting now...
2014-10-17 14:22:39 STOP_ALL Stopping all virtual bot instances...
2014-10-17 14:22:39 QUIT_MANAGER Quit instance manager...
2014-10-17 14:22:46 START_MANAGER JTS3ServerMod 5.3 Hosting Edition RC 1 (17.10.2014) Instance Manager started...
2014-10-17 14:22:46 CONFIG Bot chat command !exec is disabled!
2014-10-17 14:22:46 CONFIG Multi IP Mode disabled!
2014-10-17 14:22:47 LOGGER_SQL_CONNECT Successfully connected to MySQL server for logging!
2014-10-17 14:22:47 CONFIG MySQL mode enabled!
2014-10-17 14:22:47 TELNET_START Telnet interface started on port 5873!
2014-10-17 14:22:54 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 14:22:54 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 14:22:57 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 14:22:57 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 14:23:00 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 14:23:01 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 14:23:01 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 14:23:02 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
2014-10-17 14:23:08 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 14:23:08 TELNET_CONNECTION Closed telnet connection to 127.0.0.1...
Thank you, thats good news.
I changed now the normal functions like the testing function and update the bot package.
Please download the new 5.3 RC2 and follow the update instructions from the changelog (or do a clean install, if you prefer it). I hope it fix your issues?
Everything works great!
< JTS3ServerMod
> login 1234567x
< STATUS OK
> instancerunningcount
< 1
< STATUS OK
> quit
Bot started successfully!
Please check the bot log for warning and error messages.
Page 1 with 20 log entries Reload log entries (show latest log entries)
Date Function Type Message
17/Oct/14 11:47:14AM JTS3ServerMod STATUS Activate log level: INFO
17/Oct/14 11:47:14AM JTS3ServerMod STATUS Virtual bot instance "bot1_1" starts now
Bot Settings
Bot Name: bot1_1 Display log Rename Bot
Server IP: 127.0.0.1 - ID / Port: 9987
Bot Log Status: 0 warnings and 0 errors occurred since last bot start on 17/Oct/14 11:47:14AM!
Bot Status: Bot running!
Reload Configuration Reload Configuration - Reconnect Reconnect - Stop Stop
2014-10-17 15:47:13 TELNET_CONNECTION Accepted telnet connection from 127.0.0.1...
2014-10-17 15:47:14 START_INSTANCE Start virtual bot instance bot1_1..
Thank you. My problem is solved by following ur progress.
Wonderful :)
de.stefan1200.jts3servermod.BotConfigurationException: Auto Move needs at least one server group set!
at de.stefan1200.jts3servermod.functions.AutoMove.loadConfig(AutoMove.java:92)
at de.stefan1200.jts3servermod.JTS3ServerMod.reloadConfig(JTS3ServerMod.java:657)
at de.stefan1200.jts3servermod.JTS3ServerMod.loadConfig(JTS3ServerMod.java:1072)
at de.stefan1200.jts3servermod.JTS3ServerMod.loadAndCheckConfig(JTS3ServerMod.java:494)
at de.stefan1200.jts3servermod.JTS3ServerMod.runMod(JTS3ServerMod.java:1281)
at de.stefan1200.jts3servermod.JTS3ServerMod.access$2(JTS3ServerMod.java:1274)
at de.stefan1200.jts3servermod.JTS3ServerMod$1.run(JTS3ServerMod.java:1247)
at java.lang.Thread.run(Thread.java:701)
There many channel and groups. http://ibin.co/1e3hVTvFIDOD
How easy way upload i have pre-backup automove.cfg?
21,16
22,17
23,18
24,19
25,20
26,43
27,44
28,45
29,46
...
Thank you.
You could try to import it somehow directly to the MySQL table. But there is no easy way.
Thanks Again!