[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-20 Thread Deidre
Can I just say thank you to Gour for his suggestion of setting up a virtual machine and then the same linux as on my VPS. This approach had not occurred to me, but is such a good solution to allowing me to experiment. Peter On Thursday, May 17, 2012 12:06:12 AM UTC+1, Lewis wrote: Guys, I

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-20 Thread Gour
On Sun, 20 May 2012 05:38:35 -0700 (PDT) Deidre deidre...@googlemail.com wrote: Can I just say thank you to Gour for his suggestion of setting up a virtual machine and then the same linux as on my VPS. I'm glad it was helpful to you. :-) This approach had not occurred to me, but is such a

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-19 Thread Gour
On Fri, 18 May 2012 14:53:40 -0700 (PDT) Lewis lewis_le...@hotmail.com wrote: Well, I revised my init.d script to work. Config files do not work at all in any way, shape or form. Just broken utterly. It turns out even loading simple startup variables to the init script does not work.

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-19 Thread Lewis
Thanks to Bruce Wade who suggested going all command line. In an init file with an args variable it is no problem to have a very long list of args. Roberto: I used pip to install v 1.2.3. Would it have included xml support by default? I had previously downloaded the package for xml but

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Lewis
Ran that command line. Doesn't work. Instead of command line arg for processes, I put it in xml. does it matter? On Wednesday, May 16, 2012 4:06:12 PM UTC-7, Lewis wrote: Guys, I have followed the cookbook, the posts here, and a posting at stackoverflow. I am getting error 502 bad

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Roberto De Ioris
Il giorno 18/mag/2012, alle ore 12:42, Lewis ha scritto: Ran that command line. Doesn't work. Instead of command line arg for processes, I put it in xml. does it matter? You mean running ps aux now shows /usr/local/bin/uwsgi -x /etc/uwsgi/uwsgi-conf.xml instead of the (wrong)

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Bruce Wade
Updates: 1) On production I am not using the XML style configuration file as I was having problems with it. Instead I have set the file /etc/default/uwsgi inside this file you need two lines (you can also place other configuration) PYTHONPATH=path_to_web_2_py_project and MODULE=wsgihandler

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Lewis
Bruce: do you only need two lines of uwsgi config? Where do you put the rest of the directives? command line? Does anyone know how to have one uwsgi config file load another (as we do in apache)? I was trying to see an example or find it in uwsgi docs to no avail. On Friday, May 18,

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Roberto De Ioris
Bruce: do you only need two lines of uwsgi config? Where do you put the rest of the directives? command line? Does anyone know how to have one uwsgi config file load another (as we do in apache)? I was trying to see an example or find it in uwsgi docs to no avail.

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Bruce Wade
That is the only two lines I have nothing set on the command line. uwsgi should by default look into that directory. Oh yes there is one other thing you need to change in /etc/init.d/uwsgi (if you have this) the path to uwsgi is /usr/local/bin/uwsgi You also set in that file OWNER NAME DESC

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Lewis
Success! --but it's not clear why!?! I ran uwsgi with the following commmand line (note that I switched to unix sock in my location directive in nginx to match...): uwsgi -s /tmp/web2py.sock --module wsgihandler --pythonpath /var/web2py --daemonize /var/log/uwsgi.log This means that there

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Lewis
Well, I revised my init.d script to work. Config files do not work at all in any way, shape or form. Just broken utterly. It turns out even loading simple startup variables to the init script does not work. Period. It would appear that for some reason the only way uwsgi works is with

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-18 Thread Roberto De Ioris
Well, I revised my init.d script to work. Config files do not work at all in any way, shape or form. Just broken utterly. It turns out even loading simple startup variables to the init script does not work. Period. It would appear that for some reason the only way uwsgi works is with

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-17 Thread pbreit
Is it conceivable that a uwsgi + nginx bundle could be produced making python deployment super easy?

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-17 Thread Massimo Di Pierro
You mean like a virtual machine? or an installation script? On Thursday, 17 May 2012 10:34:57 UTC-5, pbreit wrote: Is it conceivable that a uwsgi + nginx bundle could be produced making python deployment super easy?

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread pbreit
I'd agree that Python deployment remains unnecessarily difficult. I also agree that just running random scripts isn't the best approach. However I think it can be very helpful to run the commands manually that you find in a script. Then you really know what is being performed and can create

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread Gour
On Thu, 17 May 2012 06:22:20 +0200 Roberto De Ioris robe...@unbit.it wrote: If you are able to follow it, then adding a webserver should be a pretty easy task (and yesterday, uWSGI got https support so you do not even need a full webserver for simple deployments) What is considered 'simple

Re: [web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread Roberto De Ioris
On Thu, 17 May 2012 06:22:20 +0200 Roberto De Ioris robe...@unbit.it wrote: If you are able to follow it, then adding a webserver should be a pretty easy task (and yesterday, uWSGI got https support so you do not even need a full webserver for simple deployments) What is considered

[web2py] Re: nginx uwsgi error 502 bad gate way

2012-05-16 Thread Gour
On Thu, 17 May 2012 07:27:53 +0200 Roberto De Ioris robe...@unbit.it wrote: In my mind, less than 20 concurrent connections :) Good. I'm in. ;) For others it is often a matter of money, if i get 10$ for configuring a webserver would you prefer to setup