Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using tigerbeetle image: error: permissiondenied #1134

Closed
skyrpex opened this issue Apr 16, 2024 · 2 comments
Closed

Problem using tigerbeetle image: error: permissiondenied #1134

skyrpex opened this issue Apr 16, 2024 · 2 comments
Assignees
Labels
t/bug Something isn't working

Comments

@skyrpex
Copy link

skyrpex commented Apr 16, 2024

Describe the bug

From TigerBeetle docs, tried running the docker commands and they fail. Using docker works correctly, but not with orbstack.

To Reproduce

  1. Run
docker run -v $(pwd)/data:/data ghcr.io/tigerbeetle/tigerbeetle \
    format --cluster=0 --replica=0 --replica-count=1 /data/0_0.tigerbeetle
  1. Will end up unexpectedly with a error: PermissionDenied error.

Expected behavior

Should end correctly.

Diagnostic report (REQUIRED)

OrbStack info:
Version: 1.5.1
Commit: 4cfac15e1080617c70eb163966e1cb2009dac1c2 (v1.5.1)

System info:
macOS: 14.4.1 (23E224)
CPU: arm64, 10 cores
CPU model: Apple M1 Max
Model: MacBookPro18,2
Memory: 32 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-04-16T09-52-03.218795Z.zip

Screenshots and additional context (optional)

No response

@skyrpex skyrpex added the t/bug Something isn't working label Apr 16, 2024
@slinorb
Copy link
Member

slinorb commented Apr 16, 2024

Just add --privileged to the docker run command.

@kdrag0n
Copy link
Member

kdrag0n commented Jun 9, 2024

TigerBeetle requires io_uring. Docker 25.0.0+ blocks io_uring by default: moby/moby#46762

I've submitted a PR to fix the command in TigerBettle's docs: tigerbeetle/tigerbeetle#1995

Please add --security-opt seccomp=unconfined to the docker run command. This keeps most security features intact, as opposed to --privileged.

@kdrag0n kdrag0n closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants