Help to install jibri

#1

I passed one day try to install the system, to undersand the framework of Jibri. Arround two weeks, i overcome the challeng, and I have installed a jitsi-web such as a stable system. Now i am try to understand the ibri and i want to do like the video tutorial https://www.youtube.com/watch?v=OHHoqKCjJ0E :frowning:. I try the old version, and runned the capture with scripts perfecty. After I opened automatic browser in Jibri-xorg. But is not work anymore to new jitsi-web version. I try to update system stable to nigtly and downgrade the jibri java version. But is a same problem: I have tryed to start record, than show " Only local connections are allowed." And always Driver show info driver.version ChromeDriver execption.

I apprechieted for help.

My last error:

/opt/jitsi/jibri/launch.sh
2019-02-06 18:20:24.540 INFORMAÇÕES: [1] org.jitsi.jibri.Main.main() Jibri run with args [–config, /etc/jitsi/jibri/config.json]
2019-02-06 18:20:24.544 INFORMAÇÕES: [1] org.jitsi.jibri.Main.main() Using config file /etc/jitsi/jibri/config.json
2019-02-06 18:20:24.544 INFORMAÇÕES: [1] org.jitsi.jibri.Main.main() Using port 3333 for internal HTTP API
2019-02-06 18:20:24.545 INFORMAÇÕES: [1] org.jitsi.jibri.Main.main() Using port 2222 for the HTTP API
2019-02-06 18:20:26.033 INFORMAÇÕES: [1] org.jitsi.jibri.Main.loadConfig() Parsed config:
JibriConfig(recordingDirectory=/svr/recordings, enabledStatsD=true, finalizeRecordingScriptPath=/etc/jitsi/jibri/finalize_recording.sh, xmppEnvironments=[XmppEnvironmentConfig(name=prod environment, xmppServerHosts=[telessaude.ddns.net], xmppDomain=telessaude.ddns.net, controlLogin=XmppCredentials(domain=auth.telessaude.ddns.net, username=jibri, password=jibripass), controlMuc=XmppMuc(domain=internal.auth.telessaude.ddns.net, roomName=JibriBrewery, nickname=Jibri), sipControlMuc=null, callLogin=XmppCredentials(domain=recorder.telessaude.ddns.net, username=recorder, password=recorderpass), stripFromRoomDomain=conference., usageTimeoutMins=0, trustAllXmppCerts=true)])
2019-02-06 18:20:26.314:INFO::main: Logging initialized @2385ms
2019-02-06 18:20:26.402:WARN:oejsh.ContextHandler:main: o.e.j.s.ServletContextHandler@7ac296f6{/,null,null} contextPath ends with /*
2019-02-06 18:20:26.402:WARN:oejsh.ContextHandler:main: Empty contextPath
2019-02-06 18:20:26.414:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
2019-02-06 18:20:27.599 ADVERTÊNCIA: [1] org.glassfish.jersey.internal.inject.Providers.checkProviderRuntime() A provider org.jitsi.jibri.api.http.internal.InternalHttpApi registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider org.jitsi.jibri.api.http.internal.InternalHttpApi will be ignored.
2019-02-06 18:20:27.988:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7ac296f6{/,null,AVAILABLE}
2019-02-06 18:20:28.046:INFO:oejs.ServerConnector:main: Started ServerConnector@2f4854d6{HTTP/1.1}{0.0.0.0:3333}
2019-02-06 18:20:28.047:INFO:oejs.Server:main: Started @4118ms
2019-02-06 18:20:28.555 INFORMAÇÕES: [1] org.jitsi.jibri.api.xmpp.XmppApi.start() Connecting to xmpp environment on telessaude.ddns.net with config XmppEnvironmentConfig(name=prod environment, xmppServerHosts=[telessaude.ddns.net], xmppDomain=telessaude.ddns.net, controlLogin=XmppCredentials(domain=auth.telessaude.ddns.net, username=jibri, password=jibripass), controlMuc=XmppMuc(domain=internal.auth.telessaude.ddns.net, roomName=JibriBrewery, nickname=Jibri), sipControlMuc=null, callLogin=XmppCredentials(domain=recorder.telessaude.ddns.net, username=recorder, password=recorderpass), stripFromRoomDomain=conference., usageTimeoutMins=0, trustAllXmppCerts=true)
2019-02-06 18:20:28.570 INFORMAÇÕES: [1] org.jitsi.jibri.api.xmpp.XmppApi.start() The trustAllXmppCerts config is enabled for this domain, all XMPP server provided certificates will be accepted
2019-02-06 18:20:29.779 INFORMAÇÕES: [1] class org.jitsi.xmpp.mucclient.MucClient.connected() [prod environment: auth.telessaude.ddns.net@telessaude.ddns.net] Xmpp connection status: connected
2019-02-06 18:20:29.995 INFORMAÇÕES: [1] class org.jitsi.xmpp.mucclient.MucClient.authenticated() [prod environment: auth.telessaude.ddns.net@telessaude.ddns.net] Xmpp connection status: authenticated (resume from previous? false)
2019-02-06 18:20:30.071:WARN:oejsh.ContextHandler:main: o.e.j.s.ServletContextHandler@2e647e59{/,null,null} contextPath ends with /*
2019-02-06 18:20:30.071:WARN:oejsh.ContextHandler:main: Empty contextPath
2019-02-06 18:20:30.072:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT
2019-02-06 18:20:30.184 ADVERTÊNCIA: [1] org.glassfish.jersey.internal.inject.Providers.checkProviderRuntime() A provider org.jitsi.jibri.api.http.HttpApi registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider org.jitsi.jibri.api.http.HttpApi will be ignored.
2019-02-06 18:20:30.278:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@2e647e59{/,null,AVAILABLE}
2019-02-06 18:20:30.278:INFO:oejs.ServerConnector:main: Started ServerConnector@56781d96{HTTP/1.1}{0.0.0.0:2222}
2019-02-06 18:20:30.279:INFO:oejs.Server:main: Started @6350ms
2019-02-06 18:20:45.338 INFORMAÇÕES: [25] org.jitsi.jibri.api.xmpp.XmppApi.handleJibriIq() Received JibriIq from environment prod environment
2019-02-06 18:20:45.344 INFORMAÇÕES: [25] org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq() Received start request
2019-02-06 18:20:45.356 INFORMAÇÕES: [25] org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq() Sending ‘pending’ response to start IQ
2019-02-06 18:20:45.358 INFORMAÇÕES: [39] org.jitsi.jibri.api.xmpp.XmppApi.run() Starting service
2019-02-06 18:20:45.375 INFORMAÇÕES: [39] org.jitsi.jibri.api.xmpp.XmppApi.handleStartService() Parsed call url info: CallUrlInfo(baseUrl=https://telessaude.ddns.net, callName=youngknightspiercejovially, urlParams=)
2019-02-06 18:20:45.381 INFORMAÇÕES: [39] org.jitsi.jibri.JibriManager.startFileRecording() Starting a file recording with params: FileRecordingRequestParams(callParams=CallParams(callUrlInfo=CallUrlInfo(baseUrl=https://telessaude.ddns.net, callName=youngknightspiercejovially, urlParams=)), sessionId=kfuakbztlycooauq, callLoginParams=XmppCredentials(domain=recorder.telessaude.ddns.net, username=recorder, password=recorderpass)) finalize script path: /etc/jitsi/jibri/finalize_recording.sh and recordings directory: /svr/recordings
Starting ChromeDriver 2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926) on port 15688
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Failed to redirect stderr to log file.
Unable to initialize logging. Exiting…
2019-02-06 18:21:05.980 GRAVE: [39] org.openqa.selenium.os.OsProcess.checkForError() org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
2019-02-06 18:21:05.987 GRAVE: [39] org.jitsi.jibri.api.xmpp.XmppApi.handleStartService() Error starting service: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘telessaude’, ip: ‘127.0.1.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.4.0-142-generic’, java.version: ‘1.8.0_191’
Driver info: driver.version: ChromeDriver with stack:
org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:142)
org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:168)
org.jitsi.jibri.selenium.JibriSelenium.(JibriSelenium.kt:142)
org.jitsi.jibri.selenium.JibriSelenium.(JibriSelenium.kt:102)
org.jitsi.jibri.service.impl.FileRecordingJibriService.(FileRecordingJibriService.kt:109)
org.jitsi.jibri.JibriManager.startFileRecording(JibriManager.kt:124)
org.jitsi.jibri.api.xmpp.XmppApi.handleStartService(XmppApi.kt:290)
org.jitsi.jibri.api.xmpp.XmppApi.access$handleStartService(XmppApi.kt:72)
org.jitsi.jibri.api.xmpp.XmppApi$handleStartJibriIq$1.run(XmppApi.kt:203)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

2019-02-06 18:21:05.992 DETALHADO: [39] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:
2019-02-06 18:21:05.996 INFORMAÇÕES: [39] org.jitsi.jibri.JibriManager.stopService() Stopping the current service
2019-02-06 18:21:05.999 INFORMAÇÕES: [39] org.jitsi.jibri.status.JibriStatusManager.log() Received component health update: XMPPAPI has status UNHEALTHY (detail: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘telessaude’, ip: ‘127.0.1.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.4.0-142-generic’, java.version: ‘1.8.0_191’
Driver info: driver.version: ChromeDriver)
2019-02-06 18:21:06.001 INFORMAÇÕES: [39] org.jitsi.jibri.status.JibriStatusManager.log() Health status has changed: HEALTHY -> UNHEALTHY
2019-02-06 18:21:06.002 INFORMAÇÕES: [39] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Jibri reports its status is now JibriStatus(busyStatus=IDLE, health=OverallHealth(healthStatus=UNHEALTHY, details={XMPPAPI=ComponentHealthDetails(healthStatus=UNHEALTHY, detail=org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘telessaude’, ip: ‘127.0.1.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.4.0-142-generic’, java.version: ‘1.8.0_191’
Driver info: driver.version: ChromeDriver)})), publishing presence to connection prod environment
2019-02-06 18:21:06.007 INFORMAÇÕES: [39] org.jitsi.jibri.api.xmpp.XmppApi.run() Sending start service response iq:
06/02/2019 18:22:42 Got connection from client 200.20.1.29
06/02/2019 18:22:42 other clients:
06/02/2019 18:22:42 Normal socket connection
06/02/2019 18:22:42 Disabled X server key autorepeat.
06/02/2019 18:22:42 to force back on run: ‘xset r on’ (3 times)
06/02/2019 18:22:42 incr accepted_client=1 for 200.20.1.29:56162 sock=12
06/02/2019 18:22:42 Client Protocol Version 3.8
06/02/2019 18:22:42 Protocol version sent 3.8, using 3.8
06/02/2019 18:22:42 rfbProcessClientSecurityType: executing handler for type 1
06/02/2019 18:22:42 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
06/02/2019 18:22:42 Pixel format for client 200.20.1.29:
06/02/2019 18:22:42 16 bpp, depth 15, little endian
06/02/2019 18:22:42 true colour: max r 31 g 31 b 31, shift r 10 g 5 b 0
06/02/2019 18:22:42 rfbProcessClientNormalMessage: ignoring unsupported encoding type ultraZip
06/02/2019 18:22:42 Using compression level 9 for client 200.20.1.29
06/02/2019 18:22:42 Using image quality level 0 for client 200.20.1.29
06/02/2019 18:22:42 Using JPEG subsampling 1, Q15 for client 200.20.1.29
06/02/2019 18:22:42 Enabling X-style cursor updates for client 200.20.1.29
06/02/2019 18:22:42 Enabling full-color cursor updates for client 200.20.1.29
06/02/2019 18:22:42 Enabling cursor position updates for client 200.20.1.29
06/02/2019 18:22:42 Enabling KeyboardLedState protocol extension for client 200.20.1.29
06/02/2019 18:22:42 Enabling NewFBSize protocol extension for client 200.20.1.29
06/02/2019 18:22:42 Enabling LastRect protocol extension for client 200.20.1.29
06/02/2019 18:22:42 Enabling SupportedMessages protocol extension for client 200.20.1.29
06/02/2019 18:22:42 Enabling SupportedEncodings protocol extension for client 200.20.1.29
06/02/2019 18:22:42 Enabling ServerIdentity protocol extension for client 200.20.1.29
06/02/2019 18:22:42 Enabling Xvp protocol extension for client 200.20.1.29
06/02/2019 18:22:42 Using tight encoding for client 200.20.1.29
06/02/2019 18:22:46 client useCopyRect: 200.20.1.29 -1
06/02/2019 18:22:46 client_set_net: 200.20.1.29 0.0023
06/02/2019 18:22:46 created xdamage object: 0x80002c
06/02/2019 18:22:46 copy_tiles: allocating first_line at size 41
06/02/2019 18:22:50 cursor_noshape_updates_clients: 0
06/02/2019 18:22:50 cursor_noshape_updates_clients: 0
[10383:10404:0206/182250.746563:ERROR:browser_process_sub_thread.cc(209)] Waited 6 ms for network service
06/02/2019 18:22:52 created selwin: 0x80002d
06/02/2019 18:22:52 called initialize_xfixes()
06/02/2019 18:22:54 client_count: 0
06/02/2019 18:22:54 Restored X server key autorepeat to: 1
06/02/2019 18:22:54 viewer exited.
06/02/2019 18:22:54 deleted 40 tile_row polling images.

0 Likes

#2

It looks like the chromedriver is failing to start due to an issue with logging. We set the chromedriver logfile to /tmp/chromedriver.log. Make sure that can be written to by Jibri.

0 Likes

#3

I din’t kown it is a error of permittion, but this ChomeDrive tray to execute google-chrome to open a section to room.

here my log:

[0206/181239.472684:INFO:logging.cc(257)] Starting ChromeDriver 2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926)
[0206/181239.472918:INFO:logging.cc(258)] Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1549483959,911][INFO]: [81832698d11c573cf30174ca1f96f793] COMMAND InitSession {
“capabilities”: {
“desiredCapabilities”: {
“browserName”: “chrome”,
“goog:chromeOptions”: {
“args”: [ “–use-fake-ui-for-media-stream”, “–start-maximized”, “–kiosk”, “–enabled”, “–enable-logging”, “–vmodule==3", “–disable-infobars”, “–alsa-output-device=plug:amix” ],
“extensions”: [ ]
},
“loggingPrefs”: {
“driver”: “ALL”
}
},
“firstMatch”: [ {
“browserName”: “chrome”,
“goog:chromeOptions”: {
“args”: [ “–use-fake-ui-for-media-stream”, “–start-maximized”, “–kiosk”, “–enabled”, “–enable-logging”, "–vmodule=
=3”, “–disable-infobars”, “–alsa-output-device=plug:amix” ],
“extensions”: [ ]
}
} ]
},
“desiredCapabilities”: {
“browserName”: “chrome”,
“goog:chromeOptions”: {
“args”: [ “–use-fake-ui-for-media-stream”, “–start-maximized”, “–kiosk”, “–enabled”, “–enable-logging”, "–vmodule==3", “–disable-infobars”, “–alsa-output-device=plug:amix” ],
“extensions”: [ ]
},
“loggingPrefs”: {
“driver”: “ALL”
}
}
}
[1549483959,912][INFO]: Populating Preferences file: {
“alternate_error_pages”: {
“enabled”: false
},
“autofill”: {
“enabled”: false
},
“browser”: {
“check_default_browser”: false
},
“distribution”: {
“import_bookmarks”: false,
“import_history”: false,
“import_search_engine”: false,
“make_chrome_default_for_user”: false,
“skip_first_run_ui”: true
},
“dns_prefetching”: {
“enabled”: false
},
“profile”: {
“content_settings”: {
“pattern_pairs”: {
"https://
,": {
“media-stream”: {
“audio”: “Default”,
“video”: “Default”
}
}
}
},
“default_content_setting_values”: {
“geolocation”: 1
},
“default_content_settings”: {
“geolocation”: 1,
“mouselock”: 1,
“notifications”: 1,
“popups”: 1,
“ppapi-broker”: 1
},
“password_manager_enabled”: false
},
“safebrowsing”: {
“enabled”: false
},
“search”: {
“suggest_enabled”: false
},
“translate”: {
“enabled”: false
}
}
[1549483959,912][INFO]: Populating Local State file: {
“background_mode”: {
“enabled”: false
},
“ssl”: {
“rev_checking”: {
“enabled”: false
}
}
}
[1549483959,913][INFO]: Launching chrome: /usr/bin/google-chrome --alsa-output-device=plug:amix --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-infobars --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-blink-features=ShadowDOMV0 --enable-logging --enabled --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --kiosk --load-extension=/tmp/.org.chromium.Chromium.E0R7qq/internal --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=0 --start-maximized --test-type=webdriver --use-fake-ui-for-media-stream --use-mock-keychain --user-data-dir=/tmp/.org.chromium.Chromium.CMCyqj --vmodule=
=3 data:,
[1549483960,088][INFO]: [81832698d11c573cf30174ca1f96f793] RESPONSE InitSession ERROR unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

0 Likes

#4

is chrome installed?

1 Like

#5
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome('/path/to/your_chrome_driver_dir/chromedriver',chrome_options=chrome_options)

How can i put this code Direct in chromedriver? i will need to create a script or has a possible to include in “launch.sh”…

0 Likes

#6

yes, Is google-chrome…

0 Likes

#7

is chrome in the default location? where’s the location of the chrome executable?

0 Likes

#9

Jibri doesn’t support modifying the chromedriver arguments

0 Likes

#10

Thanks i discovered one method…

0 Likes

#11

How do you fixed this error?

0 Likes

#12

@Roman_Jimenez

this is the same issue mentioned in one if my post

0 Likes