Jibri Recording Start & Stop "No Media Received"

The Jibri start the Recording…There Recording red logo also comes …After 10-15 Sec it fails.Show i went through the logs of jibri , ffmeg & browser.
The following can be issue …Can you suggest how can i fix
1)No Media Received SESSION No media received
2)Some Issue with Chrome ffmpeg not able to access each other

The following are the versions:
chromedriver --version
ChromeDriver 85.0.4183.87

google-chrome-stable
85.0.4183.83-1

#Jibri Logs
tail /var/log/jitsi/jibri/log.0.txt
2020-08-31 03:15:03.752 INFO: [26] org.jitsi.jibri.selenium.JibriSelenium.invoke() Recurring call status checks generated event org.jitsi.jibri.selenium.SeleniumEvent$NoMediaReceived@5271221c
2020-08-31 03:15:03.752 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.onSeleniumStateChange() Transitioning from state Running to Error: NoMediaReceived SESSION No media received
2020-08-31 03:15:03.752 INFO: [2123] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Running to Error: NoMediaReceived SESSION No media received
2020-08-31 03:15:03.753 INFO: [2123] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service had an error Error: NoMediaReceived SESSION No media received, sending error iq
2020-08-31 03:15:03.753 FINE: [2123] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:recording
2020-08-31 03:15:03.754 INFO: [2123] org.jitsi.jibri.JibriManager.stopService() Stopping the current service
2020-08-31 03:15:03.754 INFO: [2123] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Stopping capturer
2020-08-31 03:15:03.754 INFO: [2123] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() Stopping ffmpeg process
2020-08-31 03:15:04.156 INFO: [2126] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange() Ffmpeg capturer transitioning from state Running to Finished
2020-08-31 03:15:04.157 INFO: [2123] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() ffmpeg exited with value 255
2020-08-31 03:15:04.157 INFO: [2123] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Quitting selenium
2020-08-31 03:15:04.169 INFO: [2123] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Participants in this recording:
2020-08-31 03:15:04.173 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving call and quitting browser
2020-08-31 03:15:04.173 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Recurring call status checks cancelled
2020-08-31 03:15:04.179 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 19 log entries for type browser
2020-08-31 03:15:04.214 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 677 log entries for type driver
2020-08-31 03:15:04.319 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 0 log entries for type client
2020-08-31 03:15:04.319 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving web call
2020-08-31 03:15:04.433 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Quitting chrome driver
2020-08-31 03:15:04.503 INFO: [2123] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Chrome driver quit
2020-08-31 03:15:04.504 INFO: [2123] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Finalizing the recording
2020-08-31 03:15:04.505 SEVERE: [2123] org.jitsi.jibri.service.impl.FileRecordingJibriService.finalize() Failed to run finalize script:
#ffmpeg logs
tail /var/log/jitsi/jibri/ffmpeg.0.txt
2020-08-28 06:29:07.986 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] mb I I16…4: 38.4% 0.0% 61.6%
2020-08-28 06:29:07.986 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] mb P I16…4: 1.6% 0.0% 0.2% P16…4: 24.4% 2.4% 0.9% 0.0% 0.0% skip:70.5%
2020-08-28 06:29:07.990 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] coded y,uvDC,uvAC intra: 41.8% 48.2% 23.9% inter: 3.7% 17.7% 0.6%
2020-08-28 06:29:07.990 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] i16 v,h,dc,p: 44% 32% 16% 8%
2020-08-28 06:29:07.991 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 33% 14% 3% 4% 4% 4% 2% 5%
2020-08-28 06:29:07.991 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] i8c dc,h,v,p: 68% 16% 13% 3%
2020-08-28 06:29:07.992 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] Weighted P-Frames: Y:0.5% UV:0.2%
2020-08-28 06:29:07.992 INFO: [57] ffmpeg.call() [libx264 @ 0x5555c5ebadc0] kb/s:1119.11
2020-08-28 06:29:07.992 INFO: [57] ffmpeg.call() [aac @ 0x5555c5ebc6c0] Qavg: 4829.945
2020-08-28 06:29:07.992 INFO: [57] ffmpeg.call() Exiting normally, received signal

#Browser Logs
tail var/log/jitsi/jibri/browser.0.txt
2020-08-31 03:15:04.319 INFO: [2123] browser.leaveCallAndQuitBrowser() [2020-08-31T03:15:04+0000] [FINE] DevTools WebSocket Response: Runtime.evaluate (id=111) B1CA900B938D06553F5FDDCFF19E48FB {
“result”: {
“description”: “1”,
“type”: “number”,
“value”: 1
}
}

