Unable to Run Zeebe Container

Hi Experts,

I encountered an issue when i start the zeebe docker container. i’m using the Mac with apple M1 CPU and i’m not sure whether this is the reason. Some information FYI:

  • zeebe version: camunda/zeebe:0.26.4
  • OS: macos Big Sur

I got the following warning:
WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

This is the log from my zeebe container:
io.zeebe.broker.StandaloneBroker - Starting StandaloneBroker v0.26.4 using Java 11.0.11 on 0b3bc3b1f714 with PID 9 (/usr/local/zeebe/lib/zeebe-distribution-0.26.4.jar started by root in /usr/local/zeebe)

** 2021-06-04 08:41:51.674 [] [main] INFO**

** io.zeebe.broker.StandaloneBroker - No active profile set, falling back to default profiles: default**

** 2021-06-04 08:41:52.467 [] [main] WARN**

** org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [io.zeebe.broker.StandaloneBroker]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/boot/web/server/WebServerFactoryCustomizer.class] cannot be opened because it does not exist**

** 2021-06-04 08:41:52.563 [] [main] ERROR**

** org.springframework.boot.SpringApplication - Application run failed**

** org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [io.zeebe.broker.StandaloneBroker]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/boot/web/server/WebServerFactoryCustomizer.class] cannot be opened because it does not exist**

Is there anyone get similar issue? thank you.

I get a similar issue - also on apple M1 macOS 11.4

zeebe_broker   | ++ hostname -i
zeebe_broker   | + HOST=172.20.0.2
zeebe_broker   | + '[' false = true ']'
zeebe_broker   | + export ZEEBE_BROKER_NETWORK_HOST=172.20.0.2
zeebe_broker   | + ZEEBE_BROKER_NETWORK_HOST=172.20.0.2
zeebe_broker   | + export ZEEBE_BROKER_GATEWAY_CLUSTER_HOST=172.20.0.2
zeebe_broker   | + ZEEBE_BROKER_GATEWAY_CLUSTER_HOST=172.20.0.2
zeebe_broker   | + exec /usr/local/zeebe/bin/broker
zeebe_broker   | Exception in thread "main" java.lang.IllegalArgumentException: Unable to load factories from location [META-INF/spring.factories]
zeebe_broker   |        at org.springframework.core.io.support.SpringFactoriesLoader.loadSpringFactories(SpringFactoriesLoader.java:165)
zeebe_broker   |        at org.springframework.core.io.support.SpringFactoriesLoader.loadFactoryNames(SpringFactoriesLoader.java:132)
zeebe_broker   |        at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:456)
zeebe_broker   |        at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:450)
zeebe_broker   |        at org.springframework.boot.SpringApplication.getBootstrapRegistryInitializersFromSpringFactories(SpringApplication.java:294)
zeebe_broker   |        at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:285)
zeebe_broker   |        at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:266)
zeebe_broker   |        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343)
zeebe_broker   |        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1332)
zeebe_broker   |        at io.camunda.zeebe.broker.StandaloneBroker.main(StandaloneBroker.java:47)
zeebe_broker   | Caused by: java.net.MalformedURLException: no !/ found in url spec:file:/usr/local/zeebe/lib/spring-boot-2.5.2.jar!/META-INF/spring.factories
zeebe_broker   |        at java.base/java.net.JarURLConnection.parseSpecs(Unknown Source)
zeebe_broker   |        at java.base/java.net.JarURLConnection.<init>(Unknown Source)
zeebe_broker   |        at java.base/sun.net.www.protocol.jar.JarURLConnection.<init>(Unknown Source)
zeebe_broker   |        at java.base/sun.net.www.protocol.jar.Handler.openConnection(Unknown Source)
zeebe_broker   |        at java.base/java.net.URL.openConnection(Unknown Source)
zeebe_broker   |        at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:183)
zeebe_broker   |        at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:144)
zeebe_broker   |        at org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:133)
zeebe_broker   |        at org.springframework.core.io.support.SpringFactoriesLoader.loadSpringFactories(SpringFactoriesLoader.java:147)
zeebe_broker   |        ... 9 more
zeebe_broker exited with code 1

Can you try running the Java distribution and see if that works? I know there are some native compilation components that have had issues on various operating systems, so they may not be compatible with the M1 chip.

We are also facing the same issue, not able to run zeebe docker container in Mac M1chip. Do we have any solution?

@jilanims or @Andy_JB - could you please open a GitHub issue here: https://github.com/camunda-cloud/zeebe/issues, and post a link back in this thread? Then anyone else with this issue can add their input in there, and we can get some engineering attention on it.