Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#57359 - [uwsgi] package probably missing a sysusers.d snippet

Attached to Project: Arch Linux
Opened by Radek Podgorny (rpodgorny) - Sunday, 04 February 2018, 01:40 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 10 February 2018, 11:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Bartłomiej Piotrowski (Barthalion)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


currently, uwsgi package comes with a logrotate config file which contains: "su root uwsgi"

this makes logrotate fail with "error: uwsgi:9 unknown group 'uwsgi'" and,m indeed, there is no such group.

probably a systemd sysusers.d snippet that creates the group is missing from the package.

OR! looks like the group is not used anywhere, anyway, so i may be cleaner to just drop the "su" line from logrotate config and leave it to use the default root user and group.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 10 February 2018, 11:24 GMT
Reason for closing:  Fixed
Comment by Radek Podgorny (rpodgorny) - Sunday, 04 February 2018, 01:46 GMT
confirming that commenting out the "su" line from /etc/logrotate.d/uwsgi solved the issue for me
Comment by Eli Schwartz (eschwartz) - Sunday, 04 February 2018, 12:34 GMT Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 05 February 2018, 10:12 GMT
Ok, please test now. It should create the group now. I think that is the cleanest approach here.
Comment by Radek Podgorny (rpodgorny) - Tuesday, 06 February 2018, 01:10 GMT
yeah, seems to be working fine. still, it feels like the uwsgi group is not being used anywhere (the daemon itself does not use it) so it just messes up the system.
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 06 February 2018, 02:28 GMT
True, it's only used for the logrotate currently. I think that's a fairly proper way to do it but I'm open to feedback.