{"action":"created","issue":{"url":"https://api.github.com/repos/Exercise/HTMLPurifierBundle/issues/22","repository_url":"https://api.github.com/repos/Exercise/HTMLPurifierBundle","labels_url":"https://api.github.com/repos/Exercise/HTMLPurifierBundle/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Exercise/HTMLPurifierBundle/issues/22/comments","events_url":"https://api.github.com/repos/Exercise/HTMLPurifierBundle/issues/22/events","html_url":"https://github.com/Exercise/HTMLPurifierBundle/issues/22","id":55458721,"number":22,"title":"Permissions issue when clearing cache","user":{"login":"Alsciende","id":391974,"avatar_url":"https://avatars.githubusercontent.com/u/391974?v=3","gravatar_id":"","url":"https://api.github.com/users/Alsciende","html_url":"https://github.com/Alsciende","followers_url":"https://api.github.com/users/Alsciende/followers","following_url":"https://api.github.com/users/Alsciende/following{/other_user}","gists_url":"https://api.github.com/users/Alsciende/gists{/gist_id}","starred_url":"https://api.github.com/users/Alsciende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alsciende/subscriptions","organizations_url":"https://api.github.com/users/Alsciende/orgs","repos_url":"https://api.github.com/users/Alsciende/repos","events_url":"https://api.github.com/users/Alsciende/events{/privacy}","received_events_url":"https://api.github.com/users/Alsciende/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2015-01-26T08:53:34Z","updated_at":"2016-08-23T06:45:24Z","closed_at":null,"body":"Since I installed Exercise/HTMLPurifierBundle, I have an error every time I clear the cache on my Symfony server:\r\n\r\n    [Symfony\\Component\\Filesystem\\Exception\\IOException]\r\n    Failed to remove file \"/var/www/nrdb/app/cache/prod_old/htmlpurifier/URI/4.6.0,8d03c8ec0e84e7feb92afd4c0f1735841b5fdacf,1.ser\".\r\n\r\nAnd indeed, the directory app/cache/prod/htmlpurifier/HTML is owned by www-data with permission 755, so my user cannot delete the files in it. \r\n\r\nI applied the setfacl commands to set up the permissions in app/cache and app/log, but that doesn't seem to do the trick.\r\n\r\n    $ ls -la app/cache/prod\r\n    total 656\r\n    drwxrwxr-x+  11 alsciende www-data   4096 Jan 26 03:43 .\r\n    drwxrwxr-x+   5 www-data  www-data   4096 Jan 26 03:43 ..\r\n    drwxrwxr-x+   2 alsciende www-data   4096 Jan 26 03:45 annotations\r\n    -rw-rw-r--+   1 alsciende www-data 194989 Jan 26 03:43 appProdProjectContainer.php\r\n    -rw-rw-r--+   1 alsciende www-data  70159 Jan 26 03:43 appProdUrlGenerator.php\r\n    -rw-rw-r--+   1 alsciende www-data  79081 Jan 26 03:43 appProdUrlMatcher.php\r\n    drwxrwxr-x+   3 alsciende www-data   4096 Jan 26 03:43 assetic\r\n    -rw-rw-r--+   1 alsciende www-data   4904 Jan 26 03:43 classes.map\r\n    -rw-r--r--+   1 www-data  www-data 189453 Jan 26 03:43 classes.php\r\n    drwxrwxr-x+   3 alsciende www-data   4096 Jan 26 03:42 doctrine\r\n    drwxrwxr-x+   2 www-data  www-data   4096 Jan 26 03:43 fosJsRouting\r\n    drwxrwxr-x+   3 alsciende www-data   4096 Jan 26 03:45 htmlpurifier\r\n    drwxrwxr-x+   4 www-data  www-data   4096 Jan 26 03:43 http_cache\r\n    drwxrwxr-x+   2 alsciende www-data   4096 Jan 26 03:45 sessions\r\n    -rw-r--r--+   1 alsciende www-data  27882 Jan 26 03:43 templates.php\r\n    drwxrwxr-x+   2 www-data  www-data   4096 Jan 26 03:43 translations\r\n    drwxrwxr-x+ 105 alsciende www-data   4096 Jan 26 03:43 twig\r\n    $ ls -la app/cache/prod/htmlpurifier/\r\n    total 24\r\n    drwxrwxr-x+  3 alsciende www-data 4096 Jan 26 03:45 .\r\n    drwxrwxr-x+ 11 alsciende www-data 4096 Jan 26 03:43 ..\r\n    drwxr-xr-x+  2 www-data  www-data 4096 Jan 26 03:45 HTML\r\n"},"comment":{"url":"https://api.github.com/repos/Exercise/HTMLPurifierBundle/issues/comments/241641789","html_url":"https://github.com/Exercise/HTMLPurifierBundle/issues/22#issuecomment-241641789","issue_url":"https://api.github.com/repos/Exercise/HTMLPurifierBundle/issues/22","id":241641789,"user":{"login":"spolischook","id":1978331,"avatar_url":"https://avatars.githubusercontent.com/u/1978331?v=3","gravatar_id":"","url":"https://api.github.com/users/spolischook","html_url":"https://github.com/spolischook","followers_url":"https://api.github.com/users/spolischook/followers","following_url":"https://api.github.com/users/spolischook/following{/other_user}","gists_url":"https://api.github.com/users/spolischook/gists{/gist_id}","starred_url":"https://api.github.com/users/spolischook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spolischook/subscriptions","organizations_url":"https://api.github.com/users/spolischook/orgs","repos_url":"https://api.github.com/users/spolischook/repos","events_url":"https://api.github.com/users/spolischook/events{/privacy}","received_events_url":"https://api.github.com/users/spolischook/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T06:45:24Z","updated_at":"2016-08-23T06:45:24Z","body":"@Richard87 you users must use deploy tools like Ansible, and store cache directory must be shared between deployed versions of application. \r\nI just try to change my php-fpm user and install symfony3 with HTMLPurifierBundle and have the same problem with other cache directories, like Twig. So it's not just problem of HTMLPurifierBundle, it's a common problem with cache in Symfony."}}
{"actor":{"display_login":"spolischook"}}