Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638560 - net-nntp/sabnzbd systemd sabnzbd_at.service does not start due to invalid user/group
Summary: net-nntp/sabnzbd systemd sabnzbd_at.service does not start due to invalid use...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-23 11:57 UTC by Michael Crawford (ali3nx)
Modified: 2018-02-12 19:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Crawford (ali3nx) 2017-11-23 11:57:48 UTC
Default systemd service file consistently fails to execute due to invalid user and group.

User=%I
Group=%I

is causing service execution failure.

Nov 23 04:44:54 illusion systemd[24207]: sabnzbd@illusion.service: Failed to determine user credentials: No such process
-- Subject: Process /usr/share/sabnzbd/SABnzbd.py could not be executed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/share/sabnzbd/SABnzbd.py could not be executed and failed.
--
-- The error number returned by this process is 3.
Nov 23 04:44:54 illusion systemd[1]: sabnzbd@illusion.service: Main process exited, code=exited, status=217/USER
Nov 23 04:44:54 illusion systemd[1]: sabnzbd@illusion.service: Unit entered failed state.
Nov 23 04:44:54 illusion systemd[1]: sabnzbd@illusion.service: Failed with result 'exit-code'.


[Unit]
Description=SABnzbd binary newsreader

[Service]
ExecStart=/usr/share/sabnzbd/SABnzbd.py --logging 1 --browser 0
User=%I
Group=%I

[Install]
WantedBy=multi-user.target


This example below does work 

[Unit]
Description=SABnzbd binary newsreader

[Service]
ExecStart=/usr/share/sabnzbd/SABnzbd.py --logging 1 --browser 0
User=sabnzbd
Group=sabnzbd

[Install]
WantedBy=multi-user.target


Nov 23 04:48:58 illusion systemd[1]: Reloading.
Nov 23 04:48:58 illusion systemd[1]: Configuration file /usr/lib/systemd/system/sabnzbd@.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
Nov 23 04:49:04 illusion systemd[1]: Started SABnzbd binary newsreader.
-- Subject: Unit sabnzbd@illusion.service has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sabnzbd@illusion.service has finished starting up.
--
-- The start-up result is done.
Comment 1 Justin Bronder (RETIRED) gentoo-dev 2017-11-26 19:35:45 UTC
commit eccfe4fbb1ec9a8c735e81a7decdec939510148c
Author: Justin Bronder <jsbronder@gentoo.org>
Date:   Sun Nov 26 14:26:43 2017 -0500

    net-nntp/sabnzbd: fix sabnzbd service
    
    Thanks to Mike Crawford for the report and fix.  #638560.
    
    Package-Manager: Portage-2.3.13, Repoman-2.3.3