AWS Jicofo can't make jibri start recording - Problems with Jibri

Hello guys

I need to setup a Jitsi server with autoscalable Jibri and Jvb at AWS.

I’ve installed Jitsi in a ec2 instance with static ip and jibri in another ec2 instance with non static ip. I’ve followed the documentation and gave my jibri instace access to the ports it needs in the jitsi instance(i’ve used the instance public ip and AWS Security Groups) it all worked just fine.

I don’t have much knowledge about networks but i think i can’t scale jibri with dynamic IPs if i want to specifically allow only jibri instaces(and other jitsi components) to access prosody port, for security purposes.

So, i’ve changed my jibri’s config.js xmpp_server_hosts and xmpp_domain to my jibri instance private dns/ip. Jibri connected to the MucClient but it failed to record, it doesn’t even show the preparing to record pop-up.

My jicofo log (“my public dns” is the dns i submitted at the installation, the same i in browser to access
the application):

Jicofo 2020-06-29 15:50:57.000 INFO: [28] org.jitsi.jicofo.recording.jibri.JibriDetector.log() Received Jibri jibribrewery@internal.auth.my public dns/jibri-nickname status
Jicofo 2020-06-29 15:50:57.001 INFO: [28] org.jitsi.jicofo.recording.jibri.JibriDetector.log() Jibri: jibribrewery@internal.auth.my public dns/jibri-nickname available: true
Jicofo 2020-06-29 15:51:05.742 INFO: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Starting session with Jibri jibribrewery@internal.auth.my public dns/jibri-nickname
Jicofo 2020-06-29 15:51:05.744 INFO: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Starting Jibri jibribrewery@internal.auth.my public dns/jibri-nickname for stream ID: null in room: inappropriateauctionscommencepatiently@conference.my public dns
Jicofo 2020-06-29 15:51:20.744 SEVERE: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Unexpected response to start request: null
Jicofo 2020-06-29 15:51:20.744 SEVERE: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Failed to send start Jibri IQ: org.jitsi.jicofo.recording.jibri.JibriSession$StartException: Unexpected response
org.jitsi.jicofo.recording.jibri.JibriSession$StartException: Unexpected response
at org.jitsi.jicofo.recording.jibri.JibriSession.sendJibriStartIq(JibriSession.java:582)
at org.jitsi.jicofo.recording.jibri.JibriSession.startInternal(JibriSession.java:370)
at org.jitsi.jicofo.recording.jibri.JibriSession.start(JibriSession.java:335)
at org.jitsi.jicofo.recording.jibri.JibriRecorder.handleStartRequest(JibriRecorder.java:178)
at org.jitsi.jicofo.recording.jibri.CommonJibriStuff.handleIQRequest(CommonJibriStuff.java:271)
at org.jitsi.jicofo.recording.jibri.OperationSetJibri.handleIQRequest(OperationSetJibri.java:98)
at org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java:1188)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Jicofo 2020-06-29 15:51:20.745 INFO: [226] org.jitsi.jicofo.recording.jibri.JibriRecorder.log() Failed to start a Jibri session:Internal server error
org.jitsi.jicofo.recording.jibri.JibriSession$StartException: Internal server error
at org.jitsi.jicofo.recording.jibri.JibriSession.startInternal(JibriSession.java:376)
at org.jitsi.jicofo.recording.jibri.JibriSession.start(JibriSession.java:335)
at org.jitsi.jicofo.recording.jibri.JibriRecorder.handleStartRequest(JibriRecorder.java:178)
at org.jitsi.jicofo.recording.jibri.CommonJibriStuff.handleIQRequest(CommonJibriStuff.java:271)
at org.jitsi.jicofo.recording.jibri.OperationSetJibri.handleIQRequest(OperationSetJibri.java:98)
at org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java:1188)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Jicofo 2020-06-29 15:52:21.620 INFO: [28] org.jitsi.jicofo.recording.jibri.JibriDetector.log() Received Jibri jibribrewery@internal.auth.my public dns/jibri-nickname status
Jicofo 2020-06-29 15:52:21.620 INFO: [28] org.jitsi.jicofo.recording.jibri.JibriDetector.log() Jibri: jibribrewery@internal.auth.my public dns/jibri-nickname available: true
Jicofo 2020-06-29 15:52:29.123 INFO: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Starting session with Jibri jibribrewery@internal.auth.my public dns/jibri-nickname
Jicofo 2020-06-29 15:52:29.124 INFO: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Starting Jibri jibribrewery@internal.auth.my public dns/jibri-nickname for stream ID: null in room: inappropriateauctionscommencepatiently@conference.my public dns
Jicofo 2020-06-29 15:52:44.124 SEVERE: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Unexpected response to start request: null
Jicofo 2020-06-29 15:52:44.124 SEVERE: [226] org.jitsi.jicofo.recording.jibri.JibriSession.log() Failed to send start Jibri IQ: org.jitsi.jicofo.recording.jibri.JibriSession$StartException: Unexpected response
org.jitsi.jicofo.recording.jibri.JibriSession$StartException: Unexpected response
at org.jitsi.jicofo.recording.jibri.JibriSession.sendJibriStartIq(JibriSession.java:582)
at org.jitsi.jicofo.recording.jibri.JibriSession.startInternal(JibriSession.java:370)
at org.jitsi.jicofo.recording.jibri.JibriSession.start(JibriSession.java:335)
at org.jitsi.jicofo.recording.jibri.JibriRecorder.handleStartRequest(JibriRecorder.java:178)
at org.jitsi.jicofo.recording.jibri.CommonJibriStuff.handleIQRequest(CommonJibriStuff.java:271)
at org.jitsi.jicofo.recording.jibri.OperationSetJibri.handleIQRequest(OperationSetJibri.java:98)
at org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java:1188)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Jicofo 2020-06-29 15:52:44.124 INFO: [226] org.jitsi.jicofo.recording.jibri.JibriRecorder.log() Failed to start a Jibri session:Internal server error
org.jitsi.jicofo.recording.jibri.JibriSession$StartException: Internal server error
at org.jitsi.jicofo.recording.jibri.JibriSession.startInternal(JibriSession.java:376)
at org.jitsi.jicofo.recording.jibri.JibriSession.start(JibriSession.java:335)
at org.jitsi.jicofo.recording.jibri.JibriRecorder.handleStartRequest(JibriRecorder.java:178)
at org.jitsi.jicofo.recording.jibri.CommonJibriStuff.handleIQRequest(CommonJibriStuff.java:271)
at org.jitsi.jicofo.recording.jibri.OperationSetJibri.handleIQRequest(OperationSetJibri.java:98)
at org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java:1188)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Jicofo 2020-06-29 16:06:41.164 INFO: [28] org.jitsi.jicofo.recording.jibri.JibriDetector.log() Received Jibri jibribrewery@internal.auth.my public dns/jibri-nickname status
Jicofo 2020-06-29 16:06:41.164 INFO: [28] org.jitsi.jicofo.recording.jibri.JibriDetector.log() Jibri: jibribrewery@internal.auth.my public dns/jibri-nickname available: true

Is it possible to do what i want here? What am i doing wrong? Am i missing some config? Is there another way to autoscale it?

I can’t review this text right now, english is not my mother language so, if you don’t understand something tell me, it will be a pleasure to clarify