{"action":"created","issue":{"url":"https://api.github.com/repos/evilhero/mylar/issues/954","labels_url":"https://api.github.com/repos/evilhero/mylar/issues/954/labels{/name}","comments_url":"https://api.github.com/repos/evilhero/mylar/issues/954/comments","events_url":"https://api.github.com/repos/evilhero/mylar/issues/954/events","html_url":"https://github.com/evilhero/mylar/issues/954","id":59268960,"number":954,"title":"Post Processing fails when moving a file to a network share ","user":{"login":"BrokenRSA","id":4324684,"avatar_url":"https://avatars.githubusercontent.com/u/4324684?v=3","gravatar_id":"","url":"https://api.github.com/users/BrokenRSA","html_url":"https://github.com/BrokenRSA","followers_url":"https://api.github.com/users/BrokenRSA/followers","following_url":"https://api.github.com/users/BrokenRSA/following{/other_user}","gists_url":"https://api.github.com/users/BrokenRSA/gists{/gist_id}","starred_url":"https://api.github.com/users/BrokenRSA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrokenRSA/subscriptions","organizations_url":"https://api.github.com/users/BrokenRSA/orgs","repos_url":"https://api.github.com/users/BrokenRSA/repos","events_url":"https://api.github.com/users/BrokenRSA/events{/privacy}","received_events_url":"https://api.github.com/users/BrokenRSA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-27T17:40:25Z","updated_at":"2015-02-28T09:17:06Z","closed_at":null,"body":"I'm trying to move my collection to a network drive instead of keeping on the local machine. This drive is mapped via CIFS, running on Debian. \r\n\r\nWhat seems to happen, is that the copying of the file to the network share works fine, but it fails right after that. Doing a bit of research, it seems to be an issue with the shutil.move function when copying across different file system types. Sickbeard however works fine when doing this, so perhaps that is something worth looking into. \r\n\r\nLog extract as follow:\r\n\r\n26-Feb-2015 15:24:38 - INFO    :: Post-Processing : [POST-PROCESSING][DIRECTORY-CHECK] Found comic directory: /media/network/media/Comics/Image/Sex Criminals\r\n26-Feb-2015 15:24:38 - DEBUG   :: Post-Processing : [POST-PROCESSING] Source: /home/osmc/Downloads/complete/comics/Sex.Criminals.010.2015.Digital.Darkness-Empire/Sex Criminals 010 (2015) (Digital) (Darkness-Empire).cbz\r\n26-Feb-2015 15:24:38 - DEBUG   :: Post-Processing : [POST-PROCESSING] Destination: /media/network/media/Comics/Image/Sex Criminals/Sex Criminals 010 (2015) (Digital) (Darkness-Empire).cbz\r\n26-Feb-2015 15:24:38 - DEBUG   :: Post-Processing : [POST-PROCESSING] self.nzb_folder: /home/osmc/Downloads/complete/comics/Sex.Criminals.010.2015.Digital.Darkness-Empire\r\n26-Feb-2015 15:24:38 - DEBUG   :: Post-Processing : [POST-PROCESSING] odir: /home/osmc/Downloads/complete/comics/Sex.Criminals.010.2015.Digital.Darkness-Empire\r\n26-Feb-2015 15:24:38 - DEBUG   :: Post-Processing : [POST-PROCESSING] ofilename:Sex Criminals 010 (2015) (Digital) (Darkness-Empire).cbz\r\n26-Feb-2015 15:24:38 - DEBUG   :: Post-Processing : [POST-PROCESSING] nfilename:Sex Criminals 010 (2015) (Digital) (Darkness-Empire).cbz\r\n26-Feb-2015 15:24:53 - WARNING :: Post-Processing : [POST-PROCESSING] Failed to move directory : /home/osmc/Downloads/complete/comics/Sex.Criminals.010.2015.Digital.Darkness-Empire/Sex Criminals 010 (2015) (Digital) (Darkness-Empire).cbz to /media/network/media/Comics/Image/Sex Criminals/Sex Criminals 010 (2015) (Digital) (Darkness-Empire).cbz - check directory and manually re-run\r\n26-Feb-2015 15:24:53 - WARNING :: Post-Processing : [POST-PROCESSING] Post-Processing ABORTED"},"comment":{"url":"https://api.github.com/repos/evilhero/mylar/issues/comments/76518415","html_url":"https://github.com/evilhero/mylar/issues/954#issuecomment-76518415","issue_url":"https://api.github.com/repos/evilhero/mylar/issues/954","id":76518415,"user":{"login":"evilhero","id":909424,"avatar_url":"https://avatars.githubusercontent.com/u/909424?v=3","gravatar_id":"","url":"https://api.github.com/users/evilhero","html_url":"https://github.com/evilhero","followers_url":"https://api.github.com/users/evilhero/followers","following_url":"https://api.github.com/users/evilhero/following{/other_user}","gists_url":"https://api.github.com/users/evilhero/gists{/gist_id}","starred_url":"https://api.github.com/users/evilhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilhero/subscriptions","organizations_url":"https://api.github.com/users/evilhero/orgs","repos_url":"https://api.github.com/users/evilhero/repos","events_url":"https://api.github.com/users/evilhero/events{/privacy}","received_events_url":"https://api.github.com/users/evilhero/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T09:17:06Z","updated_at":"2015-02-28T09:17:06Z","body":"Ok, so it's not a problem with Mylar per-se, but an underlying problem with the NTFS and mv functionality at an OS level (mylar uses the shutil.move which uses the os.rename function from my understanding).\r\n\r\nThere's not much I can do from the Mylar aspect of it, since it's occurring outside of mylar usage as well - aside from changing the operation from a mv to a cp, which 'might' help things.\r\n\r\nBut you have a couple of options: you can set the uid/gid mount options to the user mylar is running under or specify the noperms mount option."}}