Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to deploy a python app to my Ubuntu 12.04.1 VPS running Nginx / uWSGI. I've setup my server following this guide. When I restart uWSGI I get this message:

nickd@my-vps:~$ sudo /etc/init.d/uwsgi restart
[sudo] password for nickd:
* Restarting app server(s) uwsgi
[uWSGI] getting INI configuration from /usr/share/uwsgi/conf/default.ini
[uWSGI] parsing config file /etc/uwsgi/apps-enabled/application.net.xml
open("./python_plugin.so"): No such file or directory [core/utils.c line 4700]
!!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
Tue Dec 11 15:18:06 2012 - [WARNING] option "app" is deprecated: use the more advanced "mount" option

My application.net.xml:

<uwsgi>
    <plugin>python</plugin>
    <socket>/run/uwsgi/app/application.net/application.net.socket</socket>
    <pythonpath>/var/www/apps/application/</pythonpath>
    <app mountpoint="/">
        <script>wsgi_configuration_module</script>
    </app>
    <master/>
    <processes>4</processes>
    <harakiri>60</harakiri>
    <reload-mercy>8</reload-mercy>
    <cpu-affinity>1</cpu-affinity>
    <stats>/tmp/stats.socket</stats>
    <max-requests>2000</max-requests>
    <limit-as>512</limit-as>
    <reload-on-as>256</reload-on-as>
    <reload-on-rss>192</reload-on-rss>
    <no-orphans/>
    <vacuum/>
</uwsgi>

My INI config is default.

Any help getting uWSGI to load the python plugin would be appreciated.

share|improve this question

1 Answer 1

You need to have the plugin installed.

sudo apt-get install uwsgi-plugin-python3
share|improve this answer

Your Answer

 
discard

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.