Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently trying to set up a server on Amazon EC2 (Ubuntu 11.10) using, nginx and uWSGI as shown here:

I've installed everything, and saved all the scripts from that page in the same folder. I then edited the script to point to the location of uwsgi.yaml.

I then ran sh start which worked, then sh start, which resulted in the following error message:

Starting uwsgi: start-stop-daemon: user 'uwsgi' not found

I noticed that the script has a few lines like this, but their purpose was not explained in the blog post:



Do I replace these with 'root', or make a new user purely for uwsgi to run under?

share|improve this question
up vote 1 down vote accepted

Most people would create a uwsgi user, as you correctly guessed, and this is what your scripts assume. If for some reason you don't want to do this, you would run it as user "www-data", but you shouldn't use root. (If you want to use a user other than uwsgi, you should probably only change the "OWNER=uwsgi" line, not the other lines, which only give a name and a description to the service.)

Also note that Ubuntu 11.10 seems to have ready-made packages for uwsgi, so it might be preferable to install them with "apt-get install uwsgi". Most probably these packages will automatically create the uwsgi user when you install them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.