Jicofo debug access

Hello, We have a corporative Jitsi server installed by a colleague of mine that we use to provide streaming services for the company. This is custom jitsi docker installation with some changes. We also have 3 Jibri servers in the test environment and 20 Jibri servers in production.
I was assigned a task of creating some sort of monitoring system especially for our Jibri servers. The goal is to check if any of the jibri instances has stopped and restart it in this case.

As I said this installation wasn’t done by me and I’m only starting to know Jitsi’s architecture. So initially I wanted to ask if this was possible, but I missed this community initially and created an issue in Jibri’s github page. This one: Control Jibri via API · Issue #492 · jitsi/jibri · GitHub

Where user Damencho said I could use curl http://localhost:8888/debug to list Jibri’s instances.
So my initial thought was to check running Jibri instances with this command and then use Jibri’s http API to check if they were running.

The problem is that when I entered the server where Jitsi is running I saw no exposed port on Jicofo container. I entered the container and there was a running service listening in port 8888. So we exposed port 8888 in the docker-composer.yml file and tried the command http://localhost:8888/debug, but I returned an HTML with a body of 404.

We also discovered this post: Jicofo health checks through rest API - #8 by shawn

And enabled it, but I’m getting an empty response.

Is there something else we need to enable in order to run http://localhost:8888/debug and http://localhost:8888/about/health correctly ?

For jicofo an empty 200 is the expected response from /about/health when the instance is healthy. There’s nothing you need to enable for /debug.

So why would it be returning a 404 response?

Which version of jicofo is that?

Jicofo version 1.0-832-1

“If all else fails, read the souce” - anonymous

I checked Jicofo code for where was the response for /debug, and I found the Debug.java file in org/jitsi/jicofo/rest folder.
Then I extract the installed jicofo.jar version and couldn’t find this file in the this folder. Then I grabbed the most recent version of Jicofo and the file was there.

So this means /debug is not there. But looking at the code I see that /stats exists and I could get the information of how many jibris are active.
It would be great if I could also get the Jibri’s instances IPs. But I think I can handle this in another way.

If there is a way to get the ips please let me know. Thanks.

Jicofo 832 is from Dec 88 2021. We highly recommend you update to the latest stable version.