[uWSGI] Paste problem (wsgi application not found)

Halldór ml at 0ptr.com
Wed Jul 14 16:14:39 CEST 2010


Hi,

I'm getting a strange issue with paste and the uwsgi config file.

The command line works like it's supposed to. But when I put the exact
same settings into a config file the server doesn't load the paste
config.

Using command line:
$ /usr/local/bin/uwsgi --paste config:/home/vio/dev/dev.ini --socket
:9011 -H /home/vio/dev
*** Starting uWSGI 0.9.5.4 (32bit) on [Wed Jul 14 14:08:38 2010] ***
compiled with version: 4.1.2 20080704 (Red Hat 4.1.2-46)
Python version: 2.6.5 (r265:79063, Apr 13 2010, 14:10:50)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
 *** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
allocated 372 bytes (0 KB) for 1 request's buffer.
Setting PythonHome to /home/vio/dev...
binding on TCP port: 9011
your server socket listen backlog is limited to 64 connections
initializing hooks...done.
Loading paste environment: config:/home/vio/dev/dev.ini
application 0 (/) ready
setting default application to 0
spawned uWSGI worker 1 (and the only) (pid: 27445)

Using config file:
$ cat dev/uwsgi.conf
<uwsgi>
	<home>/home/vio/dev</home>
	<socket>:9011</socket>
	<paste>config:/home/vio/dev/dev.ini</paste>
</uwsgi>
$ /usr/local/bin/uwsgi -x dev/uwsgi.conf
[uWSGI] parsing config file dev/uwsgi.conf
*** Starting uWSGI 0.9.5.4 (32bit) on [Wed Jul 14 14:09:54 2010] ***
compiled with version: 4.1.2 20080704 (Red Hat 4.1.2-46)
Python version: 2.6.5 (r265:79063, Apr 13 2010, 14:10:50)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
 *** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
allocated 372 bytes (0 KB) for 1 request's buffer.
Setting PythonHome to /home/vio/dev...
binding on TCP port: 9011
your server socket listen backlog is limited to 64 connections
initializing hooks...done.
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 27557)

Removing the paste tag from the config file and specifying that on the
command line instead (but loading the rest of the config from file)
doens't work either.

Is this a known error or should paste only work as command line variable?


On Wed, Jul 14, 2010 at 12:13 PM, Halldór <ml at 0ptr.com> wrote:
> Hi,
>
> Thanks a lot, using 0.9.5.4 it works.
>
> Maybe the wiki page http://projects.unbit.it/uwsgi/wiki/UsePaste
> should be updated to reflect on that 0.9.5-dev does not work (I
> thought 0.9.5-dev was newer than release 0.9.4)
>
>  2010 at 12:04 PM, Roberto De Ioris <roberto at unbit.it> wrote:
>>
>> Il giorno 14/lug/2010, alle ore 13.40, Halldór ha scritto:
>>
>>> Hi,
>>>
>>> I've got a paste (pylons) application that runs fine on it's own (and
>>> did with gunicorn) but when I try to run it with uwsgi under nginx I
>>> get that uWSGI Error: wsgi application not found.
>>>
>>> The command I use to run uwsgi is:
>>> /usr/local/bin/uwsgi --paste config:dev/dev.ini --socket :9011 -H
>>> /home/me/.virtualenvs/dev
>>>
>>> The nginx block looks like:
>>> location / {
>>>    uwsgi_pass 79.171.98.26:9011;
>>>    include uwsgi_params;
>>> }
>>>
>>>
>>
>>
>> You are running an outdated version of uWSGI.
>> Download a version > 0.9.5.1
>>
>>
>> --
>> Roberto De Ioris
>> http://unbit.it
>> JID: roberto at jabber.unbit.it
>>
>> _______________________________________________
>> uWSGI mailing list
>> uWSGI at lists.unbit.it
>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>>
>
>
>
> --
> kv. Halldór
>


More information about the uWSGI mailing list