Could not create file, is due to forward slash in file name

Get help, report and discuss bugs.
porkButter
Posts: 10
Joined: 17 Sep 2015, 12:52

Could not create file, is due to forward slash in file name

Post by porkButter » 17 Sep 2015, 13:46

First of all I love this software, have been running it on Windows for months and it's been a dream. Thank you so much for making this software, and freely available to boot.

The problem I'm having is that if I set the InterDir path to a cifs share, it can't create the .tmp files because of the last forward slash in the file name (ex: 12/1300.out.tmp). Is there any way to change nzbget's behavior for this? Being able to set it to use practically any character other than a forward slash would solve the problem.

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

Re: Could not create file, is due to forward slash in file n

Post by hugbug » 17 Sep 2015, 13:56

Please post the full error message.

porkButter
Posts: 10
Joined: 17 Sep 2015, 12:52

Re: Could not create file, is due to forward slash in file n

Post by porkButter » 17 Sep 2015, 14:19

Could not create file /media/Minerva/Downloads/NZB/Under.the.Dome.S03E08.1080p.HDTV.DD5.1.x264-NTb.#16/1479.out.tmp

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

Re: Could not create file, is due to forward slash in file n

Post by hugbug » 17 Sep 2015, 14:28

Is this the only error in the log?
Does directory "/media/Minerva/Downloads/NZB/Under.the.Dome.S03E08.1080p.HDTV.DD5.1.x264-NTb.#16" exist? If it doesn't - there should be other errors reported.
In any case either the path is not valid or a permissions issue.
Using terminal try creating files in this directory. When doing these tests make sure to run them under the same user account used when running NZBGet.

porkButter
Posts: 10
Joined: 17 Sep 2015, 12:52

Re: Could not create file, is due to forward slash in file n

Post by porkButter » 17 Sep 2015, 14:31

It generates 1000 of those errors and then kills the download.

I figured out it was because of the last forward slash by logging into that linux box as the same user and trying to manually create files with the same name in that same directory.

I was only able to create files following that naming convention by removing the last slash. Lots of other special characters worked, just not slashes.

Pretty sure what's happening is linux thinks you're trying to tell it to switch directories because of that last slash and it's throwing a hissy fit.

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

Re: Could not create file, is due to forward slash in file n

Post by hugbug » 17 Sep 2015, 14:38

porkButter wrote:Pretty sure what's happening
You are wrong. The slash in the path is a usual path separator. The file name is "1479.out.tmp" (not "16/1479.out.tmp") and the directory name is "Under.the.Dome.S03E08.1080p.HDTV.DD5.1.x264-NTb.#16".

Once again:
  • Does directory "/media/Minerva/Downloads/NZB/Under.the.Dome.S03E08.1080p.HDTV.DD5.1.x264-NTb.#16" exist? If it doesn't - there should be other errors reported. Check the log for the very first error message which will probably about failure when creating the directory.
  • Using terminal try creating files in this directory. When doing these tests make sure to run them under the same user account used when running NZBGet.

porkButter
Posts: 10
Joined: 17 Sep 2015, 12:52

Re: Could not create file, is due to forward slash in file n

Post by porkButter » 17 Sep 2015, 14:55

Derp. Gotcha. But no, it's not creating any of those temp file directories. I can create them manually no problem with that same account.

The directory "/media/Minerva/Downloads/NZB/" does already exist.

The directory "/media/Minerva/Downloads/NZB/Under.the.Dome.S03E08.1080p.HDTV.DD5.1.x264-NTb.#16/", does not exist.

I can create that directory manually, and I can manually create the file "1479.out.tmp" inside of that directory, as the same user that nzbget is running under.

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

Re: Could not create file, is due to forward slash in file n

Post by hugbug » 17 Sep 2015, 15:10

When it starts downloading it tries to create directory (Under.the.Dome.S03E08.1080p.HDTV.DD5.1.x264-NTb.#16) first. If ti fails it should print an error message. Check the log-file if the messages in web-interface are scrolled too far. Or use another (preferably very small) nzb for a test.

porkButter
Posts: 10
Joined: 17 Sep 2015, 12:52

Re: Could not create file, is due to forward slash in file n

Post by porkButter » 17 Sep 2015, 15:27

Tried with a smaller download. Also failed. Still no error messages about the directory. All error messages have been directly about the file.

I cleared out the log and all error messages first, then tried again. The first error message, and all of the rest, is

"Could not create file /media/Minerva/Downloads/NZB/CompTIA.A+.Certification.Exam.Guide..Exams.220-801...220-802..Eighth.Edition.#20/1709.out.tmp"

I can paste the contents of the log file if you want.

If I set the InterDir to ${AppDir}/downloads/intermediate and leave DestDir as /media/Minerva/Downloads/Finished it all works, which is really confusing.

The reason I can't leave it like that is I'm running nzbget on a linux vm which lives on a really tiny partition.

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

Re: Could not create file, is due to forward slash in file n

Post by hugbug » 17 Sep 2015, 17:11

Yes, please post the log-file from the moment nzb-file was added to queue and up to first few messages.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests