nice-shoe-83241
08/20/2025, 3:07 AM/GstPipeline:pipeline0/GstLiveKitWebRTCSrc:src/GstBin:bin0/GstWebRTCBin:webrtcbin0/TransportReceiveBin:transportreceivebin0/GstDtlsSrtpDec:dtlssrtpdec0/GstDtlsDec:dtlsdec0:
Fatal SSL error started from yesterday, any ideas?
Nest] 1 - 08/20/2025, 2:59:15 AM LOG [MONITOR_LMVMTPE007337_02-52-05] Room LMVMTPE007337 track published
[Nest] 630 - 08/20/2025, 2:59:16 AM ERROR [RC_LMVMTPE007337_2025-08-20-02-59-15] Error: Could not read from resource.
[Nest] 630 - 08/20/2025, 2:59:16 AM ERROR [RC_LMVMTPE007337_2025-08-20-02-59-15] Debug information: ../ext/dtls/gstdtlsdec.c(504): process_buffer (): /GstPipeline:pipeline0/GstLiveKitWebRTCSrc:src/GstBin:bin0/GstWebRTCBin:webrtcbin0/TransportReceiveBin:transportreceivebin0/GstDtlsSrtpDec:dtlssrtpdec0/GstDtlsDec:dtlsdec0:
Fatal SSL errornice-shoe-83241
08/20/2025, 11:56 AMnice-shoe-83241
08/20/2025, 11:57 AMrefined-appointment-81829
08/21/2025, 12:50 AMFatal SSL error you are encountering with GStreamer is likely related to the OpenSSL configuration. The error message indicates that "unsafe legacy renegotiation" is disabled, which is a security feature in OpenSSL 3.x. This means that your GStreamer pipeline is attempting to use a legacy SSL renegotiation method that is no longer permitted by default in OpenSSL 3.x.
Here are a few steps you can take to troubleshoot and potentially resolve the issue:
1. Check OpenSSL Configuration: Ensure that your OpenSSL configuration allows for legacy renegotiation if you need to support older clients. You can do this by modifying the OpenSSL configuration file (usually openssl.cnf) to enable legacy renegotiation. However, be cautious as this can introduce security vulnerabilities.
2. Upgrade GStreamer: If possible, consider upgrading to a newer version of GStreamer that may have better compatibility with OpenSSL 3.x. The logs indicate that you are using livekit/gstreamer 1.24.5-prod, which may have compatibility issues with the current OpenSSL version.
3. Use a Different Base Image: If the legacy support is necessary, you might want to switch to a base image that uses an older version of OpenSSL (e.g., OpenSSL 1.1.x) where legacy renegotiation is still supported.
4. Review GStreamer Pipeline: Ensure that your GStreamer pipeline is correctly configured to handle DTLS connections. The warnings about missing transceivers and the creation of random stream IDs may indicate that the pipeline is not set up correctly.
5. Consult Documentation: Review the GStreamer and LiveKit documentation for any specific configurations or flags that may need to be set for DTLS connections.
6. Log Analysis: The additional logs you provided indicate issues with transceivers and stream IDs. Make sure that your GStreamer setup is correctly managing these elements, as they are crucial for establishing a successful WebRTC connection.
7.
If you continue to experience issues, consider reaching out to the LiveKit community or support channels for more tailored assistance.
Notes:
• The error is specifically tied to the use of OpenSSL 3.x and its handling of legacy SSL renegotiation.
• Ensure that your GStreamer setup is compatible with the version of OpenSSL you are using.
• The warnings about transceivers may also need to be addressed to ensure proper WebRTC functionality.nice-shoe-83241
08/21/2025, 4:03 AMnice-shoe-83241
08/21/2025, 5:08 PMFROM gameonwhales/gstreamer:1.26.2 AS base
# 安裝必要的套件和依賴
RUN apt update && apt install -y \
curl \
wget \
# GStreamer 相關套件
libicu-dev \
libnice10 \
libnice-dev \
libgirepository1.0-dev \
gir1.2-gstreamer-1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-nice \
gstreamer1.0-tools \
# SSL/CA 證書(GStreamer 1.26 需要較少的 SSL 配置)
ca-certificates \
openssl \
# 網路診斷工具
net-tools \
iputils-ping \
&& rm -rf /var/lib/apt/lists/*
# 更新證書
RUN update-ca-certificates
# 下載 LiveKit WebRTC plugin - 使用更新的版本和改進的下載方法
RUN echo "Downloading LiveKit WebRTC plugin for GStreamer 1.26..." && \
PLUGIN_PATH="/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrswebrtc.so" && \
# 嘗試最新版本 (0.14.1)
(curl -L --http1.1 --connect-timeout 30 --max-time 600 --retry 3 --retry-delay 5 \
-H "User-Agent: Mozilla/5.0" \
-o "$PLUGIN_PATH" \
"https://github.com/BeeInventor/gst-plugins-rs/releases/download/0.14.1/libgstrswebrtc.so" && \
echo "Downloaded plugin version 0.14.1") || \
# 備用版本
(curl -L --http1.1 --connect-timeout 30 --max-time 600 --retry 3 --retry-delay 5 \
-H "User-Agent: Mozilla/5.0" \
-o "$PLUGIN_PATH" \
"https://github.com/BeeInventor/gst-plugins-rs/releases/download/0.14.0-alpha.1-a8146f33/libgstrswebrtc.so" && \
echo "Downloaded backup plugin version") || \
(echo "Plugin download failed" && exit 1) && \
# 設置權限並驗證
chmod +x "$PLUGIN_PATH" && \
ls -la "$PLUGIN_PATH" && \
echo "Plugin installation completed"
# 安裝 Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt install -y nodejs && \
npm install -g corepack@latest && \
corepack enable && \
corepack prepare pnpm --activate
# 驗證 GStreamer 1.26 安裝
RUN echo "=== GStreamer 1.26 Verification ===" && \
gst-launch-1.0 --version && \
echo "=== Available WebRTC Plugins ===" && \
gst-inspect-1.0 | grep -E "(webrtc|livekit|nice)" && \
echo "=== Plugin Path Contents ===" && \
ls -la /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ | grep -E "(webrtc|livekit|nice)"
WORKDIR /app
FROM base AS pnpm-fetch
COPY package.json pnpm-lock.yaml ./
RUN pnpm fetch
FROM pnpm-fetch AS prod-deps
# 修正重複的 --ignore-scripts
RUN pnpm install --offline --ignore-scripts --prod
FROM pnpm-fetch AS build
# 修正重複的 --ignore-scripts
RUN pnpm install --offline --ignore-scripts
COPY . ./
RUN pnpm exec nest build
FROM base AS app
# 複製依賴和建構檔案
COPY --from=prod-deps /app/node_modules ./node_modules/
COPY --from=build /app/dist ./dist/
COPY .env* ./
# 設置 GStreamer 1.26 環境變數
ENV GST_PLUGIN_PATH="/usr/lib/x86_64-linux-gnu/gstreamer-1.0"
ENV GST_PLUGIN_SCANNER="/usr/lib/x86_64-linux-gnu/gstreamer-1.0/gst-plugin-scanner"
ENV GST_REGISTRY="/tmp/gst-registry.bin"
# GStreamer 1.26 的簡化環境變數設置(不需要複雜的 DTLS 配置)
ENV GST_DEBUG="3"
ENV GST_DEBUG_FILE="/tmp/gstreamer-debug.log"
# 基本的 SSL 設置(GStreamer 1.26 內建更好的 DTLS 支援)
ENV SSL_CERT_DIR="/etc/ssl/certs"
ENV SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
# 建立日誌目錄
RUN mkdir -p /tmp/logs && chmod 777 /tmp/logs
# 最終驗證 GStreamer 設置
RUN echo "=== Final GStreamer 1.26 Verification ===" && \
gst-launch-1.0 --version && \
echo "" && \
echo "=== LiveKit Plugin Check ===" && \
(gst-inspect-1.0 livekitwebrtcsrc > /dev/null 2>&1 && \
echo "✓ livekitwebrtcsrc plugin is ready") || \
(echo "⚠ livekitwebrtcsrc plugin verification failed" && \
echo "Available plugins:" && \
gst-inspect-1.0 | grep -E "(webrtc|livekit)" | head -10) && \
echo "" && \
echo "=== WebRTC Capabilities ===" && \
gst-inspect-1.0 | grep -E "(webrtc|dtls|nice|srtp)" | head -5
CMD ["node", "dist/main"]nice-shoe-83241
08/22/2025, 4:13 PM