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

var/$env/cache/ongr/elasticsearch is not writeable #968

Open
pkly opened this issue Sep 28, 2020 · 1 comment
Open

var/$env/cache/ongr/elasticsearch is not writeable #968

pkly opened this issue Sep 28, 2020 · 1 comment

Comments

@pkly
Copy link
Contributor

pkly commented Sep 28, 2020

It seems like the bundle doesn't automatically change permissions for the folder to actually write to cache when creating it, it sometimes works and sometimes causes a 500 error, which is rather easily fixable via chmod, but it shouldn't happen in the first place.

@piotr-cz
Copy link

piotr-cz commented Dec 10, 2021

Same here,
The var/cache/$env directories have chmod 40777, while only the var/cache/$env/ongr and it's subdirectories have chmod 40775 every time we run bin/console cache:clear command.

Since we run deploy with other user than we run cron commands, we end up with an exception:

[InvalidArgumentException]
The directory "/xxx/var/cache/prod/ongr/elasticsearch" is not writable.

This could be related to the doctrine/cache package which creates directories with 775 permissions/ umask 0002 by default (https://github.com/doctrine/cache/blob/1.4.x/lib/Doctrine/Common/Cache/FilesystemCache.php#L35)

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