Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 626 in cherokee: uwsgi error - wsgi application not found

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Nov 5, 2009, 10:02 AM

Post #1 of 21 (126 views)
Permalink
Issue 626 in cherokee: uwsgi error - wsgi application not found

Status: New
Owner: ----

New issue 626 by funvit: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

What steps will reproduce the problem?
1.new django project
2.it's working on django wizard (flups mode)
3.add uwsgi mode

What is the expected output? What do you see instead?
expected my test output. but get uwsgi error

What version of the product are you using? On what operating system?
0.99.27 ubuntu 9.10

Please provide any additional information below.
i think we need some test utility to check uwsgi (django) config...

p.s.: example of uwsgi run:
root[at]fun-vit-laptop:/var/www-cherokee# /usr/bin/uwsgi -s
/tmp/cherokee-source1.sock -C -x /var/www-cherokee/django1/uwsgi.xml
*** Starting uWSGI on [Thu Nov 5 21:01:09 2009] ***
binding on UNIX socket: /tmp/cherokee-source1.sock
chmod() socket to 666 for lazy and brave users
parsing config file /var/www-cherokee/django1/uwsgi.xml
interpreter for app 0 initialized.
application 0 (/) ready
setting default application to 0
config file parsed.
request/response buffer (4096 bytes) allocated.
spawned uWSGI worker 0 (pid: 918)


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 5, 2009, 10:06 AM

Post #2 of 21 (124 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #1 on issue 626 by funvit: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

may be error due to app id =0 ?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 6, 2009, 5:18 AM

Post #3 of 21 (119 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #2 on issue 626 by tahers: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

Maybe I'm missing the point, but isn't this something to be discussed over
at
http://projects.unbit.it/uwsgi/ ?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 7, 2009, 2:51 PM

Post #4 of 21 (119 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #3 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

@funvit: This blog post try to explain how to set up django on cherokee
using uWSGI.
Could you please confirm that you use the uWSGI wizard and not the django
wizard
which used flup ?

@tahers: shouldn't the so called "django wizard" be renamed to "flup
wizard" ? Since
django could be configured using both of them.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 1:44 AM

Post #5 of 21 (118 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #4 on issue 626 by tahers: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

I agree with Yann. The Cookbook Django entry should also be refactored to
mention the
uWSGI recipe.

@funvit, I believe this is the blog post mentioned by him:
http://yml-blog.blogspot.com/2009/11/how-to-set-up-cherokee-and-uwsgi.html

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 5:21 AM

Post #6 of 21 (118 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #5 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

@tahers: thanks for adding the link that I have forgotten :-) Do you have
any figures
that show how uWSGI performes compare to flup ?


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 5:54 AM

Post #7 of 21 (118 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #6 on issue 626 by funvit: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

@Yann: i'm installed both Django and uWSGI. Django works. uWSGI - not.
@tahers: i think i have some troubles with paths (and with "pythonpath") in
uwsgi.xml
config...

after some random uwsgi.xml edits i have :
...
interpreter for app 1 initialized.
application 1 (/django1) ready

but still uwsgi error in browser...

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 6:13 AM

Post #8 of 21 (118 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #7 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

@funvit : Did you try the command line below that is presented in the
section
troubleshooting in the blog post given earlier ?

/usr/local/bin/uwsgi -s /tmp/cherokee-source1.sock -C -x /[Path to my django
project]/uwsgi.conf


This should give you more information about the issues in your
PYHTONPATH.Then you
should add the missing <pythonpath></pythonpath> directives.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 6:29 AM

Post #9 of 21 (118 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #8 on issue 626 by funvit: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

@Yann: yes. uwsgi not report any problem. i just dont understand what put to
pythonpath...

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 6:44 AM

Post #10 of 21 (118 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #9 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

@funvit: If uWSGI does not report any problem that means you are all set.
Inside the
pythonpath directive you need to put the directory that contains the python
modules
used by your application. In is very similar to the way you would configure
mod_wsgi.
The exact detail will depend of your installation.
I can't help you more if you don't add to this ticket so more information :
cherokee.access, cheorkee.error and the output of this command :

/usr/local/bin/uwsgi -s /tmp/cherokee-source1.sock -C -x /[Path to my django
project]/uwsgi.conf

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 7:15 AM

Post #11 of 21 (118 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #10 on issue 626 by funvit: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

@yann: i made a clean django app with just "hello" output. error logs clean.
ok. tnx for pythonpath tip. a just add path to my site and keep uwsgi
running - and
it`s work!!! just tell me - is i need to run /usr/local/bin/uwsgi... by
myself??? or
cherokee run it?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 8:21 AM

Post #12 of 21 (114 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #11 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

@funvit : cherokee should be able to run it by itself. If he can find it.
Does uWSGI
is in you PATH ? If is is not you should had it.

Then you should make sure that the command in "the information sources" is
working
fine when you type it in a terminal.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 8:39 AM

Post #13 of 21 (114 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #12 on issue 626 by funvit: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

all ok. fnx for answers. uwsgi starts. close this ticket, plz.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 8:44 AM

Post #14 of 21 (114 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #13 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

@funvit: It would be great if you could let us know what was your issue.
This would
enable us to improve the documentation around this particular feature.

I am glad that you have finally solve your issue.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 9:08 AM

Post #15 of 21 (114 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #14 on issue 626 by funvit: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

@yann: my mistake was misunderstood pythonpath var in uwsgi.xml config file
(blog
post hasnt open my eyes).
my uwsgi.xml:
<uwsgi>
<pythonpath>/var/www-cherokee/</pythonpath>
<pythonpath>/var/www-cherokee/django1</pythonpath>
<app mountpoint="/">
<script>/django1/django_wsgi</script>
</app>
</uwsgi>

my app in /var/www-cherokee/django1 folder.

also i'm missed, what to see uwsgi error-output i need to keep runing uwsgi
in
terminal window... when i'm got this, he show me wrong or missed paths...

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 8, 2009, 9:17 AM

Post #16 of 21 (114 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #15 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

Thank you for your feedbacks. I will let someone with the proper right to
close this
ticket.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 9, 2009, 12:51 AM

Post #17 of 21 (113 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Updates:
Status: Invalid

Comment #16 on issue 626 by tahers: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

Everything solved, so I'm closing the issue. I've modified the Django
recipe to
mention uWSGI.

@Yann: I have no figures, and don't think performance will vary a lot
(should be
pretty much the same as SCGI). Features, however, are another matter. It
sure looks
like a more modern approach to me.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 9, 2009, 4:49 AM

Post #18 of 21 (105 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #17 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

@taher: Thank you to share your thought with me on this topic. I have read
the
documentation here : http://www.cherokee-project.com/doc/cookbook_uwsgi.html

And I noticed a typo at the bottom near the bottom of the page it should be
"cherokee" instead of "cheroekee". I would also add a note that the uwsgi
binary
should be added in the path under that name else the wizard will not work.
And since
you are at it you could also add note about the pythonpath directive that
should be
used to defined the PYTHONPATH used by the python interpreter.

Regards,
--yml

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 9, 2009, 5:22 AM

Post #19 of 21 (105 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #18 on issue 626 by tahers: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

@Yann: Would you mind editing it and adding whatever you see fit? My
experience with
uWSGI is limited to what I read on their site when I wrote de Wizard, and
I'm sure
you could improve the quality of the recipe.

The documentation, as you already know, is mostly an abstract of what you
wrote in
the draft of your post that you shared in
http://code.google.com/p/cherokee/issues/detail?id=577, so the merit is
solely yours
anyway :)

Would it be ok? I'd be glad to upload it afterwards.

If it is fine with you, I can send you the source of the document, or you
can get it from
http://svn.cherokee-project.com/browser/cherokee/trunk/doc/cookbook_uwsgi.txt

And also with:
svn cat
svn://svn.cherokee-project.com/cherokee/trunk/doc/cookbook_uwsgi.txt >
cookbook_uwsgi.txt


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 9, 2009, 10:05 AM

Post #20 of 21 (104 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #19 on issue 626 by yann.malet: uwsgi error - wsgi application not
found
http://code.google.com/p/cherokee/issues/detail?id=626

Here it is the modification I was talking about.

Attachments:
cookbook_uwsgi.txt 2.2 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Nov 9, 2009, 10:16 AM

Post #21 of 21 (104 views)
Permalink
Re: Issue 626 in cherokee: uwsgi error - wsgi application not found [In reply to]

Comment #20 on issue 626 by tahers: uwsgi error - wsgi application not found
http://code.google.com/p/cherokee/issues/detail?id=626

Ok. Sent in r3789. Thanks Yann ;)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.