n00bie seeking help with nzbget installation on centos 7

Get help, report and discuss bugs.
Post Reply
asanchez0768
Posts: 2
Joined: 24 May 2019, 21:17

n00bie seeking help with nzbget installation on centos 7

Post by asanchez0768 » 27 May 2019, 18:07

Hi, i'm here asking (and maybe begging) someone to help me with my installation of nzbget.

i'm new to the usenet world and before i want to start my subscriptions i want to get my nzbget working properly and i've been trying to figure out the installation.

i've followed the instructions on https://nzbget.net/installation-on-linux

i'm only able to access http://myip:6789 only if <nzbget-directory>/nzbget -s is opened in my terminal

if i check my service status it comes up with this:

Code: Select all

[root@localhost ~]# systemctl status nzbget.service
● nzbget.service - NZBGet service
   Loaded: loaded (/etc/systemd/system/nzbget.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2019-05-27 13:33:28 EDT; 8min ago
  Process: 1321 ExecStart=/home/aurelie/nzbget/nzbget -s (code=exited, status=217/USER)

May 27 13:33:28 localhost.localdomain systemd[1]: Starting NZBGet service...
May 27 13:33:28 localhost.localdomain systemd[1]: nzbget.service: control pro...
May 27 13:33:28 localhost.localdomain systemd[1]: Failed to start NZBGet serv...
May 27 13:33:28 localhost.localdomain systemd[1]: Unit nzbget.service entered...
May 27 13:33:28 localhost.localdomain systemd[1]: nzbget.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
can someone help me figure out what i am doing wrong or what am i missing please?
thank you kindly for reading, and let me know if you need any other info like seeing my nzbget.service file or anything else

Aurelie

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

Re: n00bie seeking help with nzbget installation on centos 7

Post by hugbug » 27 May 2019, 18:27

You can start nzbget with -D instead of -s to run in background.

I don't use service file and probably can't help but if you post its content maybe others help.

asanchez0768
Posts: 2
Joined: 24 May 2019, 21:17

Re: n00bie seeking help with nzbget installation on centos 7

Post by asanchez0768 » 27 May 2019, 19:08

thank you hugbug.

i've started it with -D, and now my webpage runs without the terminal staying open, thanks for that.

i've changed it in my nzbget.service file also, saved it, and reloaded nzbget through the webpage but when i check the status in my terminal. it's still failing.
here is my nzbget.service file

[Unit]
Description=NZBGet service
Wants=network-online.target
After=network-online.target

[Service]
User=nzbget
Group=nzbget
ExecStart=/home/aurelie/nzbget/nzbget -D
ExecStop=/home/aurelie/nzbget/nzbget -Q
ExecReload=/home/aurelie/nzbget/nzbget -O
Type=forking

[Install]
WantedBy=multi-user.target


i did journalctl -xe in case someone somewhere could see something i don't understand. here are the results:

Code: Select all

[root@localhost ~]# journalctl -xe
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service: control proces
May 27 15:00:40 localhost.localdomain systemd[1]: Failed to start NZBGet service
-- Subject: Unit nzbget.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has failed.
-- 
-- The result is failed.
May 27 15:00:40 localhost.localdomain systemd[1]: Unit nzbget.service entered fa
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service failed.
May 27 15:00:40 localhost.localdomain polkitd[5865]: Unregistered Authentication
May 27 15:01:01 localhost.localdomain systemd[1]: Started Session 459 of user ro
-- Subject: Unit session-459.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-459.scope has finished starting up.
-- 
-- The start-up result is done.
May 27 15:01:01 localhost.localdomain CROND[31591]: (root) CMD (run-parts /etc/c
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31596]: starti
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31603]: finish
lines 1062-1084/1084 (END)
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service: control process exited, code=exited status=217
May 27 15:00:40 localhost.localdomain systemd[1]: Failed to start NZBGet service.
-- Subject: Unit nzbget.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has failed.
-- 
-- The result is failed.
May 27 15:00:40 localhost.localdomain systemd[1]: Unit nzbget.service entered failed state.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service failed.
May 27 15:00:40 localhost.localdomain polkitd[5865]: Unregistered Authentication Agent for unix-process:30805:23317173 (system bus name :1.1356, objec
May 27 15:01:01 localhost.localdomain systemd[1]: Started Session 459 of user root.
-- Subject: Unit session-459.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-459.scope has finished starting up.
-- 
-- The start-up result is done.
May 27 15:01:01 localhost.localdomain CROND[31591]: (root) CMD (run-parts /etc/cron.hourly)
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31596]: starting 0anacron
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31603]: finished 0anacron
~
~
~
~
~
~
~
~
~
~
~
...skipping...
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has begun starting up.
May 27 15:00:40 localhost.localdomain systemd[30811]: Failed at step USER spawning /home/aurelie/nzbget/nzbget: No such process
-- Subject: Process /home/aurelie/nzbget/nzbget could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /home/aurelie/nzbget/nzbget could not be executed and failed.
-- 
-- The error number returned by this process is 3.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service: control process exited, code=exited status=217
May 27 15:00:40 localhost.localdomain systemd[1]: Failed to start NZBGet service.
-- Subject: Unit nzbget.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has failed.
-- 
-- The result is failed.
May 27 15:00:40 localhost.localdomain systemd[1]: Unit nzbget.service entered failed state.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service failed.
May 27 15:00:40 localhost.localdomain polkitd[5865]: Unregistered Authentication Agent for unix-process:30805:23317173 (system bus name :1.1356, objec
May 27 15:01:01 localhost.localdomain systemd[1]: Started Session 459 of user root.
-- Subject: Unit session-459.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-459.scope has finished starting up.
-- 
-- The start-up result is done.
May 27 15:01:01 localhost.localdomain CROND[31591]: (root) CMD (run-parts /etc/cron.hourly)
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31596]: starting 0anacron
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31603]: finished 0anacron
...skipping...
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has begun starting up.
May 27 15:00:40 localhost.localdomain systemd[30811]: Failed at step USER spawning /home/aurelie/nzbget/nzbget: No such process
-- Subject: Process /home/aurelie/nzbget/nzbget could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /home/aurelie/nzbget/nzbget could not be executed and failed.
-- 
-- The error number returned by this process is 3.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service: control process exited, code=exited status=217
May 27 15:00:40 localhost.localdomain systemd[1]: Failed to start NZBGet service.
-- Subject: Unit nzbget.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has failed.
-- 
-- The result is failed.
May 27 15:00:40 localhost.localdomain systemd[1]: Unit nzbget.service entered failed state.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service failed.
May 27 15:00:40 localhost.localdomain polkitd[5865]: Unregistered Authentication Agent for unix-process:30805:23317173 (system bus name :1.1356, objec
May 27 15:01:01 localhost.localdomain systemd[1]: Started Session 459 of user root.
-- Subject: Unit session-459.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-459.scope has finished starting up.
-- 
-- The start-up result is done.
May 27 15:01:01 localhost.localdomain CROND[31591]: (root) CMD (run-parts /etc/cron.hourly)
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31596]: starting 0anacron
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31603]: finished 0anacron
...skipping...
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has begun starting up.
May 27 15:00:40 localhost.localdomain systemd[30811]: Failed at step USER spawning /home/aurelie/nzbget/nzbget: No such process
-- Subject: Process /home/aurelie/nzbget/nzbget could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /home/aurelie/nzbget/nzbget could not be executed and failed.
-- 
-- The error number returned by this process is 3.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service: control process exited, code=exited status=217
May 27 15:00:40 localhost.localdomain systemd[1]: Failed to start NZBGet service.
-- Subject: Unit nzbget.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has failed.
-- 
-- The result is failed.
May 27 15:00:40 localhost.localdomain systemd[1]: Unit nzbget.service entered failed state.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service failed.
May 27 15:00:40 localhost.localdomain polkitd[5865]: Unregistered Authentication Agent for unix-process:30805:23317173 (system bus name :1.1356, objec
May 27 15:01:01 localhost.localdomain systemd[1]: Started Session 459 of user root.
-- Subject: Unit session-459.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-459.scope has finished starting up.
-- 
-- The start-up result is done.
May 27 15:01:01 localhost.localdomain CROND[31591]: (root) CMD (run-parts /etc/cron.hourly)
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31596]: starting 0anacron
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31603]: finished 0anacron
...skipping...
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has begun starting up.
May 27 15:00:40 localhost.localdomain systemd[30811]: Failed at step USER spawning /home/aurelie/nzbget/nzbget: No such process
-- Subject: Process /home/aurelie/nzbget/nzbget could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /home/aurelie/nzbget/nzbget could not be executed and failed.
-- 
-- The error number returned by this process is 3.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service: control process exited, code=exited status=217
May 27 15:00:40 localhost.localdomain systemd[1]: Failed to start NZBGet service.
-- Subject: Unit nzbget.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has failed.
-- 
-- The result is failed.
May 27 15:00:40 localhost.localdomain systemd[1]: Unit nzbget.service entered failed state.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service failed.
May 27 15:00:40 localhost.localdomain polkitd[5865]: Unregistered Authentication Agent for unix-process:30805:23317173 (system bus name :1.1356, objec
May 27 15:01:01 localhost.localdomain systemd[1]: Started Session 459 of user root.
-- Subject: Unit session-459.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-459.scope has finished starting up.
-- 
-- The start-up result is done.
May 27 15:01:01 localhost.localdomain CROND[31591]: (root) CMD (run-parts /etc/cron.hourly)
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31596]: starting 0anacron
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31603]: finished 0anacron
...skipping...
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has begun starting up.
May 27 15:00:40 localhost.localdomain systemd[30811]: Failed at step USER spawning /home/aurelie/nzbget/nzbget: No such process
-- Subject: Process /home/aurelie/nzbget/nzbget could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /home/aurelie/nzbget/nzbget could not be executed and failed.
-- 
-- The error number returned by this process is 3.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service: control process exited, code=exited status=217
May 27 15:00:40 localhost.localdomain systemd[1]: Failed to start NZBGet service.
-- Subject: Unit nzbget.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nzbget.service has failed.
-- 
-- The result is failed.
May 27 15:00:40 localhost.localdomain systemd[1]: Unit nzbget.service entered failed state.
May 27 15:00:40 localhost.localdomain systemd[1]: nzbget.service failed.
May 27 15:00:40 localhost.localdomain polkitd[5865]: Unregistered Authentication Agent for unix-process:30805:23317173 (system bus name :1.1356, objec
May 27 15:01:01 localhost.localdomain systemd[1]: Started Session 459 of user root.
-- Subject: Unit session-459.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-459.scope has finished starting up.
-- 
-- The start-up result is done.
May 27 15:01:01 localhost.localdomain CROND[31591]: (root) CMD (run-parts /etc/cron.hourly)
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31596]: starting 0anacron
May 27 15:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[31603]: finished 0anacron
lines 1051-1084/1084 (END)

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

Re: n00bie seeking help with nzbget installation on centos 7

Post by hugbug » 27 May 2019, 20:04

The service starts it as user "nzbget". Test from a terminal (nzbget -s) if you can start it properly with that user account.

You can also add output redirecting (> mylog.text) to service start command to capture error output into a file. Also for troubleshooting it's better to use "nzbget -s" to capture even more output because with "-D" there is no console output after forking.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests