Michael Fillier
Michael Fillier

Reputation: 68

uwsgi: find: `/etc/uwsgi/s-enabled': No such file or directory

I am trying to start uwsgi for the first time and I am getting an error:

sudo service uwsgi start --status-all
* Starting app server(s) uwsgi
dirname: invalid option -- '-'
Try `dirname --help' for more information.
basename: invalid option -- '-'
Try `basename --help' for more information.
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory
find: `/etc/uwsgi/s-enabled': No such file or directory

The only steps I have taken towards installing uwsgi is apt-get install.

Then I created a .ini file for my site in the /etc/uwsgi/apps-available/ directory and a symbiotic link to this .ini file in /etc/uwsgi/apps-enabled/ directory.

I haven't the slightest clue why it is checking in /etc/uwsgi/s-enabled/ directory.

Upvotes: 1

Views: 3255

Answers (1)

leela
leela

Reputation: 565

Check your uwsgi config file, it should probably be

/etc/uwsgi/apps-enabled

this directory holds the uwsgi app's ini files either via symlinks from directory

/etc/uwsgi/apps-available/

or you can have ini files directly here.

example with symlink:

ln -s /etc/uwsgi/apps-available/testApp.ini /etc/uwsgi/apps-enabled/testApp.ini

Installation of uwsgi and it's configuration on ubuntu can be found here

django + uwssgi + nginx on ubuntu

Installation of same on centOS6 can be found here

uwsgi + gevent + flask + nginx + mongodb on centOS6

Upvotes: 2

Related Questions