{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/6562","repository_url":"https://api.github.com/repos/bolt/bolt","labels_url":"https://api.github.com/repos/bolt/bolt/issues/6562/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/6562/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/6562/events","html_url":"https://github.com/bolt/bolt/issues/6562","id":220624797,"number":6562,"title":"[BUG] Permissions keep reverting when updating/clearing cache","user":{"login":"svivian","id":207887,"avatar_url":"https://avatars2.githubusercontent.com/u/207887?v=3","gravatar_id":"","url":"https://api.github.com/users/svivian","html_url":"https://github.com/svivian","followers_url":"https://api.github.com/users/svivian/followers","following_url":"https://api.github.com/users/svivian/following{/other_user}","gists_url":"https://api.github.com/users/svivian/gists{/gist_id}","starred_url":"https://api.github.com/users/svivian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svivian/subscriptions","organizations_url":"https://api.github.com/users/svivian/orgs","repos_url":"https://api.github.com/users/svivian/repos","events_url":"https://api.github.com/users/svivian/events{/privacy}","received_events_url":"https://api.github.com/users/svivian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-10T12:11:52Z","updated_at":"2017-04-10T12:19:29Z","closed_at":null,"body":"Just updated Bolt and got permissions errors:\r\n\r\n> Script Bolt\\Composer\\ScriptHandler::installAssets handling the post-update-cmd event terminated with an exception\r\n\r\n> [Bolt\\Filesystem\\Exception\\IOException]  \r\n> Failed to delete file \r\n\r\nI made sure to chmod the whole `app/cache` directory to 777 and then updated again and it worked. Then I ran `php app/nut cache:clear` (worked fine) followed by `php app/nut database:update` which gives an error:\r\n\r\n> [InvalidArgumentException]                                                                       \r\n> The directory \"/Users/scott/Websites/JCSys/jcsysuk/app/cache/development/data\" is not writable.\r\n\r\nThe problem is that when the cache is cleared, the data directory is removed and recreated with different permissions (755) and a different user (`_www`) so now running anything from the command line doesn't work.\r\n\r\n\r\nDetails\r\n-------\r\n\r\n - Relevant Bolt Version: 3.2.10\r\n - Install type: Composer install\r\n - PHP version: 5.5.38\r\n - Used web server: Apache 2.4.25\r\n"},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/292932954","html_url":"https://github.com/bolt/bolt/issues/6562#issuecomment-292932954","issue_url":"https://api.github.com/repos/bolt/bolt/issues/6562","id":292932954,"user":{"login":"bobdenotter","id":1833361,"avatar_url":"https://avatars2.githubusercontent.com/u/1833361?v=3","gravatar_id":"","url":"https://api.github.com/users/bobdenotter","html_url":"https://github.com/bobdenotter","followers_url":"https://api.github.com/users/bobdenotter/followers","following_url":"https://api.github.com/users/bobdenotter/following{/other_user}","gists_url":"https://api.github.com/users/bobdenotter/gists{/gist_id}","starred_url":"https://api.github.com/users/bobdenotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobdenotter/subscriptions","organizations_url":"https://api.github.com/users/bobdenotter/orgs","repos_url":"https://api.github.com/users/bobdenotter/repos","events_url":"https://api.github.com/users/bobdenotter/events{/privacy}","received_events_url":"https://api.github.com/users/bobdenotter/received_events","type":"User","site_admin":false},"created_at":"2017-04-10T12:19:29Z","updated_at":"2017-04-10T12:19:29Z","body":"This is not a bug. I can see how this can be annoying, but it's a consequence of the way your server was set up. \r\n\r\nEither make sure the webuser and \"CLI user\" are the same, or you could try my _**CHMODINATOR**_ 🤘 extension to ease the pain: https://market.bolt.cm/view/bobdenotter/chmodinator"}}
{"actor":{"display_login":"bobdenotter"}}