You are not logged in.

#1 2019-02-27 21:17:46

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

[SOLVED] nzbget - no web interface

I'm trying to follow along with the arch wiki for nzbget installation. Needless to say it installed just fine with pacman.

The portion of the instructions regarding chown to set permissons does not work because the user and group  nzbget does not exit. The logical side of me says I should probably create the user and group, but the instructions do no say to do so, and I don't recall having to do this in other distributions to get the application working.

I configured the nzbget.conf file to set up my paths and copied the config file to ~/.nzbget    This was after failing with the instructions in the Arch WIki and running nzbget -s from commandline.

Running the command does bring up the ncurses display, but if I go to   http://localhost:6789 in the browser, I get nothing.

I am not sure where to begin troubleshooting since the application seems to at least load, just not in the browser. I will configure my servers, etc, in the config file and see if I can at least get it fully running in console by monitoring watched folders, but I sure would love to get that web gui working, just like old times.

I realize I have not provided a whole lot of details here, but since I an not getting any error message outside of when I try to run the chown command, i am not sure what else to do.

Thanks,

Last edited by myk.robinson (2019-03-02 19:42:00)

Offline

#2 2019-02-27 23:36:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] nzbget - no web interface

Did you install nzbget-systemd?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-02-27 23:39:16

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

Trilby wrote:

Did you install nzbget-systemd?

thanks for the response. I did not, since i is from an AUR. I know that one "can" install these things, but seems most strict Archer-ers will advise to stay away from AUR if you want to keep a system clean.

That said, if this is necessary, I can install it. The guide suggested that nzbget-sysmted was optionalm though, so I did not install it. Is that portion required for the web server?

Offline

#4 2019-02-28 01:04:36

loqs
Member
Registered: 2014-03-06
Posts: 19,062

Re: [SOLVED] nzbget - no web interface

No it is not required.  After you started nzbget from the console what is the output of

lsof -i -a -p $(pidof nzbget) #this will only work if one instance of nzbget is active

Offline

#5 2019-02-28 01:29:12

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

loqs wrote:

No it is not required.  After you started nzbget from the console what is the output of

lsof -i -a -p $(pidof nzbget) #this will only work if one instance of nzbget is active
nzbget  2130 mykrobinson    4u  IPv4  31621      0t0  TCP *:radg (LISTEN)

In this case, I did not rung nzbget with sudo.. I just did

nzbget -s

I have the config file at ~/.nzbget   and the paths for downloads, etc, are all in subfolders in my home directory. I realize those things dont affect the web server at all, just adding more info.

Offline

#6 2019-02-28 01:30:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] nzbget - no web interface

So did you read the big NOTE box at the very top of the section about running nzbget as a different user?

wiki wrote:

Note: nzbget-systemdAUR and nzbget-gitAUR already provide the nzbget user and user group.

If you did not install either of those packages, then you will need to create the user/group yourself.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2019-02-28 01:48:42

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

Trilby wrote:

So did you read the big NOTE box at the very top of the section about running nzbget as a different user?

wiki wrote:

Note: nzbget-systemdAUR and nzbget-gitAUR already provide the nzbget user and user group.

If you did not install either of those packages, then you will need to create the user/group yourself.

I saw that but got the same results when I had the config file in a different location and ran nzbget as root using sudo to run the app.

Offline

#8 2019-02-28 01:51:46

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

I may just need to bite the bullet and install from AUR, or find a wiki on adding the group and user

Offline

#9 2019-02-28 01:58:04

loqs
Member
Registered: 2014-03-06
Posts: 19,062

Re: [SOLVED] nzbget - no web interface

Offline

#10 2019-02-28 13:56:45

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

Well, after following the wiki to the letter and installing the systemd files as well, confirming the user/group items, etc, I get the same result no matter what. No clue what else to do, other than try sabnzbd and see if that works.

Offline

#11 2019-02-28 15:30:49

loqs
Member
Registered: 2014-03-06
Posts: 19,062

Re: [SOLVED] nzbget - no web interface

https://bbs.archlinux.org/viewtopic.php?id=57855
What is the status of the service?  What is in the journal for the service?  What directory are you intending to use in the current configuration?
What is the output of stat for that directory?  What is the output of

curl http://localhost:6789

Offline

#12 2019-02-28 16:21:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] nzbget - no web interface

I can run it even as my UID fine, the installation was effortless.
Please log a complete and exact I/O of what you do.

Offline

#13 2019-02-28 18:04:01

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

to all:

thanks for trying to help me out here. I was able to get sabnzbd running with no issues at all, but i would still like to get nzbget running, if for no other reason than to learn what I may have done wrong or what i am missing.

I wiped all the config files and purged nzbget, then documented the process of installation and configuration.

Here's a pastebin of console output from commands. Notice the last line, connection is refused on the webserver for some reason:

https://pastebin.com/SwQZWeNw


and here is a copy of my config file

https://pastebin.com/NiEFCvQU

Offline

#14 2019-02-28 18:37:07

loqs
Member
Registered: 2014-03-06
Posts: 19,062

Re: [SOLVED] nzbget - no web interface

I am confused why you downloaded nzbget-systemd if you are not going to use the service file it provides or the user it creates (note it unfortunately also breaks guidelines and will remove the user on package removal and does not user systemd-sysusers)

# nzbget -c /var/lib/nzbget/.nzbget -s

and the /var/lib/nzbget/.nzbget contained

MainDir=~/Downloads

