Damjan Georgievski | 30 Jul 15:38 2015

tracing php app execution

Is it possible to trace the execution of a PHP webapp?

owncloud is returning me an HTTP 500 error but it doesn't log
anything, and I want to find out where it does that.

what are my debug options?


Francesco Amelio | 28 Jul 11:03 2015

Problem compiling Python as plugin

​Dear All,
I'm trying to compile ​uwsgi as core and then add on top the plugins for Python 2.7 and Python 3.4 in order to make them work together under the same emperor.

I'm using Ubuntu 14.04 LTS (Linux XXXX 3.14.32-xxxx-grs-ipv6-64 #1 SMP Sat Feb 7 11:35:27 CET 2015 x86_64 x86_64 x86_64 GNU/Linux) with the two Python versions compiled manually with the following configure command:

For Python 2.7.10
./configure --prefix=/opt/python2.7

For Python 3.4.0
./configure --prefix=/opt/python3.4

​Using uWSGI version

I first build the uWSGI core with the following command:
/opt/python2.7/bin/python uwsgiconfig.py --build core

then I build the Python plugins:
PYTHON=/opt/python2.7/bin/python ./uwsgi --build-plugin "plugins/python python27"

and I get the following error:

*** uWSGI building and linking plugin from plugins/python ***
[gcc -pthread] python27_plugin.so
/usr/bin/ld: /opt/python2.7/lib/python2.7/config/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/opt/python2.7/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
*** unable to build python27 plugin ***

The same happpens with the other command:
/opt/python2.7/bin/python uwsgiconfig.py --plugin plugins/python
using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/4.8/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include']
*** uWSGI building and linking plugin plugins/python ***
[gcc -pthread] ./python_plugin.so
/usr/bin/ld: /opt/python2.7/lib/python2.7/config/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/opt/python2.7/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
*** unable to build python plugin ***

While it's working with Python 3.4
PYTHON=/opt/python3.4/bin/python3 ./uwsgi --build-plugin "plugins/python python34"
*** uWSGI building and linking plugin from plugins/python ***
[gcc -pthread] python34_plugin.so
build time: 3 seconds
*** python34 plugin built and available in python34_plugin.so ***

​Do you have any idea why I get this error? Am I missing some configuration parameter before the  Python compilation?​

​Kind regards

uWSGI mailing list
jean-pierre bouquillon | 25 Jul 19:52 2015

uWSGI Apache-2.4.10 Django

Je suis nouveau sur cette liste
Je débute avec Django
je suis retraité
Je n'arrive pas a faire fonctionner Django avec uWSGI sur Apache-2.4.10 
avec SSL https (Debian Jessie)
tout marche bien en http
les certificats ne sont pas reconnus
disposeriez vous, svp, d'un script "uwsgi.ini" qui marche avec SSL ?
merci pour votre aide
uWSGI mailing list
uWSGI <at> lists.unbit.it
Mel Boyce | 24 Jul 13:49 2015

Path-based routing and HTTP subscription

I'm running multi-app nodes behind some subscription servers and need to
support path based routing. I understand that the first element of the
path can be specified in the subscription key once 2.1 is released
(mointpoints), but is there something I can do before then? Can the
subscription server use routing?


Mel Boyce
Federico Bruni | 23 Jul 18:47 2015

deploying a paste application (Allura)

Hi all

I'm trying to deploy for the first time an application with uwsgi.
The "Hello World!" example was successful :-)
Now I'm having problems with the real application I want to deploy (on 
my local machine first). It's quite urgent because it's a bug tracker 
for an open source project which is moving from Google Code and I have 
7 days left to make it work. I hope that you can help me and bare my 

There is probably something wrong in the way I call uwsgi, because the 
application cannot find the jinja2 template.

Everything runs within a virtualenv.
I tried these two commands:

uwsgi --ini-paste development.ini

