You are not logged in.

#1 2022-02-01 20:54:17

cyberchaser1
Member
Registered: 2022-02-01
Posts: 5

Errors with NZBGet configuration

Hi there
My NZBGet interface is running. But getting some error messages.
At present, issues are...
1. I'm getting error message like Could not create file /home/me/Downloads/NZBGet/tmp/readurl-1.tmp. screenshot
I found 2 similar threads...  see Q.no.1 of https://www.reddit.com/r/usenet/comment … formation/ & https://www.reddit.com/r/usenet/comment … rch_linux/
2. After a reload of the interface, I'm getting errors like nzbget.conf(46): Invalid value for
option "NzbDir" (/home/me/Downloads/NZBGet/nzb): could not read
information for directory /home/me/Downloads/NZBGet/nzb: errno 13,
screenshot
Here 1 similar thread https://bbs.archlinux.org/viewtopic.php … 3#p1889553
3. Other directories created by default in /home except, dst i.e. destination directory & nzbget.log, nzbget.lock files.

I followed arch wiki https://wiki.archlinux.org/title/NZBGet.

Any help is appreciated. Thank you so much.

Last edited by cyberchaser1 (2022-02-06 08:34:37)

Offline

#2 2022-02-05 15:48:28

cyberchaser1
Member
Registered: 2022-02-01
Posts: 5

Re: Errors with NZBGet configuration

Is there anything wrong with my post ?

Offline

#3 2022-02-05 18:04:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,692

Re: Errors with NZBGet configuration

Nope.  Looks fine.
I've never heard of NZBGet, so I cannot be of much help. I checked the bug tracker, and there are no reports against it.
Again, I have never seen it, but if you run it from the command line, are there any messages output that may be of use?

By the way, I appreciate your approach to asking for feedback -- much better than a simple bump.   Another thing you do is try to provide more information, or what you have learned since your first post.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2022-02-05 19:18:42

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Errors with NZBGet configuration

Well, information about the setup seems a little lacking and some of the information is buried in images even though it's just textual error messages and commands you ran in Konsole. Following a page on the wiki almost always means choosing one out of several options and filling in details, so you'd need to be more specific.

