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

Finally I have fixed via the the nightly build of Jibri deb package.

All No media received errors gone :slight_smile:

with this fix

Here is the nightly build which fixes this error.

https://download.jitsi.org/unstable/jibri_8.0-61-g99288dc-1_all.deb

Glad that fixed it for you. That build was also promoted to stable this week.

1 Like

Hi, I’m having the same issue in the latest (5142) docker release of Jitsi Meet:

020-11-11 09:58:58.261 INFO: [89] org.jitsi.jibri.service.impl.FileRecordingJibriService.invoke() Selenium joined the call, starting the capturer
2020-11-11 09:58:58.317 INFO: [89] 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 veryfast -profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f mp4 /config/recordings/fnjdyalvktpvmszm/rocketchat4sq7e58ey7urghjxqgwxjb592k42fm57ztgwxjb592k42fm57zt_2020-11-11-09-58-24.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/fnjdyalvktpvmszm/rocketchat4sq7e58ey7urghjxqgwxjb592k42fm57ztgwxjb592k42fm57zt_2020-11-11-09-58-24.mp4])
2020-11-11 09:58:59.570 INFO: [93] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange() Ffmpeg capturer transitioning from state Starting up to Running
2020-11-11 09:58:59.571 INFO: [93] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Starting up to Running
2020-11-11 09:58:59.572 INFO: [93] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service started up successfully, sending on iq <iq to='jibribrewery@internal-muc.meet.jitsi/focus' id='ev8jM-72' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='on'/></iq>
2020-11-11 09:59:13.473 INFO: [17] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {}, all clients muted? false
2020-11-11 09:59:13.489 INFO: [17] org.jitsi.jibri.selenium.JibriSelenium.invoke() Recurring call status checks generated event org.jitsi.jibri.selenium.SeleniumEvent$NoMediaReceived@12cda50b
2020-11-11 09:59:13.491 INFO: [89] org.jitsi.jibri.selenium.JibriSelenium.onSeleniumStateChange() Transitioning from state Running to Error: NoMediaReceived SESSION No media received
2020-11-11 09:59:13.492 INFO: [89] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Running to Error: NoMediaReceived SESSION No media received
2020-11-11 09:59:13.493 INFO: [89] 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='ev8jM-74' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='off' failure_reason='error' should_retry='true'/></iq>
2020-11-11 09:59:13.496 FINE: [89] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:recording
2020-11-11 09:59:13.500 INFO: [89] org.jitsi.jibri.JibriManager.stopService() Stopping the current service
2020-11-11 09:59:13.501 INFO: [89] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Stopping capturer
2020-11-11 09:59:13.502 INFO: [89] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() Stopping ffmpeg process
2020-11-11 09:59:13.627 INFO: [89] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() ffmpeg exited with value 255
2020-11-11 09:59:13.628 INFO: [89] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Quitting selenium
2020-11-11 09:59:13.629 INFO: [93] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange() Ffmpeg capturer transitioning from state Running to Finished

How can I fix it?

Hi, any news about this matter?