uwsgi --paste config:/home/fede/www/allura-git/Allura/production.ini 
--http-socket :8080 -H /home/fede/.virtualenvs/allura

Both produce the same error.

And this is the [uwsgi] section in my .ini file:

socket =
protocol = http
virtualenv = /home/fede/.virtualenvs/allura
chdir = /home/fede/www/allura-git/Allura
master = true
stats =

which is basically this one:

http protocol is not recommended, right? But it's the only one working 
in conjunction with nginx.

Thanks in advance
Thiago Farina | 23 Jul 16:30 2015

Fwd: permissions issue


I'm new to uwsgi, so forgive me if this question was already answered.

I tried to find the answer on Google, but it didn't help me much.

After rebooting my server, uwsgi is unable to write the socket file
into /var/run.

$ uwsgi --ini uwsgi.ini
$ cat /tmp/uwsgi-projectname.log
thunder lock: disabled (you can enable it with --thunder-lock)
bind(): Permission denied [core/socket.c line 230]

My uwsgi.ini is like as follow (modified):

daemonize = /tmp/uwsgi-projectname.log
pidfile = /tmp/uwsgi-projectname.pid
chdir = /path/to/project
processes = 2 # number of cores on machine
max-requests = 5000
chmod-socket = 666
master = True
vacuum = True

projectname.py is a Flask application.

What is the way to fix this permission issue in a persistent way? As
you can see  I don't now much about Linux permissions and how to deal
with them. :(



Thiago Farina
Mel Boyce | 21 Jul 11:38 2015


I see that there is an empty page in the docs for SPNEGO - is this
something that's being worked on? I'm being tortured by having to run
Windows/Apache boxes for auth :/


Mel Boyce
Roberto De Ioris | 19 Jul 09:55 2015


Hi, an emergency release fixing an HTTPS resource leak (spotted by André
Cruz) is available


If you use the uWSGI https router you should upgrade to avoid excessive
file descriptors and memory allocation.


Roberto De Ioris
uWSGI mailing list
uWSGI <at> lists.unbit.it
Hao Wu | 18 Jul 00:13 2015

emperor_mongodb plugin, mongodb 3.0 with cpp legacy driver got Segmentation Fault


 I upgrade mongodb 3.0 and recompile the cpp driver (latest legacy branch)  and uWSGI ( latest master)  today. 

The build is successful, but uWSGI got Segmentation Fault.

Just curious anyone is using mongdb 3.0 with the emperor_mongodb and get it work correctly? Thanks in advance.


uWSGI mailing list
Nate Coraor | 15 Jul 17:39 2015

Application startup log buffering/truncation with master logging


I've found that enabling any option (touch-reopen, log-maxsize, or just log-master) that enables master logging causes a significant change in the way that uWSGI handles application startup logs. Instead of line buffering, the startup log is fully buffered and appears to be truncated at 32KB. log-master-bufsize can increase this limit up to 64KB but does not seem to go higher - and my reading on log-max-bufsize suggests it's only supposed to be the tunable parameter for the size of a single message anyway. Is the worker end of the log pipe buffering output from the application and sending it as a single message?

The application I work with is large and loads a huge number of components, and as such, the startup log is very large, and unfortunately, unless I disable master logging, almost all of this is lost.

I've created a very simple example to reproduce the truncation:

uWSGI mailing list
Jerry OELoo | 9 Jul 04:56 2015

How to keep database connection in app whole lifetime

I am using uWSGI + Flask to provide web API.
In my web api, it will store some data into database.
So I want to keep my database connection in whole Application lifetime.
From docs http://flask.pocoo.org/docs/0.10/tutorial/dbcon/
It suggests create connection in  before_request(),and release in
after_request(), but as these two functions will called in each
request, as my understand, it will connect/close database connection
at each request. if so, It is still not keep database connection, I
want to keep database connection when uWSGI start, and close database
connection when uWSGI stop.
Is there any way that can meet my request, and How to?



Rejoice,I Desire!