Does /root/Downloads exist and does it have subdirectories dst,  inter,  nzb,  queue and tmp?
Edit:
As a normal user I tried

nzbget -s -c /usr/share/nzbget/nzbget.conf

Then could connect to localhost:6789
~/Downloads did exist but without contents and no contents was created.

Last edited by loqs (2019-02-28 19:01:11)

Offline

#15 2019-03-02 13:47:28

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

loqs wrote:

I am confused why you downloaded nzbget-systemd if you are not going to use the service file it provides or the user it creates (note it unfortunately also breaks guidelines and will remove the user on package removal and does not user systemd-sysusers)

# nzbget -c /var/lib/nzbget/.nzbget -s

and the /var/lib/nzbget/.nzbget contained

MainDir=~/Downloads

Does /root/Downloads exist and does it have subdirectories dst,  inter,  nzb,  queue and tmp?
Edit:
As a normal user I tried

nzbget -s -c /usr/share/nzbget/nzbget.conf

Then could connect to localhost:6789
~/Downloads did exist but without contents and no contents was created.

I tried systemd after it failed without, just to see if by chance that was part of the problem.

Maybe I misunderstood the directions, but I added ~/Downloads with the hopes that it would download the files to my user Downloads folder and the subfolders contained within. The root user does not have the prescribed folders, but that in theory should not have any bearing on whether or not the web interface shows. My best guess is that Connection Refused noted on the last line of my pastebin is what's up with the web interface, but for the life of me I can't figure out WHY.

I am happily using SABNZBD instead, but if you have any further ideas to help me learn from this, I'm all ears.

Thanks

Offline

#16 2019-03-02 13:53:48

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

UPDATE: I may have found the issue. I looked at the log that was generated in my specified directory and saw

ERROR	Binding socket failed for 0.0.0.0: ErrNo 98, Address already in use

I looked up that error and found that the port may already be in use by some other app, although I have no clue what. I will try installing again and edit the config file to use a different port.

How do I find what ports are currently in use and by what application?

Offline

#17 2019-03-02 13:59:08

loqs
Member
Registered: 2014-03-06
Posts: 19,062

Re: [SOLVED] nzbget - no web interface

# ss -a -p '( sport = :6789 )'

Offline

#18 2019-03-02 14:08:20

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

no luck. I stopped the only thing I could think of that may possibly be causing an issue, which was the NoMachine server service, despite it listening on a different port. I also changed the port that nzbget operates on, but I still am unable to connect to the webserver.

Offline

#19 2019-03-02 14:09:52

loqs
Member
Registered: 2014-03-06
Posts: 19,062

Re: [SOLVED] nzbget - no web interface

Does the system use a firewall?
edit:
What is the output of `host localhost`

Last edited by loqs (2019-03-02 14:14:50)

Offline

#20 2019-03-02 14:18:02

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

loqs wrote:
# ss -a -p '( sport = :6789 )'

I saw this after my tinkering. I have changed the listening port back to 6789.



If I run the command you listed without nzbget running, I get no output, suggesting nothing else is using the port.

If I run it after running nzbget -s , here's the output:

[mykrobinson@SAMSUNG-ARCH ~]$ ss -a -p '( sport = :6789 )'
Netid   State    Recv-Q   Send-Q     Local Address:Port     Peer Address:Port   
tcp     LISTEN   0        100              0.0.0.0:radg          0.0.0.0:*       users:(("nzbget",pid=3134,fd=5))

I don't see that same error message about the socket failed, but still no web interface.

Offline

#21 2019-03-02 14:20:04

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

loqs wrote:

Does the system use a firewall?
edit:
What is the output of `host localhost`

[mykrobinson@SAMSUNG-ARCH Documents]$ host localhost
localhost has address 127.0.0.1
Host localhost not found: 3(NXDOMAIN)
Host localhost not found: 3(NXDOMAIN)
[mykrobinson@SAMSUNG-ARCH Documents]$ 

I have not explicitly installed a firewall, so my assumption is that if one is active, it is the default iptables. I am running Gnome. If i search in the gnome applications/searchbox thingy for firewall, all that returns are options to install firewall related apps

Offline

#22 2019-03-02 14:22:48

loqs
Member
Registered: 2014-03-06
Posts: 19,062

Re: [SOLVED] nzbget - no web interface

If you try to connect on 127.0.0.1:6789 is the result the same?

Offline

#23 2019-03-02 14:43:28

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

loqs wrote:

If you try to connect on 127.0.0.1:6789 is the result the same?

holy crap.... that worked... Million dollar question is WHY?

I am now noticing that when I run sabnzbd, I also and hitting 127.0.0.1, but I am realizing I clicked the link in the wiki which took me to that address. I feel silly...

thank you for sticking with me through this, by the way.

How do I get Arch to also respond to the name "localhost"?

Offline

#24 2019-03-02 14:44:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] nzbget - no web interface

post your /etc/hosts, did you disable IPv6?

Offline

#25 2019-03-02 14:46:33

myk.robinson
Member
Registered: 2015-12-26
Posts: 32

Re: [SOLVED] nzbget - no web interface

seth wrote:

post your /etc/hosts, did you disable IPv6?

[mykrobinson@SAMSUNG-ARCH ~]$ cat /etc/hosts
# Static table lookup for hostnames.
# See hosts(5) for details.
::1 localhost SAMSUNG-ARCH

As for IPv6, I don't know Linux well enough to know how to disable it, so I'm going to say no, or at lest not intentionally

Offline

Board footer

Powered by FluxBB