Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
-2
rated 0 times [  -2] [ 0]  / answers: 1 / hits: 18958  / 3 Years ago, tue, september 7, 2021, 11:48:38

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.


More From » python

 Answers
6

I just ended up using Phusion Passenger to run my application. It was as simple as configuring and running Nginx.


[#33749] Wednesday, September 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
variark

Total Points: 82
Total Questions: 114
Total Answers: 122

Location: Sweden
Member since Mon, May 8, 2023
1 Year ago
;