Possible bug: Jicofo API

Jicofo API fails for some conditions. I mean the result of the following command:

curl -s http://127.0.0.1:8888/stats

My system

  • Debian 11 Bullseye
  • The current stable Jitsi
  • openjdk-11-jre-headless
  • 4 cores / 8 GB RAM
dpkg -l "jitsi*" jicofo prosody "openjdk*"
ii  jicofo                        1.0-934-1           
ii  jitsi-meet                    2.0.7830-1          
ii  jitsi-meet-prosody            1.0.6600-1          
ii  jitsi-meet-turnserver         1.0.6600-1          
ii  jitsi-meet-web                1.0.6600-1          
ii  jitsi-meet-web-config         1.0.6600-1          
un  jitsi-videobridge             <none>              
ii  jitsi-videobridge2            2.2-43-gce94dbb2-1  
ii  openjdk-11-jre-headless:amd64 11.0.16+8-1~deb11u1 
ii  prosody                       0.11.9-2+deb11u2 

How to reproduce

  1. After a typical installation API responds correctly
curl -s http://127.0.0.1:8888/stats
                                                                                                            
{"largest_conference":0,...}
  1. Creating a meeting room

  2. Trying the API again but this time there is an error

curl -s http://127.0.0.1:8888/stats
<html>                                                                                 
<head>                                                                                 
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 Request failed.</title>
</head>                                                                                
<body><h2>HTTP ERROR 500 Request failed.</h2>     
<table>                                                                                                                                                                       
<tr><th>URI:</th><td>/stats</td></tr>                                                  
<tr><th>STATUS:</th><td>500</td></tr>                                                  
<tr><th>MESSAGE:</th><td>Request failed.</td></tr>
<tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-e3994ef</td></tr>
</table>
<hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 11.0.10</a><hr/>
                                           
</body>                                                                                
</html>
  1. After closing all meeting rooms, API starts working again
curl -s http://127.0.0.1:8888/stats
{"largest_conference":1,...}

Files and Logs
config.txt (971 Bytes)
jicofo.conf.txt (411 Bytes)
jicofo.log.txt (84.1 KB)

This had been fixed. fix: Fix NPE when getting stats. (#977) · jitsi/jicofo@9f75952 · GitHub

1 Like