-
Notifications
You must be signed in to change notification settings - Fork 45
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
Unable to run clear:cache in development mode #38
Comments
This is not PdfBundle issue but general symfony2 problem. Symfony2 cache is precreated by user who called app/console script but application runs on www-data account, so when some cache is creating while application runtime, permission denied error occurs. There are some solutions: http://symfony.com/doc/current/book/installation.html#configuration-and-setup I use umask function in first line of console script and app*.php files and it works ok. |
Thanks for the fast reaction and this great bundle! I know this solution but i think this not an elegant one. I read the your documentation and i'm apparently able to define cache options: https://github.com/psliwa/PdfBundle#configuration I tried to define some zend cache related cache options but it didn't work for me: http://framework.zend.com/manual/1.12/en/zend.cache.backends.html Isn't it possible to define some symfony2 friendly caching options as an intiial configuration of the bundle? |
In a shared host prod environment |
Probably you set this mask after cache was created. Umask doesn't work if cache is already created. You should clear cache one time manually (via delete cache/prod directory) and next time cache:clear should work ok. |
Piotr, Thanks for your reply. Such does not appear to be the case. I removed the app/cache/prod directory, ran clear cache for prod environment command as user then created a pdf in prod environment. The zfcache* directories return owned by www-data with no group or world rights. Now trying (without much success) to create a controller to clear cache for prod environment. George UPDATE: I very much appreciate your work here. I apologize for not being able to contribute - my work is as a volunteer for a non-profit.
|
Hi, Problem hasn't been resolved yet, unfortunately. Still having issues with this. Best regards, |
Hi to the best pdf library. In my case setting right permissions for zfcache library helped:
Using symfony 3.4, |
It's not possible to clear the cache of my symfony2 application. The PdfBundle internally uses some zf_cache with www-data rights (the user linux uses when you run your application in the browser.
In the console, you run the app/console with another user who is not able to delete the folder:
So it's not possible to delete the cache folder:
[UnexpectedValueException]
FilesystemIterator::__construct(/app/cache/dev_old/zfcache-fa): failed to open dir: Permission denied
The text was updated successfully, but these errors were encountered: