Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Dispatcher setup on Mac M1

Mayank_Saklecha
Level 3
Level 3

All - Has anyone configured dispatcher on Mac M1? I downloaded Apache dispatcher for Mac which is for x86 but when i am using it on Mac M1 i get following error:

httpd: Syntax error on line 185 of /opt/homebrew/etc/httpd/httpd.conf: Syntax error on line 1 of /opt/homebrew/opt/httpd/conf.d/dispatcher-pub.conf: Cannot load modules/mod_dispatcher.so into server: dlopen(/opt/homebrew/opt/httpd/modules/mod_dispatcher.so, 10): no suitable image found.  Did find:\n\t/opt/homebrew/opt/httpd/modules/mod_dispatcher.so: mach-o, but wrong architecture\n\t/opt/homebrew/Cellar/httpd/2.4.49/modules/mod_dispatcher.so: mach-o, but wrong architecture

 

Any help with be appreciated

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

You need an ARM binary of the dispatcher, and I am not sure if it already exists. I would recommend to raise a support ticket for that.

 

You could use a x86-64 version of the httpd, which would work with the existing dispatcher; in this case it would use Rosetta. Not sure how good this works.

 

Another approach: Adobe ships a docker image of httpd + dispatcher module for AEM as a Cloud Service, which you could use. Docker Desktop for MacOS/ARM supports multi-arch, and there this package should be able to run. See https://docs.docker.com/desktop/mac/apple-silicon/

 

View solution in original post

4 Replies
Jörg_Hoh
Correct answer by
Employee
Employee

You need an ARM binary of the dispatcher, and I am not sure if it already exists. I would recommend to raise a support ticket for that.

 

You could use a x86-64 version of the httpd, which would work with the existing dispatcher; in this case it would use Rosetta. Not sure how good this works.

 

Another approach: Adobe ships a docker image of httpd + dispatcher module for AEM as a Cloud Service, which you could use. Docker Desktop for MacOS/ARM supports multi-arch, and there this package should be able to run. See https://docs.docker.com/desktop/mac/apple-silicon/

 

Arun_Patidar
Community Advisor
Community Advisor

Hi,

Could you please try using Docker from Adobe to setup and run dispatcher in Macbook, if this works.

please check Dispatcher section at http://aemlab.blogspot.com/2020/09/aemaacs-setup.html

 

TB3dock
Level 8
Level 8

If anyone gets dispatcher working on M1 Mac (especially a cloud oriented version), please could you post the steps/tools used, as I have had no luck.

Mayank_Saklecha
Level 3
Level 3

I was able to finally run dispatcher on Mac M1. There are several articles online on creating docker image for dispatcher. Follow anyone of them. Just remember while building/ running docker add this below param in the command: 

--platform linux/amd64

This is because of difference in architecture in M1 and so we need to create and run docker image for amd64 based architecture. Hope this helps!