Page 1 of 1

CouchPotato Paid App not moving files after download

Posted: Fri Mar 11, 2011 4:16 pm
by thegeebs
CouchPotato fails to create a directory in my Movies share which does exist at /var/hda/files/drives/drive2/Movies/

CouchPotato searched and grabbed a NZB and passed it to a Sabnzbd server. After download Sabnzbd server drops the movie into /var/hda/files/drives/drive1/Downloading/ via SMB. This portion works. What fails is when its moving to the Movies Share.

Code: Select all

IOError: [Errno 2] No such file or directory: u'/var/hda/files/drives/drive2/Movies/True Grit (2010)/True Grit Screener.avi' with open(dst, 'wb') as fdst: File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 127, in copy2 copy2(src, real_dst) File "/usr/lib64/python2.7/shutil.py", line 292, in move shutil.move(old, dest) File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 436, in _move if not _move(old, dest): File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 318, in renameFiles finalDestination = self.renameFiles(movie) File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 91, in doRename self.doRename() File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 47, in run 17:56:22 ERROR [ app.lib.cron.renamer] Traceback (most recent call last): 17:56:22 ERROR [ app.lib.cron.renamer] !!Uncought exception in renamer thread. 17:56:22 INFO [ app.lib.cron.renamer] Moving file "/var/hda/files/drives/drive1/Downloading/Movies/True Grit 2010 SCR XViD IMAGiNE/True Grit 2010 SCR XViD - IMAGiNE.avi" to /var/hda/files/drives/drive2/Movies/True Grit (2010)/True Grit Screener.avi. 17:56:22 INFO [ app.lib.cron.renamer] Quality Old: 0, New 1389. 17:56:22 ERROR [ app.lib.cron.renamer] Failed changing permissions /var/hda/files/drives/drive2/Movies/True Grit (2010) 17:56:22 INFO [ app.lib.cron.renamer] Creating directory /var/hda/files/drives/drive2/Movies/True Grit (2010)
Do I need to chmod something? The Movies folder was created on Amahi 5 and I am running Amahi 6 after fresh install.

Re: CouchPotato Paid App not moving files after download

Posted: Sat Mar 12, 2011 10:45 am
by bigfoot65
I would say that could be the issue....check the ownership and perms on that folder. IT should be 775 for perms and not owned by root.

Re: CouchPotato Paid App not moving files after download

Posted: Sat Mar 12, 2011 1:46 pm
by thegeebs
I used

Code: Select all

chmod -R 775 /var/hda/files/drives/drive2/
Where .../drive2/ is the parent folder of all my shares including Movies, TV, Music, etc.

Hopefully this works :?:

Re: CouchPotato Paid App not moving files after download

Posted: Sat Mar 12, 2011 2:03 pm
by thegeebs
Still not working. Permissions set to '775' and group is 'amahi users' and not root.

Code: Select all

IOError: [Errno 2] No such file or directory: u'/var/hda/files/drives/drive2/Movies/True Grit (2010)/True Grit Screener.avi' with open(dst, 'wb') as fdst: File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 127, in copy2 copy2(src, real_dst) File "/usr/lib64/python2.7/shutil.py", line 292, in move shutil.move(old, dest) File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 436, in _move if not _move(old, dest): File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 318, in renameFiles finalDestination = self.renameFiles(movie) File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 91, in doRename self.doRename() File "/var/hda/web-apps/cpotato/html/app/lib/cron/renamer.py", line 47, in run 16:01:40 ERROR [ app.lib.cron.renamer] Traceback (most recent call last): 16:01:40 ERROR [ app.lib.cron.renamer] !!Uncought exception in renamer thread. 16:01:40 INFO [ app.lib.cron.renamer] Moving file "/var/hda/files/drives/drive1/Downloading/Movies/True Grit 2010 SCR XViD IMAGiNE/True Grit 2010 SCR XViD - IMAGiNE.avi" to /var/hda/files/drives/drive2/Movies/True Grit (2010)/True Grit Screener.avi. 16:01:40 INFO [ app.lib.cron.renamer] Quality Old: 0, New 1389. 16:01:40 ERROR [ app.lib.cron.renamer] Failed changing permissions /var/hda/files/drives/drive2/Movies/True Grit (2010) 16:01:40 INFO [ app.lib.cron.renamer] Creating directory /var/hda/files/drives/drive2/Movies/True Grit (2010) 16:01:40 INFO [ app.lib.cron.renamer] Trying to find a home for: True Grit 2010 SCR XViD - IMAGiNE.avi 16:01:40 INFO [ app.lib.library] Retrieved metainfo: {'common': [{'comment': 'Has audio/video index (4.8 MB)', 'mime type': 'video/x-msvideo', 'image height': 304, 'frame rate': 24.0, 'image width': 720, 'endianness': 'Little endian', 'duration': '1:50:18', 'bit rate': 1800000.0}], 'audio stream': [{'compression rate': 7.3, 'compression': 'mp3', 'sample rate': 44100.0, 'duration': '1:50:18', 'bit rate': 192000.0, 'channel': 2}], 'video stream': [{'image height': 304, 'compression': 'xvid', 'image width': 720, 'bits/pixel': 24, 'duration': '1:50:18', 'frame rate': 24.0}]} 16:01:39 INFO [ app.lib.library] Found movie via MovieQueue. 16:01:38 INFO [ app.lib.cron.yarr] Finished search. 16:01:38 INFO [ app.lib.cron.yarr] Searching for new downloads, for all movies.

Re: CouchPotato Paid App not moving files after download

Posted: Wed Sep 12, 2012 1:32 pm
by caizer
Any fix for this?

I'm having the same issues :-/

Re: CouchPotato Paid App not moving files after download

Posted: Wed Sep 12, 2012 3:49 pm
by bigfoot65
I believe there is a bug report on this one. You can try following guidance there to see if that fixes it.

http://bugs.amahi.org/issues/973

If that is not the issue, then please file a bug report. We will take a look as soon as we can.