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

config.php ownership changes to root:root after saving config changes #144

Open
sycophantic opened this issue Jan 19, 2022 · 1 comment
Open

Comments

@sycophantic
Copy link

sycophantic commented Jan 19, 2022

After building the docker image and starting it on Ubuntu 18.04 or Centos7 ./data/web/app/Config/config.php becomes owned by root:root after making config changes. This causes MISP to break. I'm unsure of the source of the permissions change.

@chais0n
Copy link

chais0n commented Jun 20, 2022

I'm seeing something similar. In v2.4.151 I was able to volume mount the config file with no issue. Ever since v2.4.153 I can no longer mount the config file.

I tested with the a clone of this repo running on Ubuntu 20.04 LTS. The only change I made was to volume mount the one config file in docker-compose. It worked in v2.4.151, but not since.

When I mount, as I always have, with -v config.php:/var/www/MISP/app/Config/config.php it throws the following errors during startup:

"Warning error: rename(/var/www/MISP/app/tmp/Skjignwe,var/wwwMISP/app/Config/config.php): Device or resource busing in [/var/www/MISP/app/Model/Server.php, line 2275]"

Error: Could not rename /var/www/MISP/app/tmp/Skjignwe to config file var/wwwMISP/app/Config/config.php

I set a constant ls command to print the perms on config.php and discovered that it's being set to root:root even though the perms on the file I'm mounting are 750 web-data:web-data.

Oddly, I can get around the issue if I mount the entire /Config directory to the container.

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