The first reddit link doesn't seem too relevant. The errors likely indicate permission issues. This is mentioned in both of the other threads and at least the Arch BBS one should've given you clues about how to check permissions (and, in post #6, what to pay extra attention to) if you didn't know that yet. If it's not enough to solve it, it should at least help you gather more relevant info to post here.

It would actually be easier to simply run nzbget as "me" (the redacted username). Then I would also put the config in /home/me/.config/nzbget (and even for a system service, I wonder why the wiki uses /var/lib instead of /etc). If you want to run it as the "nzbget" user as in the wiki, presumably so nzbget can't touch the rest of /home/me, you really have to make sure this user can at least access the Downloads/NZBGet subdirectory.

Offline

#5 2022-02-06 04:22:24

cyberchaser1
Member
Registered: 2022-02-01
Posts: 5

Re: Errors with NZBGet configuration

ewaller wrote:

Again, I have never seen it, but if you run it from the command line, are there any messages output that may be of use?
.

Hi
Thanks for the reply, it was very supportive. I admit I should have given more info. Sorry for that.
I got no error outputs on the Konsole.
btw, commands I ran (following the arch wiki)..

1.sudo mkdir /var/lib/nzbget
2.sudo mkdir /var/lib/nzbget/.nzbget
3.sudo cp /usr/share/nzbget/nzbget.conf /var/lib/nzbget/.nzbget
4.kate /var/lib/nzbget/.nzbget/nzbget.conf
5.sudo useradd nzbget
6.sudo chown -R nzbget:nzbget /var/lib/nzbget
7.sudo chmod -R 750 /var/lib/nzbget
8.sudo nzbget -c /var/lib/nzbget/.nzbget/nzbget.conf -D 

It added a user 'nzbget'  account (as it should be) on my login prompt/screen. But during the user creation, I never assigned a passcode to the user 'nzbget', instead i'm logged in as my own user. my current nzbget config: https://pastebin.com/ts72UwFH
Later, I changed the permissions with..

sudo chown -R nzbget:me /home/me/Downloads/NZBGet 

so that I can access it. But, errors persisting.
My current permissions...

ls -l /home/me/Downloads/NZBGet                                                                                      ✔ 
total 12
drwxr-xr-x 2 nzbget me 4096 Jan 28 19:52 nzb
drwxr-xr-x 2 nzbget me 4096 Jan 28 19:52 queue
drwxr-xr-x 2 nzbget me 4096 Jan 28 19:52 tmp 

Pls let me know if any info needed.

Last edited by cyberchaser1 (2022-02-07 05:31:39)

Offline

#6 2022-02-06 08:06:32

cyberchaser1
Member
Registered: 2022-02-01
Posts: 5

Re: Errors with NZBGet configuration

Hi
Thanks for the reply. I admit I should have given more info. Sorry for that.

Raynman wrote:

It would actually be easier to simply run nzbget as "me" (the redacted username). Then I would also put the config in /home/me/.config/nzbget (and even for a system service, I wonder why the wiki uses /var/lib instead of /etc). If you want to run it as the "nzbget" user as in the wiki, presumably so nzbget can't touch the rest of /home/me, you really have to make sure this user can at least access the Downloads/NZBGet subdirectory.

Commands I ran (following the arch wiki)..

1.sudo mkdir /var/lib/nzbget
2.sudo mkdir /var/lib/nzbget/.nzbget
3.sudo cp /usr/share/nzbget/nzbget.conf /var/lib/nzbget/.nzbget
4.kate /var/lib/nzbget/.nzbget/nzbget.conf
5.sudo useradd nzbget
6.sudo chown -R nzbget:nzbget /var/lib/nzbget
7.sudo chmod -R 750 /var/lib/nzbget
8.sudo nzbget -c /var/lib/nzbget/.nzbget/nzbget.conf -D 

It added a user 'nzbget' account (as it should be) on my login prompt/screen. But during the user creation, I never assigned a passcode to the user 'nzbget', instead i'm logged in as my own user. my current nzbget config: https://pastebin.com/ts72UwFH
Later, I changed the permissions (which initially owned(u+g) by 'root') with..

sudo chown -R nzbget:me /home/me/Downloads/NZBGet 

so that I can access it. But, errors persisting.
My current permissions...

ls -l /home/me/Downloads/NZBGet                                                                                      ✔
total 12
drwxr-xr-x 2 nzbget me 4096 Jan 28 19:52 nzb
drwxr-xr-x 2 nzbget me 4096 Jan 28 19:52 queue
drwxr-xr-x 2 nzbget me 4096 Jan 28 19:52 tmp 

I tried & changed the permissions in all possible ways but the problem remained.
Should I login as 'nzbget' user ?

Pls tell me what to do. Pls let me know if you need any info.

Last edited by cyberchaser1 (2022-02-07 05:32:13)

Offline

#7 2022-03-18 08:00:01

cyberchaser1
Member
Registered: 2022-02-01
Posts: 5

Re: Errors with NZBGet configuration

The issue got resolved.
  Solutions:
A. When Running nzbget as Regular user:
@Raynman mentioned "I wonder why the wiki uses /var/lib instead of /etc). If you want to run it as the "nzbget" user as in the wiki, presumably so nzbget can't touch the rest of /home/me,"
This gave necessary indications to understand where did I mistake. I created user 'nzbget' without /home, shell access & login passcode. 'nzbget' user account was created but was not accessible.
Since /var/lib/nzbget owned by nzbget, one must have to login the nzbget account & edit nzbget.conf file as directed in arch wiki & sudo would not be needed for that. No need to change the default downloads directory in config.
Then run the daemon, no sudo privilege needed for that when logged in as nzbget user. Though I'm wondering why the wiki suggests running it with root privilege.

1.$sudo mkdir -p /var/lib/nzbget/.nzbget
2.$sudo cp /usr/share/nzbget/nzbget.conf /var/lib/nzbget/.nzbget
3.$sudo useradd -m nzbget
4.$sudo passwd nzbget
5.$sudo chown -R nzbget:nzbget /var/lib/nzbget
6.$sudo chmod -R 750 /var/lib/nzbget
7. Log into nzbget account (or $su nzbget)
8.$kate /var/lib/nzbget/.nzbget/nzbget.conf (or $nano /var/lib/nzbget/.nzbget/nzbget.conf)
9.$nzbget -c /var/lib/nzbget/.nzbget/nzbget.conf -D 

B. I also tested Running nzbget as System user (this is the most convenient method):
Though running nzbget as system user, one should make a directory separately under /home else change the attributes of /home/your_username (because by default, the attributes of user's home directory are drwx------); otherwise there would be permission issues. https://bbs.archlinux.org/viewtopic.php … 2#p1889912
Remove "# 775 for dirs - 664 for files" part from UMask value otherwise would get error.

1.$sudo pacman -S nzbget
2.$sudo mkdir -p /var/lib/nzbget/.nzbget
3.$sudo cp /usr/share/nzbget.conf /var/lib/nzbget/.nzbget
4.$sudo useradd -rU -s /usr/bin/nologin nzbget
5.$sudo usermod -aG nzbget your_username
6.$sudo mkdir /home/NZBGet
7.$sudo chown -R nzbget:nzbget /home/NZBGet
8.$sudo chmod -R 775 /home/NZBGet
9.$sudo nano /var/lib/nzbget/.nzbget/nzbget.conf
10.$sudo -u nzbget /usr/bin/nzbget -c /var/lib/nzbget/.nzbget/nzbget.conf -D 

No error reported. Thanks to all contributors for their supports & inputs.
Hope, This will be useful for newbies.

Last edited by cyberchaser1 (2022-03-18 11:01:46)

Offline

Board footer

Powered by FluxBB