Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

missing image version for arm64/v8 (Apple Silicon M1) #50

Open
festplatte opened this issue Jul 15, 2021 · 5 comments
Open

missing image version for arm64/v8 (Apple Silicon M1) #50

festplatte opened this issue Jul 15, 2021 · 5 comments
Labels
enhancement pinned Don't stale tickets

Comments

@festplatte
Copy link

Hi,
I've just tried to run the pre-built docker image for Zammad from docker hub on my MacBook Pro with the Apple Silicon M1 chip which resulted in an error during the startup of Elasticsearch. After some research I found out that the Zammad docker image is only available for the amd64 architecture, not for arm64/v8. Would it be possible to publish the image for both architectures? The required components like Elasticserach already exist in a arm64 version so after cloning this repo and building the docker image locally on the M1 chip I managed to start Zammad in a docker container. This should also be possible on the CI pipeline and would make it easier for M1 users to run Zammad on their machines.

Infos:

  • Docker version: 20.10.7, build f0df350
  • Operating system (Docker host): macOS Big Sur v11.4

Expected behavior:

  • Zammad should start as a docker container when running docker container run -ti --rm --name zammad -p 80:80 zammad/zammad

Actual behavior:

  • The container startup fails with the following error:
[....] Starting Elasticsearch Server:Exception in thread "main" java.io.IOException: Cannot run program "/usr/share/elasticsearch/jdk/bin/java": error=0, Failed to exec spawn helper: pid: 394, exit value: 1
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1142)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
        at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:114)
        at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
        at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
        at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
        at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
Caused by: java.io.IOException: error=0, Failed to exec spawn helper: pid: 394, exit value: 1
        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:313)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1109)
        ... 6 more
 failed!

Steps to reproduce the behavior:

  • run docker container run -ti --rm --name zammad -p 80:80 zammad/zammad on a ARM-based MacBook (with Apple Silicon M1 chip)
  • temporarily solve the problem by cloning this repo and building the docker image locally
@MrGeneration

This comment was marked as off-topic.

@mgruner
Copy link
Contributor

mgruner commented Jul 15, 2021

@MrGeneration this is the same issue as zammad/zammad-docker-compose#218.

@MrGeneration
Copy link
Member

Oh noez. I stumbled into the wrong repo. So sorry... :(

@MrGeneration MrGeneration reopened this Jul 15, 2021
@mgruner
Copy link
Contributor

mgruner commented Jul 16, 2021

Hi @festplatte. I tried to make some progress here with a new branch of Zammad that does use docker buildx build to build the zammad-docker image for linux/arm64 within Github Actions, as that's our toolchain. It works ok until trying to start Elasticsearch, when it fails with the same error message (spawnHelper).

I didn't see this issue when building (natively) on my local M1 system.

Would you have any recommendation how to proceed?

@stale
Copy link

stale bot commented Sep 14, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 14, 2021
@MrGeneration MrGeneration added pinned Don't stale tickets and removed wontfix labels Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement pinned Don't stale tickets
Projects
None yet
Development

No branches or pull requests

3 participants