2020-08-31 03:15:04.319 INFO: [2123] browser.leaveCallAndQuitBrowser() ========= TYPE=client ===========
^C
root@CP-E5CX-GLCX-P-V20072926:~# tail -50 /var/log/jitsi/jibri/browser.0.txt
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:48.882Z” “[modules/recording/RecordingManager.js]” "\u003Ct.a._handleFocusPresence>: " “Ignoring recording pre…”,
“source”: “console-api”,
“timestamp”: 1.598843703691e+12
}, {
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:48.886Z” “[modules/recording/RecordingManager.js]” "\u003Ct.a._handleFocusPresence>: " “Ignoring recording pre…”,
“source”: “console-api”,
“timestamp”: 1.598843703692e+12
}, {
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:48.889Z” “[modules/recording/RecordingManager.js]” "\u003Ct.a._handleFocusPresence>: " “Ignoring recording pre…”,
“source”: “console-api”,
“timestamp”: 1.598843703692e+12
}, {
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:48.919Z” “[modules/recording/RecordingManager.js]” "\u003Ct.a._handleJibriPresence>: " “Ignoring potential jib…”,
“source”: “console-api”,
“timestamp”: 1.598843703693e+12
}, {
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:49.564Z” “[modules/statistics/RTPStatsCollector.js]” "\u003Cp.processAudioLevelReport>: " “3815043040 not enou…”,
“source”: “console-api”,
“timestamp”: 1.598843703701e+12
}, {
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:49.564Z” “[modules/statistics/RTPStatsCollector.js]” "\u003Cp.processAudioLevelReport>: " “3071686761 not enou…”,
“source”: “console-api”,
“timestamp”: 1.598843703701e+12
} ]

2020-08-31 03:15:04.318 INFO: [2123] browser.leaveCallAndQuitBrowser() [2020-08-31T03:15:04+0000] [INFO] [a9640f7d49eb8b868875e885de5158d9] COMMAND GetLog {
“type”: “driver”
}

2020-08-31 03:15:04.318 INFO: [2123] browser.leaveCallAndQuitBrowser() [2020-08-31T03:15:04+0000] [FINE] DevTools WebSocket Command: Runtime.evaluate (id=111) B1CA900B938D06553F5FDDCFF19E48FB {
“awaitPromise”: false,
“expression”: “1”,
“returnByValue”: true
}

2020-08-31 03:15:04.319 INFO: [2123] browser.leaveCallAndQuitBrowser() [2020-08-31T03:15:04+0000] [FINE] DevTools WebSocket Response: Runtime.evaluate (id=111) B1CA900B938D06553F5FDDCFF19E48FB {
“result”: {
“description”: “1”,
“type”: “number”,
“value”: 1
}
}

2020-08-31 03:15:04.319 INFO: [2123] browser.leaveCallAndQuitBrowser() ========= TYPE=client ===========
root@CP-E5CX-GLCX-P-V20072926:~# tail -n 50 /var/log/jitsi/jibri/browser.0.txt
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:48.882Z” “[modules/recording/RecordingManager.js]” "\u003Ct.a._handleFocusPresence>: " “Ignoring recording pre…”,
“source”: “console-api”,
“timestamp”: 1.598843703691e+12
}, {
“level”: “WARNING”,
“message”: "https://meet.xyz.com/libs/lib-jitsi-meet.min.js?v=4074 9:26307 “2020-08-31T03:14:48.886Z” “[modules/recording/RecordingManager.js]” "\u003Ct.a._handleFocusPresence>: " “Ignoring recording pre…”,
“source”: “console-api”,

@damencho @Anthony_Garcia Can you help? Provide some tip to resolve the issue…Let me know if u need any more information

Have you setup ALSA and Loopback Device? Also, if you are running on AWS you would need to change your kernel version to the generic one otherwise you will not be able to access linux-image-extra-virtual and load snd-aloop. Basically its a loopback service/driver for audio.

One more thing you can check is the Java version in your Jibri server. Make sure its jdk 8 and not 11.

How we can setup Have you setup ALSA and Loopback Device?

You can follow here. https://github.com/jitsi/jibri#alsa-and-loopback-device

@Anthony_Garcia Can you guide me for this error IceWM: X error X_ChangeProperty(0x600005): BadWindow (invalid Window parameter), #2111, +27, +0.

Are you able to check if Selenium is working fine in your server?

The Linux Kernel 4.15.0-115-generic solved the problem.Thanks @Anthony_Garcia for help.For Jitsi & Jibri Installation refer to
[https://nerdonthestreet.com/wiki?find=Set+Up+Jibri+for+Jitsi+Recording%3Aslash%3AStreaming](Jibri Installation Good Guide Nerdonthestreet)

[https://github.com/jitsi/jibri/blob/master/README.md](Jibri Installation Official Guide)