-
Notifications
You must be signed in to change notification settings - Fork 73
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
ModSecurity: Multipart parsing error: Multipart: Failed to create file: /tmp/modsecurity/tmp/ #269
Comments
Sounds reasonable. Do you want to send a PR for this? |
I think we need to fix the permissions of that directory instead, like we do for the other directories already. |
Looking at the Dockerfile, the directory |
I've checked and the permissions look ok. @xBounceIT, which tag are you using exactly? |
Do you mean image tag? I am currently running 4.3.0-apache-202406090906 |
Yes, thanks. |
Permissions and ownership look as expected. The init process is running as How are you running the image? Can you please provide a way for us to recreate your issue? E.g., docker compose file or shell script. |
Sure, this is the docker compose and Dockerfile (since we use this image as a base and install modevasive too). Docker compose:
Dockerfile:
|
Looks like your issue is that you change the user to root. Because of that,
|
After upgrading from container v3.3.5 to v4.3.0, this error has been appearing constantly.
It seems to be due to Apache not running as root, and the only fix i have found is to change the MODSEC_TMP_DIR variable from the default (which doesn't seem to work) to a more accessible "/tmp".
The text was updated successfully, but these errors were encountered: