uwsgi won't start when no plugins dir is found

Bug #954476 reported by Walter
56
This bug affects 12 people
Affects Status Importance Assigned to Milestone
uwsgi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

== Versions =================================

Ubuntu-Server 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120312)

# dpkg -l | grep uwsgi
ii uwsgi 1.0.3+dfsg-1 fast, self-healing application container server
ii uwsgi-core 1.0.3+dfsg-1 fast, self-healing application container server (core)

== Issue =================================

# /etc/init.d/uwsgi restart
 * Restarting app server(s) uwsgi [fail]

# uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/mysite.ini
[uWSGI] getting INI configuration from /usr/share/uwsgi/conf/default.ini
[uWSGI] getting INI configuration from /etc/uwsgi/apps-enabled/mysite.ini
Tue Mar 13 22:26:25 2012 - opendir(): No such file or directory [uwsgi.c line 471]

# strace -f uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/mysite.ini
...
openat(AT_FDCWD, "/usr/lib/uwsgi/plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

== Solution =================================

# mkdir -p /usr/lib/uwsgi/plugins

# /etc/init.d/uwsgi start
 * Restarting app server(s) uwsgi [OK]

Regards,
Walter Doekes

Walter (wdoekes)
affects: uwsgi → uwsgi (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in uwsgi (Ubuntu):
status: New → Confirmed
Revision history for this message
Jesper (koudelkaa) wrote :

This also affects me on 11.10 server.

Revision history for this message
John (bj7u6139zdyf2a6nz2ly74oec10f2lnela24rsgd389d0elot5a7jz6hawymvsdk8c4sd6srfzh4ilnrb31ygx-4ltf-jjcftv6wldnzq84cskygyvhqqb9qwjfcq0yfnwzcca0ux8ircw2a3om624q2ycdp941uw5474gcdbi2qtcnlii) wrote :

Me too, 11.10 server (uwsgi 0.9.8.1).

When I try to restart uwsgi it fails and in the log file I get (not so helpful until you read the source code)

    opendir(): No such file or directory [uwsgi.c line 297]

Solved with wdoekes solution

    mkdir -p /usr/lib/uwsgi/plugins

I hope this helps others as google wasn't much help to me.

Revision history for this message
Christian Roessner (christian-roessner-net) wrote :

Can confirm. Creating the missing folder solves it for me, too.

Revision history for this message
Marcelo Salhab Brogliato (msbrogli) wrote :

This post in Server Fault helped me: http://serverfault.com/a/454665/96877

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.