clinton-hall / nzbToMedia

Provides NZB and Torrent postprocessing To CouchPotatoServer, SickBeard/SickRage, HeadPhones, Mylar and Gamez
GNU General Public License v3.0
672 stars 176 forks source link

dev-ech, CP does not have permission to move / rename files now #322

Closed Scoobdriver closed 10 years ago

Scoobdriver commented 10 years ago

Couchpotato does not seem to have permission to move / change files now (Synology)

echel0n commented 10 years ago

Can you pleas post a log of this issue, thanks

Scoobdriver commented 10 years ago

CP logs

04-13 06:50:17 INFO [tato.core.plugins.scanner] Found 1 movies in the folder /volume3/Download/Processing/movies 04-13 06:50:17 INFO [hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/info/tt1747958/, data: [] 04-13 06:50:17 INFO [hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?i=tt1747958, data: [] 04-13 06:50:17 INFO [re.providers.info.omdbapi] Found: Blood Ties (2013) 04-13 06:50:17 INFO [hpotato.core.plugins.base] Opening url: get https://image.tmdb.org/t/p/w154/1Oycmgp89oNgnrh1GrDuwnaaaZw.jpg, data: [] 04-13 06:50:18 INFO [hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/ismovie/tt1747958/, data: [] 04-13 06:50:18 INFO [re.providers.info.omdbapi] Found: Blood Ties (2013) 04-13 06:50:18 INFO [tato.core.plugins.renamer] Removing "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/BLOOD TIES-ETRG.nfo" 04-13 06:50:18 ERROR [tato.core.plugins.renamer] Failed removing /volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/BLOOD TIES-ETRG.nfo: Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer/main.py", line 516, in scan os.remove(src) OSError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/BLOOD TIES-ETRG.nfo' 04-13 06:50:18 ERROR [hpotato.core.plugins.base] Unable writing to file "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_remove.ignore": Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/base.py", line 109, in createFile f = open(path, 'w+' if not binary else 'w+b') IOError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_remove.ignore' 04-13 06:50:18 INFO [tato.core.plugins.renamer] Removing "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Torrent Downloaded From ExtraTorrent.cc.txt" 04-13 06:50:18 ERROR [tato.core.plugins.renamer] Failed removing /volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Torrent Downloaded From ExtraTorrent.cc.txt: Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer/main.py", line 516, in scan os.remove(src) OSError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Torrent Downloaded From ExtraTorrent.cc.txt' 04-13 06:50:18 ERROR [hpotato.core.plugins.base] Unable writing to file "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_remove.ignore": Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/base.py", line 109, in createFile f = open(path, 'w+' if not binary else 'w+b') IOError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_remove.ignore' 04-13 06:50:18 INFO [tato.core.plugins.renamer] Removing "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/ETRG.mp4" 04-13 06:50:18 ERROR [tato.core.plugins.renamer] Failed removing /volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/ETRG.mp4: Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer/main.py", line 516, in scan os.remove(src) OSError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/ETRG.mp4' 04-13 06:50:18 ERROR [hpotato.core.plugins.base] Unable writing to file "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_remove.ignore": Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/base.py", line 109, in createFile f = open(path, 'w+' if not binary else 'w+b') IOError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_remove.ignore' 04-13 06:50:18 INFO [tato.core.plugins.renamer] Renaming "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG]_French.srt" to "/volume3/Movies/Blood Ties (2013)/Blood Ties.srt" 04-13 06:50:18 ERROR [tato.core.plugins.renamer] Successfully moved file "/volume3/Movies/Blood Ties (2013)/Blood Ties.srt", but something went wrong: Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer/main.py", line 741, in moveFile shutil.move(old, dest) File "/usr/local/python/lib/python2.7/shutil.py", line 302, in move os.unlink(src) OSError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG]_French.srt' 04-13 06:50:18 ERROR [tato.core.plugins.renamer] Couldn't move file "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG]_French.srt" to "/volume3/Movies/Blood Ties (2013)/Blood Ties.srt": Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer/main.py", line 745, in moveFile os.unlink(old) OSError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG]_French.srt' 04-13 06:50:18 ERROR [tato.core.plugins.renamer] Failed ranaming the file "Blood Ties[2013] BRRip XViD juggs[ETRG]_French.srt" : Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/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/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/renamer/main.py", line 745, in moveFile os.unlink(old) OSError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG]_French.srt' 04-13 06:50:18 ERROR [hpotato.core.plugins.base] Unable writing to file "/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_rename.ignore": Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver-custom/var/CouchPotatoServer/couchpotato/core/plugins/base.py", line 109, in createFile f = open(path, 'w+' if not binary else 'w+b') IOError: [Errno 13] Permission denied: '/volume3/Download/Processing/movies/Blood Ties[2013] BRRip XViD juggs[ETRG]/Blood Ties[2013] BRRip XViD juggs[ETRG].failed_rename.ignore'

echel0n commented 10 years ago

are you linking ? windows or linux ? couchpotato and download client on same server ?

Scoobdriver commented 10 years ago

Hard linking on Linux OS synology disk station/server. Yes that are on the same box. — Sent from Mailbox for iPhone

On Sun, Apr 13, 2014 at 8:34 PM, echel0n notifications@github.com wrote:

are you linking ? windows or linux ? couchpotato and download client on same server ?

Reply to this email directly or view it on GitHub: https://github.com/clinton-hall/nzbToMedia/issues/322#issuecomment-40317196

echel0n commented 10 years ago

Ok is nzbToMedia ran under the same user that couchpotato is ?

Scoobdriver commented 10 years ago

I guess it's ran under transmission as that's what calls it ? Couch potato has a custom user I think. 

— Sent from Mailbox for iPhone

On Sun, Apr 13, 2014 at 8:48 PM, echel0n notifications@github.com wrote:

Ok is nzbToMedia ran under the same user that couchpotato is ?

Reply to this email directly or view it on GitHub: https://github.com/clinton-hall/nzbToMedia/issues/322#issuecomment-40317561

echel0n commented 10 years ago

if those 2 users don't belong to the same group and that group isn't a group with write access to those files then that will cause this issue

echel0n commented 10 years ago

or the files are being set with permissions only allowing said user to change and others/group restricted to read ... if thats the case I'll check and make sure nzbtomedia isn't performing a chmod

clinton-hall commented 10 years ago

https://couchpota.to/forum/viewtopic.php?f=6&t=1477

Synology default has a different user for every App, and these users are not added to the users group. By default files created by one App cannot be modified by another App.

The guide above explains how to create a common user for each app to get this working.

Scoobdriver commented 10 years ago

Awesome thanks ! Will give this a go ..

echel0n commented 10 years ago

This issue appears resolved so its being closed