Oh, i'm sorry. I'm usually adiviced in contrary. Let's try again:
My uwsgi.xml:
1. <uwsgi>
2. <pythonpath>/home/italomaia/projects/</pythonpath>
3. <pythonpath>/home/italomaia/projects/maia/</pythonpath>
4. <app mountpoint="/">
5. <script>django_wsgi</script>
6. </app>
7. </uwsgi>
My django_wsgi.py:
1. # -*- coding:utf-8 -*-
2.
3. import os, sys
4. sys.path.append(os.path.abspath(os.path.dirname(__file__)))
5. os.environ['DJANGO_SETTINGS_MODULE'] = 'maia.settings'
6.
7. import django.core.handlers.wsgi
8. application = django.core.handlers.wsgi.WSGIHandler()
And my nasty nasty error message:
1. {'type': "error", 'time': "13/09/2010 09:23:18.412",
2. 'title': "epoll_ctl: ep_fd 9, fd 3: 'Bad file descriptor'",
3. 'code': "fdpoll-epoll.c:140", 'error': "80",
4. 'description': "The issue seems to be related to your system.",
5. 'version': "1.0.8", 'compilation_date': "Aug 11 2010 22:23:20",
6. 'configure_args': " '--includedir=${prefix}/include'
7. '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
8. '--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
9. '--disable-dependency-tracking' '--host=x86_64-linux-gnu'
10. '--build=x86_64-linux-gnu' '--enable-os-string=Ubuntu'
11. '--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
12. '--infodir=/usr/share/info' '--sysconfdir=/etc'
13. '--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
14. '--enable-pthread' 'build_alias=x86_64-linux-gnu'
15. 'host_alias=x86_64-linux-gnu' 'CFLAGS=-Wall -g -O2'
16. 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS='
17. '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
18. '--infodir=${prefix}/share/info'
'--libexecdir=${prefix}/lib/cherokee'
19. '--disable-maintainer-mode' '--disable-dependency-tracking'
20. '--host=x86_64-linux-gnu' '--build=x86_64-linux-gnu'
21. '--enable-os-string=Ubuntu' '--prefix=/usr' '--localstatedir=/var'
22. '--mandir=/usr/share/man' '--infodir=/usr/share/info'
23. '--sysconfdir=/etc' '--docdir=/usr/share/doc/cherokee-doc'
24. '--with-wwwroot=/var/www' '--enable-pthread'
25. 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu'
26. 'CFLAGS=-Wall -g -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions'
27. 'CPPFLAGS='", 'backtrace': ""}
Basically, from that error, i took this message: 'Bad file descriptor'
which, does not tell me which file is "Bad". Probably uwsgi.xml, but
uwsgi.xml looks ok.
Robert, is this what you meant by "perfectly valid xml files are rejected"?
2010/9/13 Alvaro Lopez Ortega <[email protected]>
> Hello there,
>
> Please, whenever possible try to include all the relevant information in
> the mail - instead of submitting it to paste services. It is much easier to
> read; besides, the information will be indexed by search engines when the
> mailing list archive is crawled. That will help people to find information
> about the problem in the future.
>
> Thanks,
>
>
> On 13/09/2010, at 07:37, Italo Maia wrote:
>
> > Had a lot of progress today guys! Thanks to some nginx+uwsgi config
> reading and tips you guys gave, i narrowed my problem to this bug log that,
> at last, is not a importError: http://pastebin.com/6Ft1kCcR
> >
> > I think i'm almost there! My uwsgl.xml looks like this:
> http://pastebin.com/nqZ9VfBg (i believe this is how it should look like!)
> and my django_wsgi.py looks like: http://pastebin.com/tPhE8z4u
> >
> > Settings --pythonpath and --home in interpreter made the importerrors go
> away =D Now just that weird log error to deal with. Ideas?
> >
> > 2010/9/12 Roberto De Ioris <[email protected]>
> >
> > > This doesn't seem to work. It returns an import error: ImportError: No
> > > module named WSGIHandler()
> > >
> >
> > Are you sure it is a 0.9.6.1 uWSGI version ?
>
> --
> Octality
> http://www.octality.com/
>
>
--
"A arrogância é a arma dos fracos."
===========================
Italo Moreira Campelo Maia
Graduado em Ciência da Computação - UECE
Desenvolvedor WEB e Desktop (Java, Python, Lua)
Coordenador do Pug-CE
-----------------------------------------------------
http://www.italomaia.com/
http://twitter.com/italomaia/
http://eusouolobomau.blogspot.com/
-----------------------------------------------------
turtle linux 910 - http://tiny.cc/blogturtle910
===========================
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee