UNRAR and permission denied errors *SOLVED

Get help, report and discuss bugs.
habskilla
Posts: 13
Joined: 29 Oct 2014, 13:50

UNRAR and permission denied errors *SOLVED

Post by habskilla » 01 Feb 2016, 15:27

Running into an issue on larger downloads (+10GB) where the unpack will fail with a permission denied error. But, if I post-process the failed download, it will complete successfully.

From the log:
Sun Jan 31 06:15:27 2016 INFO Unrar: All OK
Sun Jan 31 06:15:27 2016 DETAIL Successfully downloaded xxxxxx.rar [157/157]
Sun Jan 31 06:15:27 2016 DETAIL Downloading xxx.part59.rar [24/45] @ news.frugalusenet.com (news.frugalusenet.com)
Sun Jan 31 06:15:27 2016 DETAIL Joining articles for xxx.rar
Sun Jan 31 06:15:27 2016 ERROR Could not move file Z:\XXX\\xxxx\_unpack\xxx.mkv to Z:\XXX\xxx.mkv: Permission denied
Sun Jan 31 06:15:27 2016 ERROR Unpack for xxx failed

When I post-process the failed download, it has no issue moving the final file to Z:\XXX\xxx.mkv

On smaller downloads to the same directory structure, there are no unpack/move issues.
Last edited by habskilla on 09 Feb 2016, 13:16, edited 1 time in total.

hugbug
Developer & Admin
Posts: 7403
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: UNRAR and permission denied errors

Post by hugbug » 01 Feb 2016, 15:32

That usually means some other program blocks the file. Antivirus, Indexing software, Media library software (Plex, Kodi), etc.
You should configure these other programs to not scan the download directory until download is completed.

habskilla
Posts: 13
Joined: 29 Oct 2014, 13:50

Re: UNRAR and permission denied errors

Post by habskilla » 01 Feb 2016, 18:01

This doesn't feel like that. Only because it completes successfully when I post-process the failed download. One difference I see comparing the logs is that the finaldir is created the first time, but then skipped when it is processed the second time.

hugbug
Developer & Admin
Posts: 7403
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: UNRAR and permission denied errors

Post by hugbug » 01 Feb 2016, 18:39

habskilla wrote:This doesn't feel like that.
Yes, it does. Because of:
habskilla wrote:On smaller downloads to the same directory structure, there are no unpack/move issues.
The bigger download is the higher the chances are that some other program starts scanning or indexing or a similar activity.

Use something like "process explorer" to find out processes accessing the directory (if you don't know what software that could be).

habskilla
Posts: 13
Joined: 29 Oct 2014, 13:50

Re: UNRAR and permission denied errors

Post by habskilla » 01 Feb 2016, 18:49

The final destination is on a NAS so process explorer will not help.

One test I can do is shutdown PLEX and try again.

Thank God for unlimited high speed internet. Downloading this 20 GB file for the 3rd time today :lol:

hugbug
Developer & Admin
Posts: 7403
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: UNRAR and permission denied errors

Post by hugbug » 01 Feb 2016, 18:57

habskilla wrote:The final destination is on a NAS so process explorer will not help.
Why not? It will at least show process of this machine.

NAS complicates the things, sure. In addition to Windows there could be NAS processes blocking the file.

Plex is a good candidate, it's an often cause of such errors.

Related topics:
http://forum.nzbget.net/viewtopic.php?f=3&t=2097
http://forum.nzbget.net/viewtopic.php?f=8&t=2324

habskilla
Posts: 13
Joined: 29 Oct 2014, 13:50

Re: UNRAR and permission denied errors

Post by habskilla » 01 Feb 2016, 19:42

Interesting...
No error. I guess my gut feeling was just heart burn :)

It is still odd, being a convert from SABnabd, this condition never happened using SABnzbd.

A quick search turned up a plex notify PP script. I'll implement it and see if it gets around this issue.

Edit: Before I fart around with that script, I'll try the .plexignore trick:
*_unpack*

hugbug
Developer & Admin
Posts: 7403
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: UNRAR and permission denied errors

Post by hugbug » 01 Feb 2016, 20:21

It's strange if it did work in SAB, were you using the same paths?

habskilla
Posts: 13
Joined: 29 Oct 2014, 13:50

Re: UNRAR and permission denied errors

Post by habskilla » 01 Feb 2016, 23:02

Same paths. Installed NZBGet on the same machine where SAB is/was installed.

Adding a .plexignore file with *_unpack* seems to have worked. Downloaded the file two more times and both times completed successfully.

Thanks for your help.

I really like NZBGet. It works much better than SAB (not putting SAB down). For example, I rate limit NZBGet to 20 MB/s and NZBGet will download steady at that rate. Whereas, SAB was never able to achieve constant rate like NZBGet.

habskilla
Posts: 13
Joined: 29 Oct 2014, 13:50

Re: UNRAR and permission denied errors

Post by habskilla » 02 Feb 2016, 14:05

Argh!
I had a couple of failures last night...

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests