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

Cant run apf on n Apple Silicon M1 #20

Open
DmytroMV opened this issue Sep 18, 2023 · 1 comment
Open

Cant run apf on n Apple Silicon M1 #20

DmytroMV opened this issue Sep 18, 2023 · 1 comment

Comments

@DmytroMV
Copy link

Hello
I have mac on Apple Silicon M1. When I try to run apf I get en error

apf -r 9003 -k namespace/pod

  • ==> : Forwarding local listening ports to (==>) remote ports
  • <== : Forwarding to local ports from (<==) remote listening ports (use -r option)

panic: Failed to establish manager stream: EOF

goroutine 1 [running]:
main.main()
/home/runner/work/autoportforward/autoportforward/cmd/apf/apf.go:123 +0xe8c

Any ideas on how to fix this?
@ruoshan
Copy link
Owner

ruoshan commented Sep 18, 2023

Could you check the following things for me to debug?

  1. the container's kernel arch (x64 or aarch64)
    The m1 version I built can only run on the aarch64 kernel. You can tweak the build.sh, or maybe I can update the script later.

  2. if the pod is runing using read-only root fs
    The apf needs the root to be writable, as it need to copy a small binary into the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants