nzbgetcom / nzbget

Efficient usenet downloader
https://nzbget.com
GNU General Public License v2.0
355 stars 16 forks source link

QNAP: unable to start daemon "invalid DaemonUsername" #390

Closed OneCDOnly closed 2 months ago

OneCDOnly commented 2 months ago

Is there already an issue for your problem?

NZBGet Version

v24.3-stable

Platform

NAS/Synology/QNAP

Environment

QNAP NAS (TS-251+) running QTS 5.1.8 firmware (QNAP customised Linux kernel)

Current Behavior

When starting daemon:

/etc/init.d/nzbget.sh start

... nothing appears in terminal to advise of errors or otherwise. Daemon process is not running.

Checked nzbget logs, and saw this:

Fri Sep 13 06:29:22 2024    ERROR   Starting daemon failed: invalid DaemonUsername
Fri Sep 13 06:29:22 2024    INFO    Deleting lock file

Expected Behavior

For daemon to start. 🤓

If I alter the nzbget.conf.qnap file and change the value of 'DaemonUsername' from root to admin, I can then start the service.

Steps To Reproduce

No response

Logs

No response

Extra information

In QNAP QTS, admin is the root user (UID=0).

I'm also not sure why this username needs to be specified. If executing process as UID/EUID = 0, it's easy to find current username. Maybe the test should be for UID instead of the literal username?

Thoughts?

luckedea commented 2 months ago

@OneCDOnly 🐛 (working on the fix)

dnzbk commented 2 months ago

@OneCDOnly We have reposted qpkgs v24.3 with a fix - could you try them out?

OneCDOnly commented 2 months ago

@dnzbk and @luckedea fast work! 👍🏽

Fix confirmed, thank you. 🤓