nzbgetcom/nzbget

QNAP: unable to start daemon "invalid DaemonUsername"

Closed this issue ยท 3 comments

Is there already an issue for your problem?

  • I have checked older issues, open and closed

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?

@OneCDOnly ๐Ÿ› (working on the fix)

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

@dnzbk and @luckedea fast work! ๐Ÿ‘๐Ÿฝ

Fix confirmed, thank you. ๐Ÿค“