Jibri Error ffmpeg

Hi!
I installed Jibri on the same instance where it is also installed Jitsi.
If I start streaming, it interrupts after a few seconds.
I run tail -f log.0.txt to try to understand what is the issue.

I see the following latest lines:

2023-05-02 16:26:59.132 INFO: [87] JibriStatusManager$special$$inlined$observable$1.afterChange#72: Busy status has changed: BUSY -> IDLE
2023-05-02 16:26:59.133 FINE: [87] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:26:59.133 INFO: [87] XmppApi.updatePresence#209: Jibri reports its status is now JibriStatus(busyStatus=IDLE, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections
2023-05-02 16:27:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:28:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:29:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:30:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:31:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:32:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:33:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:34:15.972 FINE: [21] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:34:17.832 INFO: [72] XmppApi.handleJibriIq#236: Received JibriIq <iq xmlns='jabber:client' to='jibri@auth.jitsi.nicfab.eu/9oU5mx5L' from='jibribrewery@internal.auth.jitsi.nicfab.eu/focus' id='amlicmlAYXV0aC5qaXRzaS5uaWNmYWIuZXUvOW9VNW14NUwAUVdOTlQtNDQAypXtMqgSyA01V3ciC8rzXA==' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' action='start' recording_mode='stream' room='savex@conference.jitsi.nicfab.eu' streamid='rtmp://tube.nicfab.eu:1935/live/5591bc28-a1e6-4b81-af55-64b42a18ded2' session_id='ivkbdzelzxkvdqfv'/></iq> from environment [MucClient id=jitsi.nicfab.eu hostname=jitsi.nicfab.eu]
2023-05-02 16:34:17.832 INFO: [72] XmppApi.handleStartJibriIq#268: Received start request, starting service
2023-05-02 16:34:17.833 INFO: [72] XmppApi.handleStartService#379: Parsed call url info: CallUrlInfo(baseUrl=https://jitsi.nicfab.eu, callName=savex, urlParams=[])
2023-05-02 16:34:17.833 INFO: [72] XmppApi.handleStartService#405: Using RTMP URL rtmp://tube.nicfab.eu:1935/live/5591bc28-a1e6-4b81-af55-64b42a18ded2 and viewing URL null
2023-05-02 16:34:17.833 INFO: [72] JibriManager.startStreaming#162: Starting a stream with params: ServiceParams(usageTimeoutMinutes=60, appData=null) StreamingParams(callParams=CallParams(callUrlInfo=CallUrlInfo(baseUrl=https://jitsi.nicfab.eu, callName=savex, urlParams=[]), email='', passcode=null, callStatsUsernameOverride=, displayName=), sessionId=ivkbdzelzxkvdqfv, callLoginParams=XmppCredentials(domain=recorder.jitsi.nicfab.eu, port=null, username=recorder, password=*****), rtmpUrl=rtmp://tube.nicfab.eu:1935/live/5591bc28-a1e6-4b81-af55-64b42a18ded2, viewingUrl=null)
2023-05-02 16:34:17.833 FINE: [72] [session_id=ivkbdzelzxkvdqfv] FfmpegCapturer.<init>#92: Detected os as OS: LINUX
2023-05-02 16:34:18.406 INFO: [72] org.openqa.selenium.remote.ProtocolHandshake.createSession: Detected dialect: OSS
2023-05-02 16:34:18.413 FINE: [72] JibriStatsDClient.incrementCounter#38: Incrementing statsd counter: start:live_stream
2023-05-02 16:34:18.413 INFO: [72] JibriStatusManager$special$$inlined$observable$1.afterChange#72: Busy status has changed: IDLE -> BUSY
2023-05-02 16:34:18.414 FINE: [72] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:34:18.415 INFO: [72] XmppApi.updatePresence#209: Jibri reports its status is now JibriStatus(busyStatus=BUSY, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections
2023-05-02 16:34:18.415 INFO: [72] JibriManager.startService#227: This service will have a usage timeout of 60 minute(s)
2023-05-02 16:34:18.416 INFO: [72] XmppApi.handleStartJibriIq#281: Sending 'pending' response to start IQ
2023-05-02 16:34:18.424 INFO: [103] AbstractPageObject.visit#32: Visiting url https://jitsi.nicfab.eu
2023-05-02 16:34:20.177 INFO: [103] AbstractPageObject.visit#38: Waited 1.752417121s for driver to load page
2023-05-02 16:34:20.245 INFO: [103] AbstractPageObject.visit#32: Visiting url https://jitsi.nicfab.eu/savex#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.prejoinConfig.enabled=false&config.requireDisplayName=false
2023-05-02 16:34:21.075 INFO: [103] AbstractPageObject.visit#38: Waited 829.633072ms for driver to load page
2023-05-02 16:34:21.124 FINE: [103] CallPage.visit$lambda-2$lambda-1#58: Not joined yet: Cannot read properties of undefined (reading 'isJoined')
2023-05-02 16:34:21.631 FINE: [103] CallPage.visit$lambda-2$lambda-1#58: Not joined yet: Cannot read properties of undefined (reading 'isJoined')
2023-05-02 16:34:22.674 INFO: [103] CallPage.visit#71: Waited 1.598435412s to join the conference
2023-05-02 16:34:22.674 INFO: [103] [session_id=ivkbdzelzxkvdqfv] EmptyCallStatusCheck.<init>#26: Starting empty call check with a timeout of PT30S
2023-05-02 16:34:22.696 INFO: [103] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.onSeleniumStateChange#216: Transitioning from state Starting up to Running
2023-05-02 16:34:22.697 INFO: [103] [session_id=ivkbdzelzxkvdqfv] StreamingJibriService$start$2.invoke#118: Selenium joined the call, starting capturer
2023-05-02 16:34:22.722 INFO: [103] [session_id=ivkbdzelzxkvdqfv] JibriSubprocess.launch#42: Starting ffmpeg with command ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1920x1080 -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 -maxrate 2976k -bufsize 5952k -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f flv rtmp://tube.nicfab.eu:1935/live/5591bc28-a1e6-4b81-af55-64b42a18ded2 ([ffmpeg, -y, -v, info, -f, x11grab, -draw_mouse, 0, -r, 30, -s, 1920x1080, -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, -maxrate, 2976k, -bufsize, 5952k, -pix_fmt, yuv420p, -r, 30, -crf, 25, -g, 60, -tune, zerolatency, -f, flv, rtmp://tube.nicfab.eu:1935/live/5591bc28-a1e6-4b81-af55-64b42a18ded2])
2023-05-02 16:34:23.016 INFO: [106] [session_id=ivkbdzelzxkvdqfv] FfmpegCapturer.onFfmpegStateMachineStateChange#134: Ffmpeg capturer transitioning from state Starting up to Error: BrokenPipe SESSION av_interleaved_write_frame(): Broken pipe
2023-05-02 16:34:23.016 INFO: [106] [session_id=ivkbdzelzxkvdqfv] StatefulJibriService.onServiceStateChange#39: Streaming service transitioning from state Starting up to Error: BrokenPipe SESSION av_interleaved_write_frame(): Broken pipe
2023-05-02 16:34:23.017 INFO: [106] XmppApi$createServiceStatusHandler$1.invoke#317: Current service had an error Error: BrokenPipe SESSION av_interleaved_write_frame(): Broken pipe, sending error iq <iq xmlns='jabber:client' to='jibribrewery@internal.auth.jitsi.nicfab.eu/focus' id='NEV87-45' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='off' failure_reason='error' should_retry='true'/></iq>
2023-05-02 16:34:23.017 FINE: [106] JibriStatsDClient.incrementCounter#38: Incrementing statsd counter: stop:live_stream
2023-05-02 16:34:23.018 INFO: [106] JibriManager.stopService#260: Stopping the current service
2023-05-02 16:34:23.018 INFO: [106] [session_id=ivkbdzelzxkvdqfv] StreamingJibriService.stop#137: Stopping capturer
2023-05-02 16:34:23.018 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSubprocess.stop#75: Stopping ffmpeg process
2023-05-02 16:34:24.017 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSubprocess.stop#89: ffmpeg exited with value 1
2023-05-02 16:34:24.017 INFO: [106] [session_id=ivkbdzelzxkvdqfv] StreamingJibriService.stop#139: Stopped capturer
2023-05-02 16:34:24.017 INFO: [106] [session_id=ivkbdzelzxkvdqfv] StreamingJibriService.stop#140: Quitting selenium
2023-05-02 16:34:24.017 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#338: Leaving call and quitting browser
2023-05-02 16:34:24.017 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#341: Recurring call status checks cancelled
2023-05-02 16:34:24.029 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#347: Got 16 log entries for type browser
2023-05-02 16:34:24.060 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#347: Got 425 log entries for type driver
2023-05-02 16:34:24.111 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#347: Got 0 log entries for type client
2023-05-02 16:34:24.112 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#356: Leaving web call
2023-05-02 16:34:24.290 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#363: Quitting chrome driver
2023-05-02 16:34:24.372 INFO: [106] [session_id=ivkbdzelzxkvdqfv] JibriSelenium.leaveCallAndQuitBrowser#365: Chrome driver quit
2023-05-02 16:34:24.373 INFO: [106] [session_id=ivkbdzelzxkvdqfv] StreamingJibriService.stop#142: Quit selenium
2023-05-02 16:34:24.373 INFO: [106] JibriStatusManager$special$$inlined$observable$1.afterChange#72: Busy status has changed: BUSY -> IDLE
2023-05-02 16:34:24.373 FINE: [106] WebhookClient$updateStatus$1.invokeSuspend#109: Updating 0 subscribers of status
2023-05-02 16:34:24.373 INFO: [106] XmppApi.updatePresence#209: Jibri reports its status is now JibriStatus(busyStatus=IDLE, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections

Is there anyone who can help me?

When ffmpeg logs this during RTMP streaming it usually means it failed to connect to the RTMP server named in the URL, in this case tube.nicfab.eu:1935. Check that the URL is correct, that the domain name resolves, and that there is connectivity to that host+port from the server running Jibri.

Thank you,
Yes, the URL is correct.

What are the specs (CPU, RAM) of the server?

AWS
vCPUs: 4
Architecture: x86_64
Memory: 16GB

It seems to be working now.
I don’t know…
Thank you for your replies.