Expand my Community achievements bar.

SOLVED

AEMaaCS Dispatcher with Podman

Avatar

Level 1

Hey all, first of all, sorry if this is the wrong place, I wasn't sure whether to post here or in one of the AEM channels.

 

Now, I'm trying to move away from Docker for various reasons, and I'm looking into Podman as it seems to be a drop in replacement for Docker, but I haven't been quite able to make it work for me.

Running script /docker_entrypoint.d/80-frontend-domain.sh
Wed Sep 4 07:22:05 UTC 2024 Monitoring reload trigger file existence at /etc/httpd/reload started
Starting httpd server
Setting up watches.
Watches established.
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

 

I'm aware that (by default) Podman is rootless, and rootless VMs won't allow you to bind on port 80, so I tried to do this:
sysctl net.ipv4.ip_unprivileged_port_start=80

However, this seems to have no effect, regardless of whether I'm running the machine in rootless or rootful state.

Host machine is Windows 11 with WSL2

 

Alternatively, I'm more than happy to run dispatcher entirely on it's own, but I have no idea how to do that and there's no documentation that I could find to do this.
I found this: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/setup-dispatcher-at-local-... but this also provides no details/links

 

Thanks everyone in advance

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You need to keep in mind that "dispatcher" is just an Apache module. As long as you install Apache and then add the "dispatcher" module with some additional configurations, you should be able to run a dispatcher. To streamline this process, a Docker image was introduced to speed up the setup. That said, you can indeed use Podman instead of Docker. I think this article explains the essential steps to set up a dispatcher in Docker, which can be adapted for Podman: https://blogs.perficient.com/2021/01/05/setting-up-a-local-aem-dispatcher-with-docker/ 

 

Additionally, if you are open to setting up a dispatcher locally without using Podman or Docker, there are various references you could use. I will attach some below:

https://medium.com/@toimrank/aem-dispatcher-setup-9dd2cc8cf253

https://www.youtube.com/watch?v=OtIBRyKxhzY 

https://medium.com/@angadi.saa/set-up-dispatcher-on-aem-6-5-local-part-1-ea15a3b7f099

 

I hope this helps.



Esteban Bustamante

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

You need to keep in mind that "dispatcher" is just an Apache module. As long as you install Apache and then add the "dispatcher" module with some additional configurations, you should be able to run a dispatcher. To streamline this process, a Docker image was introduced to speed up the setup. That said, you can indeed use Podman instead of Docker. I think this article explains the essential steps to set up a dispatcher in Docker, which can be adapted for Podman: https://blogs.perficient.com/2021/01/05/setting-up-a-local-aem-dispatcher-with-docker/ 

 

Additionally, if you are open to setting up a dispatcher locally without using Podman or Docker, there are various references you could use. I will attach some below:

https://medium.com/@toimrank/aem-dispatcher-setup-9dd2cc8cf253

https://www.youtube.com/watch?v=OtIBRyKxhzY 

https://medium.com/@angadi.saa/set-up-dispatcher-on-aem-6-5-local-part-1-ea15a3b7f099

 

I hope this helps.



Esteban Bustamante

Avatar

Level 1

I had the same problem. 

 

To fix "AH00072: make_sock: could not bind to address" you need to only add to 'docker-compose.yml':

sysctls:
net.ipv4.ip_unprivileged_port_start: 0

This make you possible to run AEM Dispatcher image (aem-ethos) coming from AEM SDK.

This is not breaking anything when you use Docker instead of Podman.

 

https://documentation.suse.com/smart/container/html/rootless-podman/index.html#rootless-podman-confi...