jitsi / jibri

Jitsi BRoadcasting Infrastructure
Apache License 2.0
609 stars 313 forks source link

Jibri - Recording failed to start #381

Closed ebalaji closed 3 years ago

ebalaji commented 3 years ago

I am new to Jtisi video server installtion. I have installed and configured Jtisi and Jibri in two different server (Both are running on ubuntu-bionic-18.04)

When I click on Start recording, it says 'Preparing to record the meeting' after sometime it says 'Recording failed to start'

image

image

When I check log file (/var/log/jitsi/jibri/log.0.txt) I am getting below error. Can some one help me to identify and resolve this.

2021-03-24 08:02:31.749 FINE: [16] org.jitsi.jibri.webhooks.v1.WebhookClient.invokeSuspend() Updating 0 subscribers of status 2021-03-24 08:02:53.717 INFO: [249] org.jitsi.jibri.api.xmpp.XmppApi.handleJibriIq() Received JibriIq from environment [MucClient id=video.demoserver.in hostname=video.demoserver.in] 2021-03-24 08:02:53.717 INFO: [249] org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq() Received start request, starting service 2021-03-24 08:02:53.761 INFO: [249] org.jitsi.jibri.api.xmpp.XmppApi.handleStartService() Parsed call url info: CallUrlInfo(baseUrl=https://video.demoserver.in, callName=doc-002403, urlParams=[]) 2021-03-24 08:02:53.761 INFO: [249] org.jitsi.jibri.JibriManager.startFileRecording() Starting a file recording with params: FileRecordingRequestParams(callParams=CallParams(callUrlInfo=CallUrlInfo(baseUrl=https://video.demoserver.in, callName=doc-002403, urlParams=[])), sessionId=fhpdqoxofnnpadqm, callLoginParams=XmppCredentials(domain=recorder.demoserver.in, username=recorder, demoserverword=Recordersdemoserver)) 2021-03-24 08:02:54.417 INFO: [249] org.openqa.selenium.remote.ProtocolHandshake.createSession() Detected dialect: OSS 2021-03-24 08:02:54.426 FINE: [249] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.() Detected os as OS: LINUX 2021-03-24 08:02:54.426 INFO: [249] org.jitsi.jibri.service.impl.FileRecordingJibriService.() Writing recording to /recordings/fhpdqoxofnnpadqm, finalize script path /usr/bin/jitsi_uploader.sh 2021-03-24 08:02:54.428 FINE: [249] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: start:recording 2021-03-24 08:02:54.429 INFO: [249] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: IDLE -> BUSY 2021-03-24 08:02:54.430 FINE: [249] org.jitsi.jibri.webhooks.v1.WebhookClient.invokeSuspend() Updating 0 subscribers of status 2021-03-24 08:02:54.431 INFO: [249] org.jitsi.jibri.api.xmpp.XmppApi.updatePresence() Jibri reports its status is now JibriStatus(busyStatus=BUSY, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections 2021-03-24 08:02:54.449 INFO: [249] org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq() Sending 'pending' response to start IQ 2021-03-24 08:02:56.361 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Visiting url https://video.demoserver.in/doc-002403#config.iAmRecorder=true&config.externalConnectUrl=null&config.startWithAudioMuted=true&config.startWithVideoMuted=true&interfaceConfig.APP_NAME="Jibri"&config.analytics.disabled=true&config.p2p.enabled=false&config.prejoinPageEnabled=false&config.requireDisplayName=false 2021-03-24 08:02:57.462 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:02:57.969 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:02:58.475 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:02:58.981 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:02:59.486 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:02:59.992 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:00.498 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:01.005 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:01.513 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:02.020 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:02.526 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:03.032 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:03.538 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:04.046 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:04.555 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:05.061 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:05.569 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:06.077 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:06.587 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:07.093 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:07.599 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:08.106 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:08.614 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:09.121 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:09.626 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:10.132 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:10.638 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:11.144 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:11.650 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:12.155 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:12.661 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:13.168 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:13.674 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:14.181 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:14.689 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:15.195 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:15.700 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:16.207 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:16.713 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:17.219 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:17.725 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:18.231 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:18.738 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:19.243 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:19.750 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:20.259 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:20.766 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:21.271 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:21.777 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:22.282 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:22.789 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:23.295 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:23.801 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:24.307 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:24.813 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:25.319 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:25.824 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:26.330 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:26.836 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:27.341 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:27.858 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property 'isJoined' of undefined 2021-03-24 08:03:27.859 SEVERE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Timed out waiting for call page to load 2021-03-24 08:03:27.859 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.onSeleniumStateChange() Transitioning from state Starting up to Error: FailedToJoinCall SESSION Failed to join the call 2021-03-24 08:03:27.859 INFO: [261] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Starting up to Error: FailedToJoinCall SESSION Failed to join the call 2021-03-24 08:03:27.859 INFO: [261] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service had an error Error: FailedToJoinCall SESSION Failed to join the call, sending error iq 2021-03-24 08:03:27.860 FINE: [261] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:recording 2021-03-24 08:03:27.860 INFO: [261] org.jitsi.jibri.JibriManager.stopService() Stopping the current service 2021-03-24 08:03:27.860 INFO: [261] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Stopping capturer 2021-03-24 08:03:27.860 INFO: [261] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() Stopping ffmpeg process 2021-03-24 08:03:27.860 INFO: [261] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() ffmpeg exited with value null 2021-03-24 08:03:27.861 INFO: [261] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Quitting selenium 2021-03-24 08:03:27.866 INFO: [261] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Participants in this recording: [] 2021-03-24 08:03:27.916 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving call and quitting browser 2021-03-24 08:03:27.917 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Recurring call status checks cancelled 2021-03-24 08:03:27.924 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 13 log entries for type browser 2021-03-24 08:03:27.964 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 1086 log entries for type driver 2021-03-24 08:03:28.093 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 0 log entries for type client 2021-03-24 08:03:28.093 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving web call 2021-03-24 08:03:28.123 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Quitting chrome driver 2021-03-24 08:03:28.200 INFO: [261] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Chrome driver quit 2021-03-24 08:03:28.200 INFO: [261] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Finalizing the recording 2021-03-24 08:03:28.214 INFO: [265] org.jitsi.jibri.service.impl.FileRecordingJibriService.call() No upload type found, skipping upload... 2021-03-24 08:03:28.214 INFO: [261] org.jitsi.jibri.service.impl.FileRecordingJibriService.finalize() Recording finalize script finished with exit value 4 2021-03-24 08:03:28.214 INFO: [261] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: BUSY -> IDLE 2021-03-24 08:03:28.215 FINE: [261] org.jitsi.jibri.webhooks.v1.WebhookClient.invokeSuspend() Updating 0 subscribers of status 2021-03-24 08:03:28.215 INFO: [261] org.jitsi.jibri.api.xmpp.XmppApi.updatePresence() Jibri reports its status is now JibriStatus(busyStatus=IDLE, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections 2021-03-24 08:03:31.749 FINE: [16] org.jitsi.jibri.webhooks.v1.WebhookClient.invokeSuspend() Updating 0 subscribers of status

damencho commented 3 years ago

Please use the community forum when you have questions or problems before opening new issues, thank you.

If you try opening the URL from the logs:

2021-03-24 08:02:56.361 FINE: [261] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Visiting url https://video.demoserver.in/doc-002403#config.iAmRecorder=true&config.externalConnectUrl=null&config.startWithAudioMuted=true&config.startWithVideoMuted=true&interfaceConfig.APP_NAME="Jibri"&config.analytics.disabled=true&config.p2p.enabled=false&config.prejoinPageEnabled=false&config.requireDisplayName=false

It returns 404, there is a problem with your deployment and jibri cannot connect there.

ebalaji commented 3 years ago

I have not given the actual URL of my video server due to some reasons. Video URL is working fine. I have managed to resolve the issue by changing the Jibri config file. Any how thanks for your response.

John-Appleseed commented 2 years ago

What change did you make to fix Jibri? I have the same issue. Not joined yet: Cannot read property 'isJoined' of undefined

CHROMIUM_FLAGS="--use-fake-ui-for-media-stream,--start-maximized,--kiosk,--enabled,--disable-infobars,--autoplay-policy=no-user-gesture-required,--ignore-certificate-errors,--disable-dev-shm-usage"

felipeavilis commented 1 week ago

I have not given the actual URL of my video server due to some reasons. Video URL is working fine. I have managed to resolve the issue by changing the Jibri config file. Any how thanks for your response.

I have the same problem here. We very appreciate if you could tell us whats you've done to solve it.