{"action":"created","issue":{"url":"https://api.github.com/repos/RuudBurger/CouchPotatoServer/issues/5217","labels_url":"https://api.github.com/repos/RuudBurger/CouchPotatoServer/issues/5217/labels{/name}","comments_url":"https://api.github.com/repos/RuudBurger/CouchPotatoServer/issues/5217/comments","events_url":"https://api.github.com/repos/RuudBurger/CouchPotatoServer/issues/5217/events","html_url":"https://github.com/RuudBurger/CouchPotatoServer/issues/5217","id":100968402,"number":5217,"title":"Created folders getting wrong permissions when Renamer is ran","user":{"login":"dfranken","id":13795149,"avatar_url":"https://avatars.githubusercontent.com/u/13795149?v=3","gravatar_id":"","url":"https://api.github.com/users/dfranken","html_url":"https://github.com/dfranken","followers_url":"https://api.github.com/users/dfranken/followers","following_url":"https://api.github.com/users/dfranken/following{/other_user}","gists_url":"https://api.github.com/users/dfranken/gists{/gist_id}","starred_url":"https://api.github.com/users/dfranken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfranken/subscriptions","organizations_url":"https://api.github.com/users/dfranken/orgs","repos_url":"https://api.github.com/users/dfranken/repos","events_url":"https://api.github.com/users/dfranken/events{/privacy}","received_events_url":"https://api.github.com/users/dfranken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T09:12:52Z","updated_at":"2015-08-14T09:12:52Z","closed_at":null,"body":"Hi,\r\n\r\nsometime ago i noticed that the renamer isn't working correctly anymore.\r\nI think this happened after i updated Python to version 2.7.10-14 on my Synology but i'm not 100% sure.\r\n\r\nThe problem is following:\r\n\r\nWhen there is an new movie available in the Download folder, the Renamer notices it and creates an folder accordingly in the Movies directory and tries to copy it.\r\nThough there is an problem; the folder that is created by the Renamer only has an octal value of 1000. Only the Sticky Bit is selected, the rest not. The owner and group are correctly set, only it isn't 0777.\r\n\r\nIn CP setttings -> renamer the CHMOD's for both Folder and File are correctly set...\r\n\r\nWhen i manually set the folder persmissions of the newly created folder to for example 0777, and renamer is run again, the movies correctly moved to it. So it is deffinetly an permission issue.\r\n\r\nHere under you can find a piece of the log when Renamer is ran, and created the folder with incorrect permissions.:\r\n\r\n08-13 12:54:13INFO[tato.core.plugins.renamer] Moving \"/volume1/Downloads/Get Hard 2015 1080p BRRip x264 DTS-JYK/Get Hard 2015 1080p BRRip x264 DTS-JYK.mkv\" to \"/volume1/Movies/Get Hard BR-Rip (2015)/Get Hard.2015.BR-Rip.H264.DTS.JYK.mkv\"\r\n\r\n08-13 12:54:13ERROR[tato.core.plugins.renamer] Couldn't move file \"/volume1/Downloads/Get Hard 2015 1080p BRRip x264 DTS-JYK/Get Hard 2015 1080p BRRip x264 DTS-JYK.mkv\" to \"/volume1/Movies/Get Hard BR-Rip (2015)/Get Hard.2015.BR-Rip.H264.DTS.JYK.mkv\": Traceback (most recent call last):\r\n  File \"/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer.py\", line 824, in moveFile\r\n    shutil.move(old, dest)\r\n  File \"/usr/local/python/lib/python2.7/shutil.py\", line 302, in move\r\n    copy2(src, real_dst)\r\n  File \"/usr/local/python/lib/python2.7/shutil.py\", line 130, in copy2\r\n    copyfile(src, dst)\r\n  File \"/usr/local/python/lib/python2.7/shutil.py\", line 83, in copyfile\r\n    with open(dst, 'wb') as fdst:\r\nIOError: [Errno 13] Permission denied: '/volume1/Movies/Get Hard BR-Rip (2015)/Get Hard.2015.BR-Rip.H264.DTS.JYK.mkv'\r\n\r\n08-13 12:54:13ERROR[tato.core.plugins.renamer] Failed renaming the file \"Get Hard 2015 1080p BRRip x264 DTS-JYK.mkv\" : Traceback (most recent call last):\r\n  File \"/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer.py\", line 620, in scan\r\n    self.moveFile(src, dst, use_default = not is_torrent or self.fileIsAdded(src, group))\r\n  File \"/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer.py\", line 824, in moveFile\r\n    shutil.move(old, dest)\r\n  File \"/usr/local/python/lib/python2.7/shutil.py\", line 302, in move\r\n    copy2(src, real_dst)\r\n  File \"/usr/local/python/lib/python2.7/shutil.py\", line 130, in copy2\r\n    copyfile(src, dst)\r\n  File \"/usr/local/python/lib/python2.7/shutil.py\", line 83, in copyfile\r\n    with open(dst, 'wb') as fdst:\r\nIOError: [Errno 13] Permission denied: '/volume1/Movies/Get Hard BR-Rip (2015)/Get Hard.2015.BR-Rip.H264.DTS.JYK.mkv'\r\n\r\n\r\nHope this helps, if you need more info. please let me know.\r\nOh almost forgot; i'm running the latest update of 11 aug of CP.\r\n\r\nRegards,\r\nDavid"},"comment":{"url":"https://api.github.com/repos/RuudBurger/CouchPotatoServer/issues/comments/131034719","html_url":"https://github.com/RuudBurger/CouchPotatoServer/issues/5217#issuecomment-131034719","issue_url":"https://api.github.com/repos/RuudBurger/CouchPotatoServer/issues/5217","id":131034719,"user":{"login":"CouchPotatoBot","id":9165143,"avatar_url":"https://avatars.githubusercontent.com/u/9165143?v=3","gravatar_id":"","url":"https://api.github.com/users/CouchPotatoBot","html_url":"https://github.com/CouchPotatoBot","followers_url":"https://api.github.com/users/CouchPotatoBot/followers","following_url":"https://api.github.com/users/CouchPotatoBot/following{/other_user}","gists_url":"https://api.github.com/users/CouchPotatoBot/gists{/gist_id}","starred_url":"https://api.github.com/users/CouchPotatoBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CouchPotatoBot/subscriptions","organizations_url":"https://api.github.com/users/CouchPotatoBot/orgs","repos_url":"https://api.github.com/users/CouchPotatoBot/repos","events_url":"https://api.github.com/users/CouchPotatoBot/events{/privacy}","received_events_url":"https://api.github.com/users/CouchPotatoBot/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T09:12:52Z","updated_at":"2015-08-14T09:12:52Z","body":"Thanks for the issue report! Before a real human comes by, please make sure your report has all the below criteria checked\n\n- [ ] Fill in all the dots. They're there for a reason\n- [ ] Post logs, either inline (for smaller logs) or using [Pastebin](http://pastebin.com/)\n- [ ] Post full version information\n\nPlease make sure you also read [contribution guide](https://github.com/RuudBurger/CouchPotatoServer/blob/develop/contributing.md#issues) and followed all the steps. \nMake the title describe your issue. Having \"CP not working\" or \"I get this bug\" for 100 issues, isn't really helpful. My master will close issues if there isn't enough information. On a good day he will tag the issue on close with the reason (like `can't reproduce`), but usually he won't, the lazy asshat.\n\nSometimes my master seems like a grumpy cat and responds with short answers. This isn't (always) because he hates you, but because he's on mobile or busy fixing bugs. If something isn't clear, please let him know. Maybe he can teach me his awesome ways.\n\nThanks!"}}