blerc

Troubleshooting & Security

Common Issues

“Adapter not found”

# Check adapter status
hciconfig

# Power on adapter
sudo hciconfig hci0 up

# List adapters
bluetoothctl list

“Permission denied”

# Add user to bluetooth group
sudo usermod -aG bluetooth $USER

# Log out and back in, then verify
groups

# Alternative: run with sudo (not recommended for production)

“WebBluetooth not supported”

“GLIBC_X.XX not found”

Your Pi’s OS is too old. Check version:

cat /etc/*release
ldd --version

Solution: Upgrade to Raspberry Pi OS Bullseye (Debian 11) or newer.

Or rebuild targeting your OS:

cd blerc
make build-bullseye   # For Debian 11 (glibc 2.31)
make build-bookworm   # For Debian 12 (glibc 2.36)

“requires rustc X.XX”

Update Rust:

rustup update stable

Minimum required: Rust 1.83+

Cross-compilation fails on Apple Silicon

Use Docker-based cross-compilation:

cd blerc
make build  # Uses --platform linux/amd64

Yarn PnP resolution errors

cd webapp
rm -rf .yarn/cache .pnp.*
yarn install

BLE connection drops

Security Considerations

App Execution

Authentication

For sensitive operations, enable passkey authentication:

[bluetooth]
auth_mode = "passkey"

Permissions

Network

Variable Storage