raspberry could not create file

Get help, report and discuss bugs.
mentex
Posts: 15
Joined: 08 Feb 2015, 20:38

raspberry could not create file

Post by mentex » 08 Feb 2015, 20:54

hello,

i have a strange problem with nzbget.

i habe raspbian installed and installed nzbget using this how to:
http://www.htpcguides.com/install-nzbge ... -raspbian/

everythings runs fine as long as i use the internal sd card for maindir.

when i use a location on my nas (fritz nas) i get the following error if i try to download something:

Could not create file /mnt/un/asmedia-ASMT1053-01/downloads/inter/w5izkPXK2ecROHA4EovzPamPU_LcWrS1VoGGBY0bvKXqF6FXnzF.#9/115.out.tmp

it is weird because if i delete the folders insind downloads (inter, nzb,queue,tmp) they were recreated after restart of nzbget.
mapping through fstab:

//192.168.178.1/fritz.nas /mnt/un cifs rw,user=user,pass=pass,uid=0,gid=0,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777,noperm 0 0

what could be the problem?

mentex
Posts: 15
Joined: 08 Feb 2015, 20:38

Re: raspberry could not create file

Post by mentex » 09 Feb 2015, 22:01

anyone an idea?!?

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

Re: raspberry could not create file

Post by hugbug » 09 Feb 2015, 22:40

Can be a wrong setting for option UMask. Set it to 1000 to disable it.

mentex
Posts: 15
Joined: 08 Feb 2015, 20:38

Re: raspberry could not create file

Post by mentex » 10 Feb 2015, 08:47

hey..
thank you for your reply..

it is set to 1000 by default..

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

Re: raspberry could not create file

Post by hugbug » 10 Feb 2015, 08:55

NZBGet doesn't set or change permissions for files or folders.
You should be able to reproduce the problem if you create the folder from terminal. Can you write into it then?

mentex
Posts: 15
Joined: 08 Feb 2015, 20:38

Re: raspberry could not create file

Post by mentex » 10 Feb 2015, 09:04

shoult i create a folder on the sd card or on cifs from Terminal?

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

Re: raspberry could not create file

Post by hugbug » 10 Feb 2015, 09:17

On NAS.

mentex
Posts: 15
Joined: 08 Feb 2015, 20:38

Re: raspberry could not create file

Post by mentex » 10 Feb 2015, 10:01

OK..
my environemt is a little bit difficult:-)

I have a external usb disk on my fritz box. so i this is my nas..
also i have mount via fstab on my raspberry this disk with cifs..

so now i could create the folder with telnet on my fritzbox or i could create the folder from raspberry..

first test created it with telnet directly on my fritzbox and started a download:

error:
.nzbget(61): Invalid value for option "NzbDir" (/mnt/un/asmedia-ASMT1053-01/downloads/nzb/): could not create directory /mnt/un/asmedia-ASMT1053-01/downloads/nzb:

permission looks like this:
drwxr-xr-x 2 root root 4096 Feb 10 10:43 downloads

after changing permission: chmod 777 -R downloads/

Error
Could not create file /mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6/46.out.tmp


second test from raspberry:

folder after create:
drwxrwxrwx 2 root root 0 Feb 10 10:58 downloads

error:
Could not create file /mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#7/60.out.tmp

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

Re: raspberry could not create file

Post by hugbug » 10 Feb 2015, 11:20

The test is to made i terminal on Pi. Do not start NZBGet at all.
The purpose of the test to verify if creating of folders and files in the destination (which you want to use in NZBGet) works from terminal.
  • Create a directory using mkdir with a path as it would be created by NZBGet, for example "/mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6";
  • create a file in the directory, using any command like "echo test > 46.out.tmp" or any other.
If you can create directories and files manually (from terminal) the same should work in NZBGet too. If you can't do that in terminal, you have to fix this first but this has little to do with NZBGet.

mentex
Posts: 15
Joined: 08 Feb 2015, 20:38

Re: raspberry could not create file

Post by mentex » 10 Feb 2015, 11:52

works as i should:

root@raspberrypi:~# mkdir /mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6
root@raspberrypi:~# cd /mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6
root@raspberrypi:/mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6# ll
total 0
root@raspberrypi:/mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6# echo test > 46.out.tmp
root@raspberrypi:/mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6# ll
total 4
-rwxrwxrwx 1 root root 5 Feb 10 12:43 46.out.tmp
root@raspberrypi:/mnt/un/asmedia-ASMT1053-01/downloads/inter/00_ewig_-_indianerehrenwort-de-2015.m3u.#6#

Post Reply

Who is online

Users browsing this forum: No registered users and 64 guests