NoMediaReceived SESSION No media received

We use Jitsi in docker https://github.com/jitsi/docker-jitsi-meet together with session recording module. We run the same configuration on different infrastructure providers. The recording functionality works great everywhere except only one provider. At that provider the recording starts successfully, but it stops automatically after several seconds. We can’t figure out the reason. There is a standard message in the log.

2020-08-12 15:20:28.339 INFO: [55] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.launch() Starting ffmpeg with command ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720
 -thread_queue_size 4096 -i :0.0+0,0 -f alsa -thread_queue_size 4096 -i plug:bsnoop -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx264 -preset veryfas
t -profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f mp4 /config/recordings/fydukgegvmrzyhiz/aaa_2020-08-12-15-20-08.mp4 ([ffmpeg, -y, -v, info
, -f, x11grab, -draw_mouse, 0, -r, 30, -s, 1280x720, -thread_queue_size, 4096, -i, :0.0+0,0, -f, alsa, -thread_queue_size, 4096, -i, plug:bsnoop, -acodec, aac, -strict, -2, -ar,
 44100, -b:a, 128k, -af, aresample=async=1, -c:v, libx264, -preset, veryfast, -profile:v, main, -level, 3.1, -pix_fmt, yuv420p, -r, 30, -crf, 25, -g, 60, -tune, zerolatency, -f,
 mp4, /config/recordings/fydukgegvmrzyhiz/aaa_2020-08-12-15-20-08.mp4])
2020-08-12 15:20:30.370 INFO: [59] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange() Ffmpeg capturer transitioning from state Starting up to Runnin
g
2020-08-12 15:20:30.371 INFO: [59] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Starting up to R
unning
2020-08-12 15:20:30.373 INFO: [59] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service started up successfully, sending on iq <iq to='jibribrewery@internal-muc.meet.jitsi/
focus' id='W40sn-34' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='on'/></iq>
2020-08-12 15:20:43.334 INFO: [56] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {}, all clients muted? false
2020-08-12 15:20:43.335 INFO: [56] org.jitsi.jibri.selenium.JibriSelenium.invoke() Recurring call status checks generated event org.jitsi.jibri.selenium.SeleniumEvent$NoMediaRec
eived@6f8fc849
2020-08-12 15:20:43.336 INFO: [55] org.jitsi.jibri.selenium.JibriSelenium.onSeleniumStateChange() Transitioning from state Running to Error: NoMediaReceived SESSION No media rec
eived
2020-08-12 15:20:43.337 INFO: [55] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Running to Error
: NoMediaReceived SESSION No media received
2020-08-12 15:20:43.337 INFO: [55] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service had an error Error: NoMediaReceived SESSION No media received, sending error iq <iq 
to='jibribrewery@internal-muc.meet.jitsi/focus' id='W40sn-36' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='off' failure_reason='error' should_retry='true'/>
</iq>
2020-08-12 15:20:43.338 FINE: [55] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:recording
2020-08-12 15:20:43.338 INFO: [55] org.jitsi.jibri.JibriManager.stopService() Stopping the current service
20

However, usage_timeout is set 0.

cat ./docker-jitsi-meet/jibri/rootfs/defaults/config.json | grep usage_timeout
            "usage_timeout": "0"

And there is mp4 file in the folder with recordings, this file contains audio and video, so the system receives media.

How can we troubleshoot the reason of such strange behaviour?

Thank you

Hi,
Since they run MediaReceivedStatusCheck.kt every 15s and delay 15s so by the time the second run of the task, NO_MEDIA_TIMEOUT was reached.
I fix this by cloning stable-v8.0 and change the the values inside JibriSelenium.kt to 5s and delay 5s, rebuild then replace /opt/jitsi/jibri/jibri.jar inside the container

Could you share this jar? I will try on my setup to check if it helps.
Thanks