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

Unable to launch on Apple M1 #43

Closed
Alejandro-J-Caputto opened this issue Oct 19, 2021 · 15 comments
Closed

Unable to launch on Apple M1 #43

Alejandro-J-Caputto opened this issue Oct 19, 2021 · 15 comments
Labels
help wanted Extra attention is needed

Comments

@Alejandro-J-Caputto
Copy link

Hello,

I have build a Keycloak theme but when I try to launch the docker container I am facing the following issues (see below). Do you know how could I solve this problem? Thank you

09:31:08,790 ERROR [org.jboss.modcluster] (ServerService Thread Pool -- 60) MODCLUSTER000034: Failed to start advertise listener: java.net.SocketException: Protocol not available (Error setting socket option) at java.base/java.net.PlainDatagramSocketImpl.socketSetOption0(Native Method) at java.base/java.net.PlainDatagramSocketImpl.socketSetOption(PlainDatagramSocketImpl.java:91) at java.base/java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:352) at java.base/java.net.MulticastSocket.setInterface(MulticastSocket.java:477) at org.jboss.mod_cluster.core@1.4.1.Final//org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.init(AdvertiseListenerImpl.java:151) at org.jboss.mod_cluster.core@1.4.1.Final//org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.start(AdvertiseListenerImpl.java:161) at org.jboss.mod_cluster.core@1.4.1.Final//org.jboss.modcluster.ModClusterService.init(ModClusterService.java:165) at org.wildfly.mod_cluster.undertow@20.0.1.Final//org.wildfly.mod_cluster.undertow.UndertowEventHandlerAdapterService.start(UndertowEventHandlerAdapterService.java:83) at org.wildfly.clustering.service@20.0.1.Final//org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:117) at org.jboss.threads@2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.base/java.lang.Thread.run(Thread.java:834) at org.jboss.threads@2.3.3.Final//org.jboss.threads.JBossThread.run(JBossThread.java:485)

@garronej
Copy link
Collaborator

Hi @Alejandro-J-Caputto,
I don't have a M1 yet. (Soon though, the new MBP are out 😃)
I'll try on a colleague's MacBook when I get the chance.
In the meantime your don't necessarily have to build on your desktop you can do it in the CI pipeline.

@garronej garronej added the help wanted Extra attention is needed label Oct 19, 2021
@lucasff
Copy link

lucasff commented Oct 19, 2021

You should not ask Docker request here. Please head here: https://docs.docker.com/desktop/mac/apple-silicon/

@garronej
Copy link
Collaborator

@lucasff thank you

@eduardosanzb
Copy link

you could use this image
wizzn/keycloak:14

@garronej
Copy link
Collaborator

Hi @eduardosanzb,
Did you actually get this image to work?
Seems like there are some values to be changed in the source...
image
Did you had to enable any flag?

@eduardosanzb
Copy link

eduardosanzb commented Oct 26, 2021

@garronej yes! So far I'm just starting to understand the framework, but definitely I'm able to run custom template only changing the Dockerfile

#FROM jboss/keycloak:15.0.2
FROM wizzn/keycloak:14

USER root

WORKDIR /

ADD configuration /opt/jboss/keycloak/standalone/configuration/

ENTRYPOINT [ "/opt/jboss/tools/docker-entrypoint.sh" ]

And then running the sh script.

definitely there are some errors popping out in the console! Nevertheless I was able to run the template; so I decided to ignore those errors for now. (eventually I'll deploy in a linux server).
Screenshot 2021-10-26 at 14 50 51
Screenshot 2021-10-26 at 14 51 11

@garronej
Copy link
Collaborator

Thank you for your answer. Good to know.
About those errors

@eduardosanzb
Copy link

@garronej I build keycloak v15 for M1 if you need it!

https://hub.docker.com/r/eduardosanzb/keycloak/tags

@Alejandro-J-Caputto
Copy link
Author

Thank you for taking your time to answer. I am working again with keycloak and of course using keycloakify 😄 . Amazing job!! It rocks 🚀

@garronej
Copy link
Collaborator

Sorry I just ordered a new MacBook now so I didn't get the chance to test on M1 but I will eventually and address any problem that might arise.

@garronej garronej reopened this Apr 6, 2022
@garronej
Copy link
Collaborator

garronej commented Apr 6, 2022

I reopen, now that I got an M1 I'll try to make it work out of the box.

@garronej
Copy link
Collaborator

garronej commented Apr 6, 2022

Works out of the box now. Thank you @eduardosanzb 🙏🏻

@garronej garronej closed this as completed Apr 6, 2022
garronej added a commit that referenced this issue Apr 6, 2022
@garronej garronej reopened this Apr 8, 2022
@garronej
Copy link
Collaborator

garronej commented Apr 8, 2022

@eduardosanzb @Alejandro-J-Caputto.

I need your help 🙏🏻

I can't make it work on my M1.

Screen.Recording.2022-04-08.at.15.23.10.mov

I get this 404, I can't figure out why.

How did you make it work?

The last version, when you run yarn keycloak on a M1 uses eduardosanzb/keycloak docker image.

Could you try and tell me if it works on your machine, maybe with keycloakify_demo_app?

I am stuck, I can't spend a whole day debugging this and, in the meantime, I can't deal with new issues coming up (#86 #85)

If you could give me a hand on this, it would be highly appreciated!

@garronej
Copy link
Collaborator

garronej commented Apr 9, 2022

Ok I found a solution 😄
I will release a new version today

@garronej
Copy link
Collaborator

garronej commented Apr 9, 2022

Full M1 compat in 4.7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants