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

You are not connected to the server #395

Closed PassiAPI closed 6 years ago

PassiAPI commented 6 years ago

Hello, I recently installed the Rank system on our Linux root server. Everything worked perfectly, but after a root server restart, the website always say: "You are not connected to the server". What can I do?

bykidi commented 6 years ago

put phpinfo.php in your site folder, open it with your browser, make sure that REMOTE_ADDR is your actual IP address and it match with your IP on TS server and you use IPv4 or IPv6 or both?

PassiAPI commented 6 years ago

Where i find the php info file?

Shad86 commented 6 years ago

At first make sure the ranksystem is running

If it runs and it wont change:

clear your session one time

sess

Also Be sure your connect on both "tools" with the same ip

for example:

IPV4 - TS3 / IPV4 - Website - working

IPV6 - TS3 / IPV6 - Website - working

IPV4 - TS3 / IPV6 - Website - not working

PassiAPI commented 6 years ago
  1. the ranking system is online 2. I tried it, but it did not help either. 3. nothing was found in the logs
PassiAPI commented 6 years ago

Ok apparently I'm really connected to another IP as I'm on the site. But how can I fix it. Does the ts3 run on ipv6?

Shad86 commented 6 years ago

Yes the TS3 Server supports ipv6 and 4, so you could force ts3 to use ipv4 or 6 only.

Old thread on teamspeak forum: https://forum.teamspeak.com/threads/127160-Force-Teamspeak3-to-use-ipv4-only

PassiAPI commented 6 years ago

but why is it suddenly so?

PassiAPI commented 6 years ago

But is it really? All other users on the server have synonymous the problem.

Shad86 commented 6 years ago

Hm, well i don't know but it seems something changed after you restarted the Server.

PassiAPI commented 6 years ago

in which file should I adjust the ip settings of the teamspeak?

Shad86 commented 6 years ago

if it exists, in your ts3server.ini should be in the main ts3-server folder - if it got generated

PassiAPI commented 6 years ago

I've looked again now. The ip4 address on the website is the same as on the ts.

PassiAPI commented 6 years ago

So it has to be something else ...

Shad86 commented 6 years ago

Well, the bot say's you're not connected.

4 cases are possible:

1.you're not on the ts3

2.the bot itself can't see you

3.the bot isn't connected (but in this case there would be a other message like "the ranksystem seems to be offline and the data are old")

4.Ipv4 / ip6 issue (but this one you already fixed)

bykidi commented 6 years ago

mines:

  1. disable the bot delay option during the tests
  2. make sure that if your bot got all needed permissions if it is using limited query account (not serveradmin one)
PassiAPI commented 6 years ago

I tryed it, but it still not working

PassiAPI commented 6 years ago

Reinstall?

Shad86 commented 6 years ago

you can try it, but i think the behavior would be the same after it, as you said it worked before you restarted your root, so there has to be changed something after you restarted your root.

you also can send me your ranksystem website privately @ rank@hdf-multigaming.de - i will take a look over it tomorrow, as i have to go to sleep now

Newcomer1989 commented 6 years ago

1) How looks your "voice_ip=" inside your ts3server.ini?

2) What are you getting on the linux comand "ifconfig"?

3) What webserver are you using? If apache, how looks your "httpd.conf"?

4) Have you firewall or a special routing on your machine, like iptables?

PassiAPI commented 6 years ago

i didn't creat ts3server.ini

PassiAPI commented 6 years ago
  1. Command not found
PassiAPI commented 6 years ago
  1. I only found a apach2.conf file

https://pastebin.com/u1HAhX3w

Newcomer1989 commented 6 years ago

to 1) The ts3server.ini should be there. You could create it by using the start command "createinifile=1". If you have none, I guess TeamSpeak supports IPv4 and IPV6 at default. With the ts3server.ini you could force TeamSpeak only to use on of the both protocols.

to 2) Which linux do you have?

PassiAPI commented 6 years ago

1) I will TRY 2) Debian

Newcomer1989 commented 6 years ago
  1. you can install ifconfig with apt-get install net-tools or you use the command ip address and share us this result.
PassiAPI commented 6 years ago

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 37.114.45.### netmask 255.255.254.0 broadcast 37.114.45.### inet6 fe80::####:4ff:fee4:7dca prefixlen 64 scopeid 0x20 ether 4e:65:04:e4:7d:## txqueuelen 1000 (Ethernet) RX packets 52598353 bytes 9839955874 (9.1 GiB) RX errors 0 dropped 89668 overruns 0 frame 0 TX packets 58984206 bytes 8431539841 (7.8 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1 (Lokale Schleife) RX packets 22156649 bytes 9378218961 (8.7 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 22156649 bytes 9378218961 (8.7 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

The # are from me

Newcomer1989 commented 6 years ago

No problem. That tells us, you are using IPv4 and IPv6 on your machine at the same time.

So you should have a look, what protocol the user should use. Perhaps force IPv4 for the ts3server and also for the webserver and you should be fine.

Newcomer1989 commented 6 years ago

Should be solved with version 1.2.4.