Docker container crashes with Bun runtime errors (x86_64 + ARM/RPi 5) #9388

Open
opened 2026-02-16 18:12:20 -05:00 by yindo · 1 comment
Owner

Originally created by @besoeasy on GitHub (Feb 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

🐛 Bug Report: Docker container crashes with Bun runtime errors

Summary

The published Docker image crashes shortly after startup with Bun (BUNJS) runtime errors. This affects both x86_64 and ARM64 architectures.


🔥 What Happened

Running the Docker image results in immediate crashes with Bun runtime errors and escape sequences in output.

Affected Systems

Device OS/Environment Architecture Result
ASUS Laptop Docker Desktop / Linux x86_64 Bun runtime errors, escape sequences, crash
PC Debian (latest) x86_64 Same behavior - crashes
Raspberry Pi 5 Raspberry Pi OS / Docker ARM64 Crashes hard, required system reboot

⚠️ Critical: The Pi 5 crash was severe enough to require a full system reboot.


🌊 Downstream Impact

I'm the project manager at https://github.com/besoeasy/yantra/ and we use your Docker image as a 1-click deploy. Almost all Raspberry Pi users in our community are reporting identical failures.


Expected Behavior

Container starts reliably and stays running on both:

  • (x86_64)
  • (ARM64)

🔄 Steps to Reproduce

  1. Pull the current Docker image
  2. Run the container: docker run --rm -it anomalyco/opencode:latest
  3. Observe Bun runtime errors in logs
  4. Container exits/crashes

💡 Suggested Solutions

While Bun on ARM is known to have stability issues, the crashes are too severe to be attributed solely to that.

Potential fixes:

  1. Base Image: Consider a more compatible Debian base / libc combination
  2. Multi-arch builds: Provide separate images per architecture with appropriate Bun versions
  3. Bun pinning: Pin Bun to a known-good version for each architecture
  4. Fallback: Consider Node.js fallback for ARM builds until Bun stabilizes

📋 Environment

Component Details
Hosts tested ASUS Laptop, Debian PC, Raspberry Pi 5
Architectures x86_64, ARM64
Docker versions Recent (can provide exact versions if needed)

📦 Additional Information Available

I'm happy to provide any of the following to help debug:

  • Full container logs from each host
  • docker inspect output
  • Exact Docker versions for each host
  • OS versions and kernel info
  • Any specific reproduction steps you want me to try

Impact Level

🔴 High - Blocking Raspberry Pi deployments for Yantra users and likely others

/cc @anomalyco

Originally created by @besoeasy on GitHub (Feb 15, 2026). Originally assigned to: @rekram1-node on GitHub. # 🐛 Bug Report: Docker container crashes with Bun runtime errors ## Summary The published Docker image crashes shortly after startup with Bun (BUNJS) runtime errors. This affects both x86_64 and ARM64 architectures. --- ## 🔥 What Happened Running the Docker image results in immediate crashes with Bun runtime errors and escape sequences in output. ### Affected Systems | Device | OS/Environment | Architecture | Result | |--------|---------------|--------------|---------| | ASUS Laptop | Docker Desktop / Linux | x86_64 | Bun runtime errors, escape sequences, crash | | PC | Debian (latest) | x86_64 | Same behavior - crashes | | Raspberry Pi 5 | Raspberry Pi OS / Docker | ARM64 | Crashes hard, required system reboot | > ⚠️ **Critical**: The Pi 5 crash was severe enough to require a full system reboot. --- ## 🌊 Downstream Impact I'm the project manager at https://github.com/besoeasy/yantra/ and we use your Docker image as a **1-click deploy**. Almost all Raspberry Pi users in our community are reporting identical failures. --- ## ✅ Expected Behavior Container starts reliably and stays running on both: - (x86_64) - (ARM64) --- ## 🔄 Steps to Reproduce 1. Pull the current Docker image 2. Run the container: `docker run --rm -it anomalyco/opencode:latest` 3. Observe Bun runtime errors in logs 4. Container exits/crashes --- ## 💡 Suggested Solutions While Bun on ARM is known to have stability issues, the crashes are too severe to be attributed solely to that. ### Potential fixes: 1. **Base Image**: Consider a more compatible Debian base / libc combination 2. **Multi-arch builds**: Provide separate images per architecture with appropriate Bun versions 3. **Bun pinning**: Pin Bun to a known-good version for each architecture 4. **Fallback**: Consider Node.js fallback for ARM builds until Bun stabilizes --- ## 📋 Environment | Component | Details | |-----------|---------| | **Hosts tested** | ASUS Laptop, Debian PC, Raspberry Pi 5 | | **Architectures** | x86_64, ARM64 | | **Docker versions** | Recent (can provide exact versions if needed) | --- ## 📦 Additional Information Available I'm happy to provide any of the following to help debug: - [x] Full container logs from each host - [x] `docker inspect` output - [ ] Exact Docker versions for each host - [ ] OS versions and kernel info - [ ] Any specific reproduction steps you want me to try --- ## Impact Level 🔴 **High** - Blocking Raspberry Pi deployments for Yantra users and likely others /cc @anomalyco
yindo added the perf label 2026-02-16 18:12:20 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2026):

This issue might be related to existing issues with ARM64 architecture and binary builds. Please check:

  • #13268: The binary for release started to get errors on the Raspberry Pi 4b
  • #13367: linux-arm64 binary aborts immediately on Ubuntu 24.04 (SIGABRT on --help)
  • #13353: Grep tool returns "No files found" for all searches on ARM64 Linux

While these aren't exact duplicates, they may share root causes related to ARM64 binary compatibility or Bun runtime issues on non-x86_64 architectures.

@github-actions[bot] commented on GitHub (Feb 15, 2026): This issue might be related to existing issues with ARM64 architecture and binary builds. Please check: - #13268: The binary for release started to get errors on the Raspberry Pi 4b - #13367: linux-arm64 binary aborts immediately on Ubuntu 24.04 (SIGABRT on --help) - #13353: Grep tool returns "No files found" for all searches on ARM64 Linux While these aren't exact duplicates, they may share root causes related to ARM64 binary compatibility or Bun runtime issues on non-x86_64 architectures.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9388