Bug 1082002 - uwsgi: service fails to start because hard-coded user wwwrun does not exist
uwsgi: service fails to start because hard-coded user wwwrun does not exist
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: James Oakley
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-21 12:36 UTC by Nick Singer
Modified: 2021-02-08 10:45 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Singer 2018-02-21 12:36:02 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).
Comment 1 James Oakley 2018-05-31 01:12:04 UTC
This is fixed in server:http/uwsgi now and should find it's way into Tumbleweed soon. Thanks for the report.
Comment 2 Swamp Workflow Management 2020-03-24 13:00:06 UTC
This is an autogenerated message for OBS integration:
This bug (1082002) was mentioned in
https://build.opensuse.org/request/show/787782 15.1 / uwsgi
Comment 3 Swamp Workflow Management 2020-03-31 10:24:01 UTC
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
Comment 4 Swamp Workflow Management 2020-04-08 16:37:08 UTC
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