steep-balloon-41261
05/22/2023, 3:58 PMambitious-lunch-95812
05/22/2023, 3:59 PMboundless-energy-78552
05/22/2023, 4:04 PMambitious-lunch-95812
05/22/2023, 4:32 PMboundless-energy-78552
05/23/2023, 7:51 AMboundless-energy-78552
05/23/2023, 12:25 PMFROM ubuntu:jammy as builder
RUN apt-get update
RUN apt-get install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev curl unzip cmake build-essential pkg-config
RUN curl <https://sh.rustup.rs> -sSf | bash -s -- -y
RUN curl -Lo protoc.zip <https://github.com/protocolbuffers/protobuf/releases/download/v21.0/protoc-21.0-linux-x86_64.zip> && \
unzip protoc.zip -d /usr/local && chmod a+x /usr/local/bin/protoc && rm protoc.zip
WORKDIR /usr/src/basic_room
COPY . .
RUN bash -c "source ~/.cargo/env; cargo install --path ./examples/basic_room --root /usr/src/basic_room"
FROM ubuntu:jammy
COPY --from=builder /usr/src/basic_room/bin/basic_room /usr/local/bin/basic_room
ENV LIVEKIT_URL=<ws://localhost:7880>
ENV LIVEKIT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjUyODE5MzUwOTYsImlzcyI6IkFQSVRzRWZpZFpqclFvWSIsIm5hbWUiOiJwMSIsIm5iZiI6MTY4MTkzODY5Niwic3ViIjoicDEiLCJ2aWRlbyI6eyJyb29tIjoidGVzdHJvb20iLCJyb29tSm9pbiI6dHJ1ZX19.Se6WNr_xV9Z8aJ1mHI1BY5s2G1LrJa7pHyPcKBiIATw
RUN apt-get update
RUN apt-get install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev
CMD ["basic_room"]
boundless-energy-78552
05/23/2023, 12:28 PMtheo
)ambitious-lunch-95812
05/23/2023, 3:30 PMws://
is working for me also, but it's seg-faulting when using `wss://`:
export LIVEKIT_URL=<wss://ivis-lk.spieg.net>
export LIVEKIT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjUyODE5MzUwOTYsImlzcyI6IkFQSVRzRWZpZFpqclFvWSIsIm5hbWUiOiJwMSIsIm5iZiI6MTY4MTkzODY5Niwic3ViIjoicDEiLCJ2aWRlbyI6eyJyb29tIjoidGVzdHJvb20iLCJyb29tSm9pbiI6dHJ1ZX19.Se6WNr_xV9Z8aJ1mHI1BY5s2G1LrJa7pHyPcKBiIATw
./examples/target/debug/basic_room
Segmentation fault (core dumped)
ambitious-lunch-95812
05/23/2023, 3:32 PMboundless-energy-78552
05/23/2023, 3:58 PMwss://
enough-zebra-80131
05/24/2023, 2:39 PMreqwest
attempted to connect to an ssl endpoint - it was segfaulting when trying to use openssl
. It seems to be a known issue caused by multiple tls libraries being linked - I solved it by changing reqwest
and a few other crates to use rustls
to know if this is the issue, you could try running the binary through gdb and looking at the backtraceambitious-lunch-95812
05/24/2023, 5:20 PMlibssl3
. I believe this issue is in the webrtc-sys
module, so it's separate from the reqwest
compatibility.enough-zebra-80131
05/24/2023, 5:57 PMwebrtc-sys
uses reqwest
as well, I changed it to fix my issue:
-reqwest = { version = "0.11", features = ["blocking", "json"] }
+reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls", "rustls-tls"] }
enough-zebra-80131
05/24/2023, 5:58 PMenough-zebra-80131
05/24/2023, 6:05 PMpthread_rwlock_wrlock
enough-zebra-80131
05/24/2023, 6:07 PMreqwest
that link different ssl librariesboundless-energy-78552
05/24/2023, 7:51 PMenough-zebra-80131
05/24/2023, 7:56 PMboundless-energy-78552
05/24/2023, 8:04 PMenough-zebra-80131
05/24/2023, 8:16 PMenough-zebra-80131
05/25/2023, 2:09 PMenough-zebra-80131
05/25/2023, 2:09 PMenough-zebra-80131
05/25/2023, 2:18 PMtokio-tungstenite = { version = "0.19", features = ["rustls-tls-native-roots"] }
it works!ambitious-lunch-95812
05/25/2023, 2:21 PMenough-zebra-80131
05/25/2023, 2:22 PMreqwest
or tokio-tungstenite
ambitious-lunch-95812
05/25/2023, 4:27 PMboundless-energy-78552
05/25/2023, 6:02 PMincalculable-ambulance-68856
05/25/2023, 11:22 PM