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

Couldn't create the ssl-cache mutex #862

Closed
8 tasks done
acoalex opened this issue Jan 31, 2022 · 14 comments
Closed
8 tasks done

Couldn't create the ssl-cache mutex #862

acoalex opened this issue Jan 31, 2022 · 14 comments
Assignees

Comments

@acoalex
Copy link

acoalex commented Jan 31, 2022

ISSUE TYPE

  • Bug Report

Checklist

OS / ENVIRONMENT

  1. Host operating system and version: Macos 12.2
  2. (Macos 12.2 only) Docker Desktop for M1:
  3. Docker version: 4.4.2
  4. Docker Compose version: 2.2.3
  5. (Linux) Is SELinux enabled?:
  6. What git commit hash are you on?: 9272bfe

SUMMARY

After pulling last changes from repository httpd service doesnt start and display this error message:
devilbox-httpd-1 | [Mon Jan 31 15:43:10.749810 2022] [core:emerg] [pid 2222:tid 274907404160] (95)Operation not supported: AH00023: Couldn't create the ssl-cache mutex
devilbox-httpd-1 | AH00016: Configuration Failed

Minutes before i was developing normally but after upgrading devilbox repository that error appears

STEPS TO REPRODUCE

1- Pull last repository commits
2- docker-compose up httpd mysql php

EXPECTED BEHAVIOUR

Can access to web site

ACTUAL BEHAVIOUR

httpd service is down

@acoalex acoalex added the bug label Jan 31, 2022
@acoalex
Copy link
Author

acoalex commented Jan 31, 2022

Switching to v1.9.2 tag works perfectly.
Thanks

@cytopia
Copy link
Owner

cytopia commented Feb 1, 2022

  • .env file is attached
  • ./check-config.sh output is added below
  • docker-compose logs output is added below

These checkboxes should actually only be ticked, if their criteria is fulfilled. Let me know if this is unclear and how I can better formulate this to make it more clear.

When checking google for AH00023: Couldn't create the ssl-cache mutex it tells me that "semaphores are running short on count / space". Not sure If this is a host issue, or an issue on the Apache container:

@acoalex
Copy link
Author

acoalex commented Feb 1, 2022

Thanks @cytopia , sorry for that checks, my fault.
I think that should be a problem with apache container, on host i have enought space:

overlay 61255492 32678616 25435552 57% /
tmpfs 65536 0 65536 0% /dev
shm 65536 0 65536 0% /dev/shm
grpcfuse 971350180 179114772 792235408 19% /ca
/dev/vda1 61255492 32678616 25435552 57% /var/mail
tmpfs 4063132 0 4063132 0% /sys/firmware

Only switching to tag 1.9.2 all works perfect, i will try to checkout again to master and change httpd image to 0.36 to determine if that is the problem.
Thanks again for your effort

@cytopia
Copy link
Owner

cytopia commented Feb 1, 2022

Here is another one which might indicate an issue with M1: webdevops/Dockerfile#433

@acoalex
Copy link
Author

acoalex commented Feb 1, 2022

Here is another one which might indicate an issue with M1: webdevops/Dockerfile#433

I try with a 2019 Macbook pro with intel processor and works correctly, so its clearly M1 processor fail.
Thanks

@cytopia
Copy link
Owner

cytopia commented Feb 15, 2022

@acoalex can you give the upcoming release a try. Had an explicit fix for the ssl-cache mutex on Apache for M1 CPU's: #865

@cytopia cytopia self-assigned this Feb 15, 2022
@acoalex
Copy link
Author

acoalex commented Feb 15, 2022

@cytopia Yes, give me a while and i will try again.
Thanks a lot.

@acoalex
Copy link
Author

acoalex commented Feb 15, 2022

@cytopia Hi!! I have make a pull request to repository and launch again docker but the same errors appears:

devilbox-httpd-1 | [Tue Feb 15 12:48:20.479133 2022] [core:emerg] [pid 5685:tid 274907404160] (95)Operation not supported: AH00023: Couldn't create the ssl-cache mutex
devilbox-httpd-1 | AH00016: Configuration Failed

Thanks

@cytopia
Copy link
Owner

cytopia commented Feb 15, 2022

I have make a pull request to repository and launch again docker...

Not sure what this means. Did you checkout branch release/v1.10.4 ?

@acoalex
Copy link
Author

acoalex commented Feb 15, 2022

@cytopia No, i pulled from master branch, i will try to checkout that release.
Thanks

@cytopia
Copy link
Owner

cytopia commented Feb 15, 2022

It is not merged yet, as the PR is still open. You need to try it by checking out the above specified branch

@acoalex
Copy link
Author

acoalex commented Feb 15, 2022

@cytopia Its Works!!! Thanks a lot.

@cytopia cytopia closed this as completed Feb 15, 2022
@cytopia
Copy link
Owner

cytopia commented Feb 15, 2022

@henriquemattos
Copy link

@cytopia given your commit, it's not clear what you did to fix Mutex SSL. Is there a specific configuration/setting you modified either in a Dockerfile or [httpd|apache|*].conf that you could share?

I'm not using your software, but I'm having similar problem on M1 and setting Mutex posixsem stops the error from the log but I keep loosing requests - and given the frequency and timing, I believe it's related to SSL.

Thanks in advance,
Henrique

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

No branches or pull requests

3 participants