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

Permission Denied on Render #520

Closed
tgsoverly opened this issue Dec 12, 2015 · 4 comments
Closed

Permission Denied on Render #520

tgsoverly opened this issue Dec 12, 2015 · 4 comments
Labels

Comments

@tgsoverly
Copy link

I am also getting the permission denied error that was referenced in #467, my apache is running under www-data and I have chmod -R www-data:www-data grav

Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("mkdir(): Permission denied") in "modular/showcase.html.twig" at line 3."

Stacktrace:
#38 Twig_Error_Runtime in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:396
#37 Grav\Common\Page\Page:content in <#unknown>:0
#36 Whoops\Exception\ErrorException in /var/www/grav/vendor/gregwar/cache/Gregwar/Cache/Cache.php:151
#35 Whoops\Run:handleError in <#unknown>:0
#34 mkdir in /var/www/grav/vendor/gregwar/cache/Gregwar/Cache/Cache.php:151
#33 Gregwar\Cache\Cache:getCacheFile in /var/www/grav/vendor/gregwar/cache/Gregwar/Cache/Cache.php:290
#32 Gregwar\Cache\Cache:getOrCreate in /var/www/grav/vendor/gregwar/cache/Gregwar/Cache/Cache.php:318
#31 Gregwar\Cache\Cache:getOrCreateFile in /var/www/grav/system/src/Grav/Common/Page/Medium/ImageFile.php:85
#30 Grav\Common\Page\Medium\ImageFile:cacheFile in /var/www/grav/system/src/Grav/Common/Page/Medium/ImageMedium.php:502
#29 Grav\Common\Page\Medium\ImageMedium:saveImage in /var/www/grav/system/src/Grav/Common/Page/Medium/ImageMedium.php:138
#28 Grav\Common\Page\Medium\ImageMedium:url in <#unknown>:0
#27 call_user_func_array in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:598
#26 Twig_Template:getAttribute in /var/www/grav/vendor/twig/twig/lib/Twig/Environment.php:403
#25 __TwigTemplate_480272903c18557142d5d985114c2dae35ca1506a7bba55c642b97d4c0460d2f:doDisplay in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:381
#24 Twig_Template:displayWithErrorHandling in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:355
#23 Twig_Template:display in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:366
#22 Twig_Template:render in /var/www/grav/vendor/twig/twig/lib/Twig/Environment.php:347
#21 Twig_Environment:render in /var/www/grav/system/src/Grav/Common/Twig/Twig.php:219
#20 Grav\Common\Twig\Twig:processPage in /var/www/grav/system/src/Grav/Common/Page/Page.php:575
#19 Grav\Common\Page\Page:processTwig in /var/www/grav/system/src/Grav/Common/Page/Page.php:512
#18 Grav\Common\Page\Page:content in <#unknown>:0
#17 call_user_func_array in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:598
#16 Twig_Template:getAttribute in /var/www/grav/vendor/twig/twig/lib/Twig/Environment.php:403
#15 __TwigTemplate_83a86be10006ee3a9459b27a0bc3e210328da8c35b8e37287ef92e7c7a0615bd:block_content in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:167
#14 Twig_Template:displayBlock in /var/www/grav/vendor/twig/twig/lib/Twig/Environment.php:403
#13 __TwigTemplate_d9d3c1d92c5c154af08152a2feee9574fea087d55c90aaaf4e06accae86d9698:block_body in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:167
#12 Twig_Template:displayBlock in /var/www/grav/vendor/twig/twig/lib/Twig/Environment.php:403
#11 __TwigTemplate_d9d3c1d92c5c154af08152a2feee9574fea087d55c90aaaf4e06accae86d9698:doDisplay in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:381
#10 Twig_Template:displayWithErrorHandling in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:355
#9 Twig_Template:display in /var/www/grav/vendor/twig/twig/lib/Twig/Environment.php:403
#8 __TwigTemplate_83a86be10006ee3a9459b27a0bc3e210328da8c35b8e37287ef92e7c7a0615bd:doDisplay in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:381
#7 Twig_Template:displayWithErrorHandling in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:355
#6 Twig_Template:display in /var/www/grav/vendor/twig/twig/lib/Twig/Template.php:366
#5 Twig_Template:render in /var/www/grav/vendor/twig/twig/lib/Twig/Environment.php:347
#4 Twig_Environment:render in /var/www/grav/system/src/Grav/Common/Twig/Twig.php:322
#3 Grav\Common\Twig\Twig:processSite in /var/www/grav/system/src/Grav/Common/Grav.php:157
#2 Grav\Common\Grav:Grav\Common\{closure} in /var/www/grav/vendor/pimple/pimple/src/Pimple/Container.php:113
#1 Pimple\Container:offsetGet in /var/www/grav/system/src/Grav/Common/Grav.php:257
#0 Grav\Common\Grav:process in /var/www/grav/index.php:37
@rhukster
Copy link
Member

This I think is the same issue as i posted about on Twitter and Gitter.im:

Guys fixed a bug that could be causing some your permissions issues..
basically in system/config/system.yaml there’s an option for images: cache_perms: 0755, that needs to be images: cache_perms: ‘0755’ in quotes!
after that you will need to clear cache to remove the badly created cached images
stupid typo, but has big consequences
will throw twig errors if you have image references in your twig too

It's fixed in develop, and I will release an update soon, but this is the only fix in the release.

@rhukster rhukster added the bug label Dec 12, 2015
@tgsoverly
Copy link
Author

I will check manually. Thanks!

On Sat, Dec 12, 2015 at 2:58 PM Andy Miller [email protected]
wrote:

This I think is the same issue as i posted about on Twitter and Gitter.im:

Guys fixed a bug that could be causing some your permissions issues..
basically in system/config/system.yaml there’s an option for images:
cache_perms: 0755, that needs to be images: cache_perms: ‘0755’ in quotes!
after that you will need to clear cache to remove the badly created cached
images
stupid typo, but has big consequences
will throw twig errors if you have image references in your twig too

It's fixed in develop, and I will release an update soon, but this is the
only fix in the release.


Reply to this email directly or view it on GitHub
#520 (comment).

@rhukster
Copy link
Member

Release is out there btw.

@tgsoverly
Copy link
Author

Yup that fixed it. If anyone else has this issue, I had to manual remove some images in the images folder after the upgrade.

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

No branches or pull requests

2 participants