Bugzilla – Bug 1082002
uwsgi: service fails to start because hard-coded user wwwrun does not exist
Last modified: 2021-02-08 10:45:08 UTC
Scenario: I want to run some python application behind a reverse proxy. For that I install the following packages: nginx, uwsgi-python3, uwsgi Problem: If you try to start uwsgi by its service-file (systemctl start uwsgi) the startup fails: "Process: 4794 ExecStartPre=/usr/bin/install -d -o wwwrun -g www -m 0755 /run/uwsgi (code=exited, status=1/FAILURE)" After trying to execute the install command on my own I get a message that the user wwwrun does not exist - indeed, this user never got installed. Also the group www does not exist. The install command is hard-coded in /usr/lib/systemd/system/uwsgi.service as ExecStartPre. Starting uwsgi by using the "ExecStart" command works just fine. Expected behavior: uwsgi does not depend on apache (I guess that's where wwwrun:www comes from) at all. The service should also be usable without these users available (nginx provides e.g. nginx:nginx).
This is fixed in server:http/uwsgi now and should find it's way into Tumbleweed soon. Thanks for the report.
This is an autogenerated message for OBS integration: This bug (1082002) was mentioned in https://build.opensuse.org/request/show/787782 15.1 / uwsgi
openSUSE-RU-2020:0423-1: An update that has three recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1082002,1090695,1156199 CVE References: Sources used: openSUSE Leap 15.1 (src): uwsgi-2.0.18-lp151.3.3.1
openSUSE-RU-2020:0472-1: An update that has three recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1082002,1090695,1156199 CVE References: Sources used: openSUSE Backports SLE-15-SP1 (src): uwsgi-2.0.18-bp151.4.3.6