fast-data-dev: Apple M1 - Could not successfully bind to port 2181
Hi !
I cope with an issue when I try to run the docker image on my Apple M1 mac (see the command and error below).
At first, I tried to look for the port, which I was using because I have a zookeeper installation with brew, but after shutting it down, and even a restart, I still have this error.
And if I run : lsof -nP -iTCP -sTCP:LISTEN | grep 2181
, i get nothing.
Now I’m thinking it’s because of the new Apple M1 chips, because of the warning I get, but i’m not sure it’s a common issue, and I’m not sure the actual error message can be related with ^^
Is there anything someone can think of that I can try ?
Thanks a lot !
$ docker run --rm --net=host lensesio/fast-data-dev
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc
runtime stack:
runtime.throw(0x512269, 0x9)
/usr/lib/go/src/runtime/panic.go:566 +0x95
runtime.newosproc(0xc420030000, 0xc42003ffc0)
/usr/lib/go/src/runtime/os_linux.go:160 +0x194
runtime.newm(0x5203a0, 0x0)
/usr/lib/go/src/runtime/proc.go:1572 +0x132
runtime.main.func1()
/usr/lib/go/src/runtime/proc.go:126 +0x36
runtime.systemstack(0x593600)
/usr/lib/go/src/runtime/asm_amd64.s:298 +0x79
runtime.mstart()
/usr/lib/go/src/runtime/proc.go:1079
goroutine 1 [running]:
runtime.systemstack_switch()
/usr/lib/go/src/runtime/asm_amd64.s:252 fp=0xc42002a768 sp=0xc42002a760
runtime.main()
/usr/lib/go/src/runtime/proc.go:127 +0x6c fp=0xc42002a7c0 sp=0xc42002a768
runtime.goexit()
/usr/lib/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc42002a7c8 sp=0xc42002a7c0
Could not successfully bind to port 2181. Maybe some other service
in your system is using it? Please free the port and try again.
Exiting.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 15
- Comments: 16 (5 by maintainers)
Created a fork with the required changes to run on arm64 / Apple M1.
Execute the following sequence of commands:
I built on this to create PR 185 which adds support for
arm64
andamd64
at same time + along with how to build a multi-arch image usingdocker buildx
.I filed a ticket with
lenses.io
over the weekend and they seem to have restoredarchive.lenses.io
. It’s working for me now.You can also just
docker pull dougdonohoe/fast-data-dev
and get the image I built prior to the issues witharchive.lenses.io