• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Server IP Resolve Problem when running in docker

F4te

Active member
Version: 1.3.21-beta-4
Using Docker with the default Network bridge and bridging Ports from Host to Container
Docker Network 172.17.0.0/16 all Connections now resolve to 172.17.0.1:XXXX

[2019-06-28 23:29:21] [INFO] 1 | Voice client 2/XXXXXXXXXXXXXXXXXX= (F4te) from 172.17.0.1:59061 joined.

Using Curl the right ip Shows:
curl <Server IP>:9987
[2019-06-28 23:51:55] [INFO] 1 | Voice client 0/ (undefined) from <insert my public ip here>:51320 left.
 
Last edited:

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Well good point.
You're right if you're using TeaSpeak within a docker the addresses are also the docker mapped addresses.
I'm not sure if there is even a good way to "fix" this because I'm not sure if I could get the external address or only the address which is visible to the docker :)

Edit: May a usefully GitHub issue: https://github.com/docker/for-mac/issues/180
 

F4te

Active member
The weird stuff is, that only happens if you use a Tea(m)Speak Client.

Connecting to the port via telnet, curl, wget, Web-Browser shows the correct IP.

But the problem didn't show up beforehand. Did you change anything between 1.3.18 and 1.3.19-beta-3 ?[that is around the time when it first showed up]
 
Last edited:

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Yes this could be because these app using TCP but TeaSpeak uses UDP.
I guess thats the reason for that.
 

F4te

Active member
but it seems that it's a problem with Teaspeak after all

i tested it with
1.3.21-beta-4 => problem exists my ip shows up as 172.17.0.1
1.3.19-bet-3 => problem exists my ip shows up as 172.17.0.1
1.3.17-beta-1=>NO PROLBEM my ip shows up as my public ip

I use these Options to Start the binary:
-Pgeneral.database.url=sqlite://database/TeaData.sqlite
-Pbinding.query.port=31313
-Pbinding.file.port=13131
-Pweb.enabled=0
-Pvoice.notifymute=0
-Pvoice.protocol.experimental_31=1
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Hmm thats a bit strange.
I'll have to take a look, but I though I haven't changed there anything within this category....
 

F4te

Active member
if you need any logs or anything let me know.
It's not that big of a Problem, since nobody knows my TeaSpeak IP, but it could become one
 

F4te

Active member
Damn go back
seems to be related to weblist and license
as soon as the licence validated and the weblist works
the ip resolution works as well
 

F4te

Active member
Waiting for about 30 min so that Weblist and License works.
After that restarting TeaSpeak-Client

But as soon as that happens the Server Crashes and fails to write crash dumps

thas in logs

[2019-06-29 21:42:53] [CRITICAL] 1 | Buffer over/underflow: packet_buffer_ptr != &packet_buffer[packet_buffer.length() - 1]; packet_buffer_ptr := 0x7f008988a47a; packet_buffer.end() := 0x7f008988a3da
[2019-06-29 21:42:53] [INFO] 1 | [PublicIPXXXXXXl | 0] Client may cached a old permission list (Server is newer than the client's last join)
[2019-06-29 21:42:53] [INFO] 1 | Voice client 10/XXXXXXX=(XXXX) from XXXXXXXX:34022 joined.
[2019-06-29 21:42:53] [WARNING] 1 | Command handling of command clientupdate needs 15ms.
[2019-06-29 21:42:55] [WARNING] 1 | Command handling of command clientmove needs 12ms.
[2019-06-29 21:42:59] [WARNING] 1 | Command handling of command clientmove needs 10ms.
[2019-06-29 21:43:05] [CRITICAL] GEN | The server crashed!
[2019-06-29 21:43:05] [CRITICAL] GEN | Failed to write/move crash dump!
[2019-06-29 21:43:05] [CRITICAL] GEN | Please report this crash to the TeaSpeak maintainer WolverinDEV
[2019-06-29 21:43:05] [CRITICAL] GEN | Official issue and bug tracker url: https://github.com/TeaSpeak/TeaSpeak/issues
[2019-06-29 21:43:05] [CRITICAL] GEN | Any reports of crashes are useless if you not provide the above generated crashlog! [2019-06-29 21:43:05] [CRITICAL] GEN | Stopping server

I'll try to crash it again and make some crashdumps


Edit: Server Crashes if more then one person joins at once
 

F4te

Active member
What folders do i need my container to give acces to to write a crah dump ?
Because i can't create one
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Well yes because of CPU improvements and this could be done because the server is stable :D