You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/11/14 11:26:26 UTC

[GitHub] [incubator-kvrocks] ruslangm opened a new issue, #1122: Can't start kvrocks in Docker container on macos.

ruslangm opened a new issue, #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   latest from Docker hub:
   https://hub.docker.com/layers/apache/kvrocks/latest/images/sha256-9ef819b07e071f03125846c08e01ee4651710f2ee70518987fbaf6944a6e5b62?context=explore
   
   ### Minimal reproduce step
   
   ```
   ❯ docker run -it -p 6666:6666 --name zkbnb-kvrocks apache/kvrocks
   <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
   <jemalloc>: (This is the expected behaviour if you are running under QEMU)
   
   ...
   
   ❯ docker ps -a
   CONTAINER ID   IMAGE            COMMAND                  CREATED              STATUS                            PORTS                    NAMES
   2c5f0f887f81   apache/kvrocks   "./bin/kvrocks -c ./…"   About a minute ago   Exited (137) About a minute ago                            zkbnb-kvrocks
   ```
   
   ### What did you expect to see?
   
   `kvrocks` start log.
   
   ### What did you see instead?
   
   ```
   <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
   <jemalloc>: (This is the expected behaviour if you are running under QEMU)
   ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] git-hulk commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
git-hulk commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313684471

   @ruslangm Thanks for your feedback. It looks like the docker client wrongly recognise the CPU platform. Would you like to have a try at pulling the image with explicitly arch: `docker pull apache/kvrocks:2.2.0 --platform arm64`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] PragmaTwice commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
PragmaTwice commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313764955

   > @git-hulk sure.
   > 
   > ```
   > ❯ docker pull apache/kvrocks:2.2.0 --platform arm64
   > 2.2.0: Pulling from apache/kvrocks
   > 4e7e0215f4ad: Already exists
   > 2b847dde0550: Pull complete
   > c81f793545a7: Pull complete
   > e371fbf3a5a8: Pull complete
   > 3ce5b4e75401: Pull complete
   > 9e36f583daf1: Pull complete
   > 4f41328fbfd0: Pull complete
   > 19c45c51368f: Pull complete
   > Digest: sha256:24dc33d8d2b69b1bfad073e63f13edc53bfa38235eb2f7320377ea7aa2691f49
   > Status: Downloaded newer image for apache/kvrocks:2.2.0
   > WARNING: image with reference apache/kvrocks was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
   > docker.io/apache/kvrocks:2.2.0
   > 
   > ❯ docker run -it -p 6666:6666 apache/kvrocks@sha256:24dc33d8d2b69b1bfad073e63f13edc53bfa38235eb2f7320377ea7aa2691f49
   > <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
   > <jemalloc>: (This is the expected behaviour if you are running under QEMU)
   > ```
   
   I notice there is one line in your log that seems to be the reason of the error you encountered:
   ```
   WARNING: image with reference apache/kvrocks was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] git-hulk commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
git-hulk commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313911300

   I also tested it on my intel chip, it also works well. You can take a look at qemu with `ps aux|grep qemu`. If I guess right, it should be running in `x86_64` mode.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] ruslangm commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
ruslangm commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313633106

   @git-hulk btw, I just built and ran `kvrocks` from sources according to the [build section from doc.](https://github.com/apache/incubator-kvrocks/issues/1122
   ) and it works good.
   
   ```
   ❯ uname -a
   Darwin nd9w29p9vd 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] ruslangm commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
ruslangm commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313740294

   Sure.
   ```
   ❯ docker pull apache/kvrocks:2.2.0 --platform arm64
   2.2.0: Pulling from apache/kvrocks
   4e7e0215f4ad: Already exists
   2b847dde0550: Pull complete
   c81f793545a7: Pull complete
   e371fbf3a5a8: Pull complete
   3ce5b4e75401: Pull complete
   9e36f583daf1: Pull complete
   4f41328fbfd0: Pull complete
   19c45c51368f: Pull complete
   Digest: sha256:24dc33d8d2b69b1bfad073e63f13edc53bfa38235eb2f7320377ea7aa2691f49
   Status: Downloaded newer image for apache/kvrocks:2.2.0
   WARNING: image with reference apache/kvrocks was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
   docker.io/apache/kvrocks:2.2.0
   
   ❯ docker run -it -p 6666:6666 --name zkbnb-kvrocks apache/kvrocks@sha256:24dc33d8d2b69b1bfad073e63f13edc53bfa38235eb2f7320377ea7aa2691f49
   <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
   <jemalloc>: (This is the expected behaviour if you are running under QEMU)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] git-hulk commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
