Skip to content

Commit 464d027

Browse files
YedPoolclaude
andcommitted
Add comprehensive debugging for LiveKit binary download
- Show system architecture and package architecture - Display download URL and file info at each step - Check binary dependencies with ldd - Should help diagnose the exec format error 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1ff382a commit 464d027

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

livekit-server/Dockerfile

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,29 @@ RUN pip install --no-cache-dir -r requirements.txt
1919
# Copy application code
2020
COPY main.py .
2121

22-
# Download LiveKit server binary during build (check architecture)
23-
RUN arch=$(uname -m) && \
22+
# Download LiveKit server binary during build with better debugging
23+
RUN echo "System info:" && \
24+
uname -a && \
25+
dpkg --print-architecture && \
26+
arch=$(uname -m) && \
27+
echo "Detected architecture: $arch" && \
2428
if [ "$arch" = "x86_64" ]; then \
2529
binary_arch="amd64"; \
2630
elif [ "$arch" = "aarch64" ]; then \
2731
binary_arch="arm64"; \
2832
else \
2933
echo "Unsupported architecture: $arch"; exit 1; \
3034
fi && \
31-
echo "Downloading LiveKit server for architecture: $binary_arch" && \
32-
curl -L "https://github.com/livekit/livekit/releases/latest/download/livekit-server_linux_${binary_arch}" \
33-
-o /usr/local/bin/livekit-server && \
35+
download_url="https://github.com/livekit/livekit/releases/latest/download/livekit-server_linux_${binary_arch}" && \
36+
echo "Downloading LiveKit server from: $download_url" && \
37+
curl -L "$download_url" -o /usr/local/bin/livekit-server && \
38+
echo "Download completed, file info:" && \
39+
ls -la /usr/local/bin/livekit-server && \
40+
file /usr/local/bin/livekit-server && \
3441
chmod +x /usr/local/bin/livekit-server && \
35-
file /usr/local/bin/livekit-server
42+
echo "Final binary info:" && \
43+
file /usr/local/bin/livekit-server && \
44+
ldd /usr/local/bin/livekit-server || echo "ldd failed - static binary or missing dependencies"
3645

3746
# Create directory for config files
3847
RUN mkdir -p /tmp

0 commit comments

Comments
 (0)