You are not logged in.
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
Did you install nzbget-systemd?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
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
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 activeOffline
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 -sI 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
So did you read the big NOTE box at the very top of the section about running nzbget as a different user?
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
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
I may just need to bite the bullet and install from AUR, or find a wiki on adding the group and user
Offline
Offline
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
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:6789Offline
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
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:
and here is a copy of my config file
Offline
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 -sand the /var/lib/nzbget/.nzbget contained
MainDir=~/DownloadsDoes /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.confThen 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
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 -sand the /var/lib/nzbget/.nzbget contained
MainDir=~/DownloadsDoes /root/Downloads exist and does it have subdirectories dst, inter, nzb, queue and tmp?
Edit:
As a normal user I triednzbget -s -c /usr/share/nzbget/nzbget.confThen 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
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 useI 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
# ss -a -p '( sport = :6789 )'Offline
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
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
# 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
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
If you try to connect on 127.0.0.1:6789 is the result the same?
Offline
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
post your /etc/hosts, did you disable IPv6?
Offline
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-ARCHAs 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