git-hulk commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1315468894

   > ```
   > ❯ ps aux | grep qemu
   > user             20177  13.8  1.2 418377584 387504   ??  R     7:38PM  13:39.97 /Applications/Docker.app/Contents/MacOS/qemu-system-aarch64 -accel hvf -cpu host ...
   > ```
   
   ummm... I have no idea why it happened, your QEMU is running in `aarch64` but it thought itself needs the `amd64` image:
   
   ```
   was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] git-hulk commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
git-hulk commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313769050

   That's so weird. Your docker's qemu is running in `linux/amd64` but from my side is `aarch64`. So you got the error since the docker client thought its arch is arm64 and pulled the image with the `arm64` platform.
   
   ```
   ❯ ps aux|grep qemu
   hulk             13890   1.9  7.4 418260112 1247520   ??  S     8:28PM   3:30.06 /Applications/Docker.app/Contents/MacOS/qemu-system-aarch64 -accel hvf -cpu host -machine virt,highmem=off -m 8092 -smp 5 -kernel /Applications/Docker.app/Contents/Resources/linuxkit/kernel -append page_poison=1 vsyscall=emulate panic=1 nospec_store_bypass_disable noibrs noibpb no_stf_barrier mitigations=off linuxkit.unified_cgroup_hierarchy=1    vpnkit.connect=tcp+bootstrap+client://192.168.65.2:62364/bcb9f8f0f5a636d920d70e033a3333c9f4fe0807b19bb748bbd1561af926d878 vpnkit.disable=osxfs-data console=ttyAMA0 -initrd /Applications/Docker.app/Contents/Resources/linuxkit/initrd.img -serial pipe:/var/folders/ls/jsfyf9g52h94_tmgys0895qw0000gn/T/qemu-console1146358452/fifo -drive if=none,file=/Users/hulk/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw,format=raw,id=hd0 -device virtio-blk-pci,drive=hd0,serial=dummyserial -netdev socket,id=net1,fd=3 -device virtio-net-device,netdev=net1,mac=02:
 50:00:00:00:01 -vga none -nographic -monitor none
   ```
   
   so you will 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] git-hulk commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
git-hulk commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313625134

   I tried it on Mac Pro(intel) and M1 Pro, but they work well. I'm wondering if the CPU arch is different between M1 Pro and M1 Max. @ruslangm could you paste the output of the command `uname -a`?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] ruslangm commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
ruslangm commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313645612

   `nightly` build provides one more line of error:
   ```
   ❯ docker run -it -p 6666:6666 --name zkbnb-kvrocks apache/kvrocks:nightly
   <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
   <jemalloc>: (This is the expected behaviour if you are running under QEMU)
   qemu: uncaught target signal 4 (Illegal instruction) - core dumped
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] tisonkun commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
tisonkun commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1355994541

   Moved questions to the Q&A forum.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] tisonkun closed issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
tisonkun closed issue #1122: Can't start kvrocks in Docker container on macos.
URL: https://github.com/apache/incubator-kvrocks/issues/1122


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] ruslangm commented on issue #1122: Can't start kvrocks in Docker container on macos.

Posted by GitBox <gi...@apache.org>.
ruslangm commented on issue #1122:
URL: https://github.com/apache/incubator-kvrocks/issues/1122#issuecomment-1313892100

   @git-hulk can it be related to difference between `Docker Desktop for Intel Chip` and `Docker Desktop for Apple Chip`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org