Docker-jitsi-meet: jvb colibri is running on private (127.0.0.1) server and is no longer accessible

Created on 3 Oct 2020  路  5Comments  路  Source: jitsi/docker-jitsi-meet

With the update to stable-5076, I can't use the colibri stats any more within my docker-setup. I believe the reason is this change from jvb, where the /colibri endpoint is now only serverd on the loopback address. This is of course a sensible choice for most setups, but within docker this means you can't access it any more at all.

from within that container, I can poll this:

docker-compose exec jvb curl http://localhost:8080/colibri/stats
  {"inactive_endpoints":0,"inactive_conferences":0,"total_ice_succeeded # shortened...

from the outside, not so much:

curl http://localhost:8080/colibri/stats
  curl: (56) Recv failure: Connection reset by peer

To make this 100% clear: this worked in the previous stable. I did set colibri and rest via JVB_ENABLE_APIS=rest,colibri in my .env. And I also set up the additional port in my docker-compose.yml. This is a regression stemming from (probably) that mentioned jvb change.

According to this config documentation one should be able to set org.jitsi.videobridge.rest.private.jetty.host - if that was set to 0.0.0.0 that should bring back the previous behaviour, or so I thought. Putting this line into jvb/rootfs/defaults/sip-communicator.properties did _not_ fix the problem for me, sadly.

Can someone help me get the colibri stats back?

bug

Most helpful comment

We'll have a new release soon 馃憤

All 5 comments

So, my config explained as above did not apply. So I went looking where the configuration is read:

https://github.com/jitsi/jitsi-videobridge/blob/25c5f8db14a300b6e1ef83e7c7214f79dbf7b342/jvb/src/main/kotlin/org/jitsi/videobridge/Main.kt#L123-L140

combined with

https://github.com/jitsi/jicoco/blob/55b408182a329a1d8624f3384902e145aa3710d3/jicoco/src/main/kotlin/org/jitsi/rest/JettyBundleActivatorConfig.kt#L33-L45

gives us this string for legacy config:
org.jitsi.videobridge.rest.private.jetty.host as seen above. Odd. Should work.

So I wondered, why this was not working. Turns out, this was not written to my CONFIG-location, even though I deleted it between restarts of jvb. I may have completely missed where those config files are coming from. Either way, adding

org.jitsi.videobridge.rest.private.jetty.host=0.0.0.0

directly to the generated config in CONFIG dir, works fine. But if I add this line to jvb/rootfs... it does not.

what is the right path to make these configurations a little bit more permanent?

I had the same issue using health checks, applied your line and it works within my self built image. I've created a PR: #761

Adding

org.jitsi.videobridge.rest.private.jetty.host=0.0.0.0

to jvb containers config/sip-communicator.properties

solved the issue for me.

@saghul can we please make these changes in 5076 ?

We'll have a new release soon 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TeGuy picture TeGuy  路  4Comments

tsproesser picture tsproesser  路  8Comments

0187773933 picture 0187773933  路  7Comments

serban-mihai picture serban-mihai  路  13Comments

gerroon picture gerroon  路  6Comments