JVB connection is failing sometimes and the recording does not happen

We have our jitsi set up running in production. Sometimes, when the users tries to connect to JVB and do a new recording the connection fails and the recording does not happen. The following is the error thrown at the JVB logs.

This happens sometimes and when the user retries couple of times, it will pair and the stream starts. Can you please help us in this.

Logs showing error
{“log”:“Sep 16, 2021 5:58:09 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.790507037Z”}
{“log”:“INFO: Negotiated DTLS version DTLS 1.2\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.790522537Z”}
{“log”:“Sep 16, 2021 5:58:09 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.811469658Z”}
{“log”:“INFO: Error response for pair: X.X.X.X:10000/udp/host -\u003e Y.Y.Y.Y:25758/udp/prflx (stream-6ffea39a.RTP), failing. Code = 401(class=4; number=1)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.811509557Z”}
{“log”:“Sep 16, 2021 5:58:09 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.824573945Z”}
{“log”:“SEVERE: Alert received: level=2, description=51 (decrypt_error)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.824600445Z”}
{“log”:“Sep 16, 2021 5:58:09 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.824677944Z”}
{“log”:“SEVERE: Error during DTLS connection: org.bouncycastle.tls.TlsFatalAlert: decrypt_error(51)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.824728544Z”}
{“log”:“Sep 16, 2021 5:58:09 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.879011179Z”}
{“log”:“INFO: Error response for pair: X.X.X.X:10000/udp/host -\u003e Y.Y.Y.Y:13018/udp/prflx (stream-6ffea39a.RTP), failing. Code = 401(class=4; number=1)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.879038878Z”}
{“log”:“Sep 16, 2021 5:58:09 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.879287976Z”}
{“log”:“INFO: Error response for pair: X.X.X.X:10000/udp/host -\u003e Y.Y.Y.Y:13018/udp/prflx (stream-6ffea39a.RTP), failing. Code = 401(class=4; number=1)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.879301276Z”}
{“log”:“Sep 16, 2021 5:58:10 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:10.155347209Z”}
{“log”:“INFO: Error response for pair: X.X.X.X:10000/udp/host -\u003e Y.Y.Y.Y:25758/udp/prflx (stream-6ffea39a.RTP), failing. Code = 401(class=4; number=1)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:10.155381809Z”}
{“log”:“Sep 16, 2021 5:58:10 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:10.156248302Z”}
{“log”:“INFO: Error response for pair: X.X.X.X:10000/udp/host -\u003e Y.Y.Y.Y:25758/udp/prflx (stream-6ffea39a.RTP), failing. Code = 401(class=4; number=1)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:10.156270301Z”}

Seems a resource issue

Hi @emrah, thanks for your reply. Can you please elaborate on this?

Can you share your server resources?
CPU, RAM etc

@emrah It’s a 4 core machine with 16GB RAM. CPU utilisation was around 25% out of 400%. RAM was around 15% utilised.

This issue is happening intermittently during the session start itself when the client is trying to do iceCandidate pairing and establish a connection. The number of live recordings is only one during this time. Below is the error observed during the connection.

{“log”:“SEVERE: Alert received: level=2, description=51 (decrypt_error)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.824600445Z”}
{“log”:“Sep 16, 2021 5:58:09 PM org.jitsi.utils.logging2.LoggerImpl log\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.824677944Z”}
{“log”:“SEVERE: Error during DTLS connection: org.bouncycastle.tls.TlsFatalAlert: decrypt_error(51)\n”,“stream”:“stderr”,“time”:“2021-09-16T12:28:09.824728544Z”}

Is there an MP4 file created for this session in the folder?