Newcomer1989 / TSN-Ranksystem

A PHP Bot that assigns time based server groups on TeamSpeak3.
https://ts-ranksystem.com
GNU General Public License v3.0
144 stars 60 forks source link

Bot stops at INFO Initialize Bot... #293

Closed Artapel closed 7 years ago

Artapel commented 7 years ago

Good day. My Rankbot does not seem to run when i start it.

Installed a new Copy of Ubuntu Distributor ID: Ubuntu Description: Ubuntu 17.04 Release: 17.04 Codename: zesty

PHP version dpkg --get-selections | grep php libapache2-mod-php7.0 install php-common install php-curl install php-zip install php7.0 install php7.0-cli install php7.0-common install php7.0-curl install php7.0-json install php7.0-mysql install php7.0-opcache install php7.0-readline install php7.0-xml install php7.0-zip install P.S Com and PDO is part of PHP-Common

sudo apt-get install php7.0-pdo Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php7.0-common' instead of 'php7.0-pdo' php7.0-common is already the newest version (7.0.15-1ubuntu4). 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

sudo apt-get install php7.0-com Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php7.0-common' for regex 'php7.0-com' php7.0-common is already the newest version (7.0.15-1ubuntu4). 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

Fresh download of Rankbot 1.2.2 Configuration went fine (had a permissions problem and applied the correct permissions - All good now)

When i try to start the bot. It only gives me one line on the logs field (I restarted the bot 5 times)

2017-04-23 12:32:02.255898 INFO Initialize Bot... 2017-04-23 12:28:48.702081 INFO Initialize Bot... 2017-04-23 12:25:34.677924 INFO Initialize Bot... 2017-04-23 12:22:10.653919 INFO Initialize Bot... 2017-04-23 12:20:51.926982 INFO Initialize Bot...

Any ideas on this one?

Shad86 commented 7 years ago

Its may an issue with your Ubuntu Version. The ranksystem was never tested on Ubuntu 17.04

Artapel commented 7 years ago

I also tried it on debian 8

On 24 Apr 2017 6:12 AM, Shad86 notifications@github.com wrote:

Its may an issue with your Ubuntu Version. The ranksystem was never tested on Ubuntu 17.04

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Newcomer1989/TSN-Ranksystem/issues/293#issuecomment-296520906, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARY-ljyx5WoWU1SRPTsJ7Ozit_CqSPg1ks5rzCFBgaJpZM4NFXnu.

NOTE: This e-mail is intended solely for the use of the individual(s) to whom it is addressed. If you are not an intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.

Shad86 commented 7 years ago

you tried to start it by hand (over console), so you may see any errors?

You can also try to debug the Ranksystem to get the error. 1) Go to file jobs/bot.php and comment the line error_reporting(0); out (change to //error_reporting(0);) 2) Open a command line and run the jobs/bot.php manual php jobs/bot.php 3) Post the output here...

Artapel commented 7 years ago

Ive done the change and here is the output 2017-05-06 20:32:14.781347 ERROR Error 0: php_network_getaddresses: getaddrinfo failed: Name or service not known 2017-05-06 20:32:14.749031 INFO Connect to TS3 Server (Address: "11.124.39.11" Voice-Port: "9988" Query-Port: "10011"). 2017-05-06 20:32:14.748980 INFO Loading addons [done] 2017-05-06 20:32:14.748919 INFO Addon: 'assign_groups' [OFF] 2017-05-06 20:32:14.748248 INFO Loading addons... 2017-05-06 20:32:14.748193 INFO Ranksystem Version: 1.2.2 2017-05-06 20:32:14.748095 INFO Check files permissions [done] 2017-05-06 20:32:14.745209 INFO Check files permissions... 2017-05-06 20:32:14.744322 INFO No newer version detected; Database check finished. 2017-05-06 20:32:14.744227 INFO Check Ranksystem database for updates. 2017-05-06 20:32:14.740507 INFO Initialize Bot... 2017-05-06 20:31:06.540521 INFO Initialize Bot... 2017-05-06 20:31:05.922814 INFO Initialize Bot... 2017-05-06 20:31:05.372449 INFO Initialize Bot... 2017-05-06 20:31:04.273491 INFO Initialize Bot... 2017-05-06 20:31:00.134011 INFO Initialize Bot...

Shad86 commented 7 years ago

(2017-05-06 20:32:14.781347 ERROR Error 0: php_network_getaddresses: getaddrinfo failed: Name or service not known)

seems your DNS isn't working or your hosts config / file redirects to a non existing hostname

So try to fix it, its definitely not an issue from the ranksystem.

There are many many links about this error if you use google btw ;).

regards

Shad86

Artapel commented 7 years ago

Im not using DNS. Using IP address. DNS works fine as i can resolve hostnames.

I have been looking around for this everywhere. Still cannot get it to work

Tried Different Machoines, Different networks. Centos, Ubuntu and Debian 8

Artapel commented 7 years ago

Oky so ive tried it again. Same problem. Can you build me a working VPS on linux so that i can download it perhaps? or teamviewer into my PC to check it out?

Artapel commented 7 years ago

I would like to update this.

I managed to get the bot working after 5 months worth of fighting it. The error message has nothing at all to do with the problem.

The problem is that the server query password was to long and it seems the rankbot refused to accept it but did not display a error referring to this.

Changing the password to a shorter password resolved the issue.

Shad86 commented 7 years ago

okay, but the "selfgenerated" password shouldn't be to long, because if so a way more people would run into this issue and from my side i only heard from 2-3 people with that kind of issue.

But thanks for the update.

case closed :)