Error waiting for a response to our STUN BINDING test

when I start my Janus Server I am getting the following Errors:

#033[35m[FATAL]#033[0m [ice.c:janus_ice_test_stun_server:1106] Error waiting for a response to our STUN BINDING test: 4 (Interrupted system call)
#033[35m[FATAL]#033[0m [janus.c:main:5166] Invalid STUN address stun.wittmer.services:5349

I can reach the Server:

nmap 193.24.209.151 -sU -sT -p U:3478,5349,T:3478,5349
Starting Nmap 7.92 ( https://nmap.org ) at 2023-10-09 20:34 UTC
Nmap scan report for l7vps-009.wittmer.host (193.24.209.151)
Host is up (0.17s latency).

PORT     STATE SERVICE
3478/tcp open  stun
5349/tcp open  stuns
3478/udp open  stun
5349/udp open  stuns

Nmap done: 1 IP address (1 host up) scanned in 0.97 seconds

And I tested the turn server (coturn) here:
[https://icetest.info/](https://icetest info)
And this looks fine so far.

Any ideas why Janus is complainig ?

That depends on the DNS of the machine where Janus is installed, since Janus will simply try to resolve the address. If it fails to resolve it at startup, either the network is not available yet (maybe some docker setup where networking starts later?) or resolving that address from that specific machine fails and you should investigate why.

Thanks for your idea.
DNS resolving works on that machine (no docker), but not for janus. Why ?

With IP it is working. But now Janus complains about:

#033[31m[ERR]#033[0m [plugins/janus_lua.c:janus_lua_init:1421] Error loading Lua script /usr/share/janus/lua/echotest.lua: /usr/share/janus/lua/echotest.lua:6: module 'json' not found:

What am I now missing ? Is it wrong build ? Build dependency missing ?

Looks like janus has an IPv6 problem …

… not Janus had the problem but STUN server.
So no DNS but IPv6 problem.
coturn config is saying that an empty IP (listening-ip=) will result in listening on any IPv4 and IPv6 interface. That is just wrong. “listening-ip=::” will do that trick.
So it is solved now.
Thank you for your ideas.

1 Like