CP creates read-only folders
Posted: Thu Apr 17, 2014 9:14 pm
I've been messing around with this for a while now. When CP has processed any downloaded movies, it (most of the times) makes the folder unaccessible by setting group ownership to root. Sometimes it won't even finish processing everything. For example, one movie yesterday ended up just having an .nfo file in it. Another one had just the movie itself. None of them were accessible for me before I set group ownership of the folders manually to admin. It's getting pretty frustrating. Sometimes it works, though. I guess the reason for it not moving the files everytime would be due to the fact it creates the folder without permission for even CP itself to enter it? The log usually says something about permission.
I've set file and folder permissions to 0766, just as I read in another thread. Would be nice to have it work properly, as this seem like a really awesome solution
I'd be very thankful for any help!
Code: Select all
04-17 13:09:38 INFO [tato.core.plugins.renamer] Renaming "/volume1/Public/Downloads/movies/Noah.2014.PROPER.DVDRip.XviD-Sup.nfo 0164 - Noah.2014.PROPER.DVDRip.XviD-Sup.nfo yEnc (11).cp(tt1959490)/Noah.2014.PROPER.DVDRip.XviD-Sup/Noah.2014.PROPER.DVDRip.XviD-Sup.avi" to "/volume1/Public/Filmer/Noah (2014)/Noah(2014).avi"
04-17 13:09:56 ERROR [tato.core.plugins.renamer] Successfully moved file "/volume1/Public/Filmer/Noah (2014)/Noah(2014).avi", but something went wrong: Traceback (most recent call last):
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/plugins/renamer/main.py", line 741, in moveFile
shutil.move(old, dest)
File "/usr/local/AppCentral/python/lib/python2.7/shutil.py", line 300, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/volume1/Public/Downloads/movies/Noah.2014.PROPER.DVDRip.XviD-Sup.nfo 0164 - Noah.2014.PROPER.DVDRip.XviD-Sup.nfo yEnc (11).cp(tt1959490)/Noah.2014.PROPER.DVDRip.XviD-Sup/Noah.2014.PROPER.DVDRip.XviD-Sup.avi'
04-17 13:09:56 ERROR [tato.core.plugins.renamer] Couldn't move file "/volume1/Public/Downloads/movies/Noah.2014.PROPER.DVDRip.XviD-Sup.nfo 0164 - Noah.2014.PROPER.DVDRip.XviD-Sup.nfo yEnc (11).cp(tt1959490)/Noah.2014.PROPER.DVDRip.XviD-Sup/Noah.2014.PROPER.DVDRip.XviD-Sup.avi" to "/volume1/Public/Filmer/Noah (2014)/Noah(2014).avi": Traceback (most recent call last):
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/plugins/renamer/main.py", line 745, in moveFile
os.unlink(old)
OSError: [Errno 13] Permission denied: '/volume1/Public/Downloads/movies/Noah.2014.PROPER.DVDRip.XviD-Sup.nfo 0164 - Noah.2014.PROPER.DVDRip.XviD-Sup.nfo yEnc (11).cp(tt1959490)/Noah.2014.PROPER.DVDRip.XviD-Sup/Noah.2014.PROPER.DVDRip.XviD-Sup.avi'
04-17 13:09:56 ERROR [tato.core.plugins.renamer] Failed ranaming the file "Noah.2014.PROPER.DVDRip.XviD-Sup.avi" : Traceback (most recent call last):
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/plugins/renamer/main.py", line 548, in scan
self.moveFile(src, dst, forcemove = not self.downloadIsTorrent(release_download) or self.fileIsAdded(src, group))
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/plugins/renamer/main.py", line 745, in moveFile
os.unlink(old)
OSError: [Errno 13] Permission denied: '/volume1/Public/Downloads/movies/Noah.2014.PROPER.DVDRip.XviD-Sup.nfo 0164 - Noah.2014.PROPER.DVDRip.XviD-Sup.nfo yEnc (11).cp(tt1959490)/Noah.2014.PROPER.DVDRip.XviD-Sup/Noah.2014.PROPER.DVDRip.XviD-Sup.avi'
04-17 13:09:56 ERROR [hpotato.core.plugins.base] Unable writing to file "/volume1/Public/Downloads/movies/Noah.2014.PROPER.DVDRip.XviD-Sup.nfo 0164 - Noah.2014.PROPER.DVDRip.XviD-Sup.nfo yEnc (11).cp(tt1959490)/Noah.2014.PROPER.DVDRip.XviD-Sup/Noah.2014.PROPER.DVDRip.XviD-Sup.failed_rename.ignore": Traceback (most recent call last):
File "/volume1/.@plugins/AppCentral/couchpotato/CouchPotato/couchpotato/core/plugins/base.py", line 109, in createFile
f = open(path, 'w+' if not binary else 'w+b')
IOError: [Errno 13] Permission denied: '/volume1/Public/Downloads/movies/Noah.2014.PROPER.DVDRip.XviD-Sup.nfo 0164 - Noah.2014.PROPER.DVDRip.XviD-Sup.nfo yEnc (11).cp(tt1959490)/Noah.2014.PROPER.DVDRip.XviD-Sup/Noah.2014.PROPER.DVDRip.XviD-Sup.failed_rename.ignore'
I'd be very thankful for any help!