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

Error on Mac M1 Chip #36

Closed
abruzzi opened this issue Feb 23, 2023 · 2 comments
Closed

Error on Mac M1 Chip #36

abruzzi opened this issue Feb 23, 2023 · 2 comments

Comments

@abruzzi
Copy link

abruzzi commented Feb 23, 2023

Hi there.

Thanks for making this repo and all the repo to make life easier for others.

However, when I run this on my Mac M1 Chip, all four other containers are running okay. The www, however, crashed with the log below:

2023-02-23 20:54:12 www              | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
2023-02-23 20:54:12 www              | [Thu Feb 23 09:54:12.622911 2023] [core:emerg] [pid 1] (95)Operation not supported: AH00023: Couldn't create the mpm-accept mutex 
2023-02-23 20:54:12 www              | (95)Operation not supported: could not create accept mutex
2023-02-23 20:54:12 www              | AH00015: Unable to open logs
2023-02-23 21:18:25 www              | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.4. Set the 'ServerName' directive globally to suppress this message
2023-02-23 21:18:25 www              | [Thu Feb 23 10:18:25.090711 2023] [core:emerg] [pid 1] (95)Operation not supported: AH00023: Couldn't create the mpm-accept mutex 
2023-02-23 21:18:25 www              | (95)Operation not supported: could not create accept mutex
2023-02-23 21:18:25 www              | AH00015: Unable to open logs

I tried to amend a few configs in www/Dockerfile but got no luck.

RUN echo "Mutex posixsem" >> /etc/apache2/apache2.conf
RUN echo 'Mutex posixsem' >> /etc/apache2/conf/httpd.conf

Could you please give me some hints here? Thank you.

@webpwnized
Copy link
Owner

I dont own a system with the Apple M1 chip, so I am not able to help. However, I think you are on the right track according to the last answer in this post: https://stackoverflow.com/questions/68365844/docker-apache-in-apple-silicon-m1

@abruzzi
Copy link
Author

abruzzi commented Feb 24, 2023

Thanks @webpwnized for replying.

I got it fixed by following this step:

  1. updated Dockerfile in www, at line 55:
RUN echo "Mutex posixsem" >> /etc/apache2/apache2.conf
  1. re-build the images by
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose build
  1. launch the whole stack with:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose up

Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants