[web2py] uWSGI examples page updated for web2py

2010-08-27 Thread Roberto De Ioris
Hi all, we have added a section in our "examples" wiki page for web2py: http://projects.unbit.it/uwsgi/wiki/Example I hope this can be useful -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: uWSGI examples page updated for web2py

2010-08-27 Thread Roberto De Ioris
if the load goes wild, so probably they are reaching some (configurable) limit. If they experienced that on "benchmarking" there is a (old) procedure to follow: http://lists.unbit.it/pipermail/uwsgi/2009-December/000040.html -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: uWSGI examples page updated for web2py

2010-08-30 Thread Roberto De Ioris
> Hi Roberto, > > I can use this setting in version 0.9.5? > > José > Hi, yesterday the 0.9.6 version has been released -- Roberto De Ioris http://unbit.it

Re: [web2py] cherokee problem with fastcgi and uWSGI

2010-09-09 Thread Roberto De Ioris
and restart the uwsgi server. Now go to the cherokee admin and map your resource (probably the default one) to the address of your uwsgi server. I suggest you to use TCP sockets instead of UNIX to avoid permission problems. -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-09 Thread Roberto De Ioris
am ASAP. In the mean time do not use its wizard but simply add a remote source specifying the address of the uWSGI server -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-09 Thread Roberto De Ioris
t to the directory / All of your pythonpath and virtualenv are wrong. In one of the previous post you managed to run flawlessly with the embedded http server. Simply substitute --http with --socket -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread Roberto De Ioris
annoying task. Download the current mercurial tip (it is stable as it will be the 0.9.6.1) and it will automagically manage the SCRIPT_NAME issue. In the mean time i have written an updated cherokee wizard that supports xml,python,wsgi and ini files. -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread Roberto De Ioris
7;ascii' codec can't decode byte 0xc3 in position > 787: ordinal not in range(128) > make: *** [all] Error 1 > > > :(( Can you post the output of gcc -v ? -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread Roberto De Ioris
; redhat-linux > Modelo de hilos: posix > gcc versión 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC) Ok, retry with the latest tip (it was a problem with python3.k compatibility) -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: cherokee problem with fastcgi and uWSGI

2010-09-10 Thread Roberto De Ioris
use this script: http://projects.unbit.it/uwsgi/browser/contrib/upstart/uwsgi.conf you have to customize it for your needs but ALWAYS remember to pass the --uid and --gid options (otherwise uWSGI will run as root) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: nginx with bultin uwsgi module

2010-10-10 Thread Roberto De Ioris
ers for the uwsgi protocol are available even for Cherokee (included in the official distribution), Apache2 (as external module) and lighttpd (external, not very well tested, module) I hope it can be useful -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: remote admin access errors

2010-10-23 Thread Roberto De Ioris
out https and scheme. uWSGI supports setting the scheme in two way, via the (non-standard) UWSGI_SCHEME var or via the standard HTTPS cgi variable. I suggest you to add the UWSGI_SCHEME var to uwsgi_params configuration: UWSGI_SCHEME $scheme; -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: uWSGI examples page updated for web2py

2010-10-25 Thread Roberto De Ioris
could be a huge commodity (he add only 2 lines instead of defining a new file). It is matter of taste, for example i prefer to have a file for every app :) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: edit the book, get a free book

2010-11-19 Thread Roberto De Ioris
there is a list of (updated) example for web2py http://projects.unbit.it/uwsgi/wiki/Example#Web2Py2uWSGI (the links you posted are a bit outdated and over-complex) -- Roberto De Ioris http://unbit.it

Re: [web2py] web2py unavailable during file upload cherokee+ssl+uWSGI+web2py

2011-01-04 Thread Roberto De Ioris
ply add -p to your command line or n to your xml config file. Where n is the number of processes you want to spawn. -- Roberto De Ioris http://unbit.it

Re: [web2py] User accessed site without logging in

2012-07-25 Thread Roberto De Ioris
n-async-mode > You can get the updated stable-branch from here: http://projects.unbit.it/hg/uwsgi-1.2 (the maintainance release will be tomorrow) but generally you will get not advantages in using plain async mode with web2py (probably that's why the bug popped up so late) -- R

Re: [web2py] CPU 210%

2012-04-17 Thread Roberto De Ioris
ntation for sure). In addition to this, a little part of web-related popular libraries are not thread-safe, that is why multithreading is not a "too much popular" paradigm in python-hosting. -- Roberto De Ioris http://unbit.it

Re: [web2py] memory 210% (was Re: CPU 210%)

2012-04-18 Thread Roberto De Ioris
Il giorno 18/apr/2012, alle ore 11:11, Gour ha scritto: > On Wed, 18 Apr 2012 08:54:29 +0200 > "Roberto De Ioris" wrote: > >> By the way, it is pretty strange you found 'threading' support a >> uwsgi-blocker as very few (maybe 3-4, uWSGI included) p

Re: [web2py] CPU 210%

2012-04-18 Thread Roberto De Ioris
gt;>> I've never read anything but good things about uwsgi. Django and >>>>>>>> Flask both promote it. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> Regards, >>>>>>> Bruce Wade >>>>>>> http://ca.linkedin.com/in/brucelwade >>>>>>> http://www.wadecybertech.com >>>>>>> http://www.fittraineronline.com - Fitness Personal Trainers Online >>>>>>> http://www.warplydesigned.com >>>>>>> >>>>>>> >>>>> >>>>> >>>>> -- >>>>> -- >>>>> Regards, >>>>> Bruce Wade >>>>> http://ca.linkedin.com/in/brucelwade >>>>> http://www.wadecybertech.com >>>>> http://www.fittraineronline.com - Fitness Personal Trainers Online >>>>> http://www.warplydesigned.com >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Bruno Rocha >>>> [http://rochacbruno.com.br] >>>> >>>> >>> >>> >>> -- >>> >>> Bruno Rocha >>> [http://rochacbruno.com.br] >>> >>> >> >> >> -- >> -- >> Regards, >> Bruce Wade >> http://ca.linkedin.com/in/brucelwade >> http://www.wadecybertech.com >> http://www.fittraineronline.com - Fitness Personal Trainers Online >> http://www.warplydesigned.com >> >> > > > -- > -- > Regards, > Bruce Wade > http://ca.linkedin.com/in/brucelwade > http://www.wadecybertech.com > http://www.fittraineronline.com - Fitness Personal Trainers Online > http://www.warplydesigned.com > -- Roberto De Ioris http://unbit.it

Re: [web2py] CPU 210%

2012-04-18 Thread Roberto De Ioris
it should), remove --lazy (in that way you will abuse fork() cow). And then remove --enable-threads (even if web2py uses threads in a couple of areas, so i would not remove it) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: post attack

2012-04-22 Thread Roberto De Ioris
<http://www.fittraineronline.com> - >>>> Fitness Personal Trainers Online >>>> http://www.warplydesigned.com >>>> >>>> >>> >>> >>> -- >>> -- >>> Regards, >>> Bruce Wade >>> http://ca.linkedin.com/in/**brucelwade<http://ca.linkedin.com/in/brucelwade> >>> http://www.wadecybertech.com >>> http://www.fittraineronline.**com <http://www.fittraineronline.com> - >>> Fitness Personal Trainers Online >>> http://www.warplydesigned.com >>> >>> > > > -- > -- > Regards, > Bruce Wade > http://ca.linkedin.com/in/brucelwade > http://www.wadecybertech.com > http://www.fittraineronline.com - Fitness Personal Trainers Online > http://www.warplydesigned.com > -- Roberto De Ioris http://unbit.it

Re: [web2py] web2py uWSGI cherokee -- I give up

2012-05-15 Thread Roberto De Ioris
s!!!] and you are ready) or choose a full webserver (you have a lot of choice). But this is a second step... -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: web2py uWSGI cherokee -- I give up

2012-05-16 Thread Roberto De Ioris
> Thanks. The versions I got were in the apt-get repositories for that > version of Ubuntu. > > I hadn't realized Cherokee had been abandoned. not abandoned, it is "on hold" ("or slowed down" in development) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: web2py uWSGI cherokee -- I give up

2012-05-16 Thread Roberto De Ioris
ssets on a dedicated cdn, having a simple http proxy for your app seems to be a reasonable choice. Maybe it is time to add https support... -- Roberto De Ioris http://unbit.it

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

2012-05-16 Thread Roberto De Ioris
ey are using something for free, and helping in something "annoying" like writing docs is always appreciated. -- Roberto De Ioris http://unbit.it

Re: [web2py] Updated slice: nginx and SCGI | Recipe | Web2py Slices - Recipes, Tutorials, Code, Questions

2012-05-16 Thread Roberto De Ioris
> Changes: > - keep-alive support from nginx. Hi Michele, does wsgitools SCGI server really supports keepalive connections ? That would be a kick-ass feature i need to copy for sure :) -- Roberto De Ioris http://unbit.it

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" 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 deploy

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

2012-05-18 Thread Roberto De Ioris
ve been beaten by some "funny" distro choice. -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

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

2012-05-18 Thread Roberto De Ioris
d wsgihandler module and bind to socket 127.0.0.1:9001) Now visit your website with your browser. Does it work ? If it does not work double check if /var/web2py is the correct path of your web2py installation. -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

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

2012-05-18 Thread Roberto De Ioris
; avail. > > http://projects.unbit.it/uwsgi/wiki/ParsingOrder -- Roberto De Ioris http://unbit.it

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

2012-05-18 Thread Roberto De Ioris
is a lot easier than init scripts and Ubuntu will not move to SystemD, so you'd better to invest a bit of time in it). Another important link is that one: http://projects.unbit.it/uwsgi/wiki/ThingsToKnow I think you have all the pieces. -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04

2012-05-29 Thread Roberto De Ioris
ve a sever with nginx+uwsgi+Web2Py and I would like also to configure > hgweb(Mercurial), but I'm not able to configure nginx/uwsgi... > > > no one?? Do you want web2py under /w2p and mercurial under something like /hg for the same domain ? -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04

2012-05-29 Thread Roberto De Ioris
Il giorno 29/mag/2012, alle ore 17:37, orsomannaro ha scritto: > Il 29/05/2012 15:43, Roberto De Ioris ha scritto: > >> Do you want web2py under /w2p and mercurial under something like /hg for the >> same domain ? > > > Yes, perfect!! Create a WSGI modul

Re: [web2py] Re: can't install v 2.3

2013-01-16 Thread Roberto De Ioris
uggest to continue installing it via pip or sources (at least until there will be official debian packages constantly synced) -- Roberto De Ioris http://unbit.it --

Re: [web2py] Passenger WSGI Session

2013-01-28 Thread Roberto De Ioris
uWSGI to work pretty easily on dreamhost (via fastcgi). Would you mind asking them if they want to contact me privately to make some test ? -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To uns

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2013-02-07 Thread Roberto De Ioris
> > Thanks, > > Andre If your app is multithreads based you cannot spawn additional processes (they do not share memory). Just set processes to 1 and threads to a decent value -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed to t

Re: [web2py] hosting on dreamhost and passenger

2013-03-11 Thread Roberto De Ioris
and obviously better performance): https://github.com/unbit/uwsgi-docs/blob/master/tutorials/dreamhost.rst -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and s

[web2py] [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Roberto De Ioris
be compiled on windows (using cygwin), and the example in the quickstart works on windows too (included the https part) Bye -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Roberto De Ioris
uld not experiment problems. -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Roberto De Ioris
o unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Roberto De Ioris http://unbit.it -- --- You received this message because you are s

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-16 Thread Roberto De Ioris
> email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsub

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-16 Thread Roberto De Ioris
n libraries used to compile this .exe. Another approach: You can put all of the required dll (about 10) + the uwsgi.exe + the python environment (site-packages...) + web2py dir in the same directory and you can move to systems without cygwin and python. I suppose you can even make an msi installer.

Re: [web2py] Re: Pythonanywhere down today?

2013-03-21 Thread Roberto De Ioris
> i still can access it both of web2py.com and my own > All fine from both Italy and Germany -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop

Re: [web2py] allowing admin on UWSGI deployment , HTTP Mode

2012-10-05 Thread Roberto De Ioris
; but it ends up to the login page .. WITHOUT Password box , Damn.. > > What to do? >From 1.3 (latest stable) you can use https in uWSGI too: http://projects.unbit.it/uwsgi/wiki/HTTPserver#HTTPSsupportfrom1.3-dev -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it --

Re: [web2py] Re: nginx+uwsgi and ubuntu 12.10

2012-10-23 Thread Roberto De Ioris
WSGI Emperor" start on runlevel [2345] stop on runlevel [!2345] exec uwsgi --emperor /etc/uwsgi --logto /tmp/uwsgi.log 4# start uwsgi-emperor ...now just start dropping uWSGI config files in /etc/uwsgi and your instances will start automatically (check /tmp/uwsgi.log in case of problems) -- Roberto De Ioris http://unbit.it --

Re: [web2py] Re: nginx+uwsgi and ubuntu 12.10

2012-10-23 Thread Roberto De Ioris
ntu. Every time i did some kind of upgrade something screwed up. You cannot really take apache as an example as it is integrated in debian from ages and you will find users blaming at it after an upgrade even in that time. By the way, i cannot help you with debian-based packages as i really do not

Re: [web2py] uwsgi and post-buffering

2012-11-29 Thread Roberto De Ioris
k error to the client (even if the response was correctly generated). For non-legit request i think (hope ?) it is not a problem being rejected by nginx. -- Roberto De Ioris http://unbit.it --

Re: [web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread Roberto De Ioris
's why uWSGI exists and that's why you cannot compare it with gunicorn (different philosophy and different target) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: web2py with Plesk Control Panel ?

2012-01-23 Thread Roberto De Ioris
ed of your progress > Thanks > Peter > > > > On Jan 22, 5:06 am, Bruno Rocha wrote: -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: High memory usage in webfaction

2012-01-25 Thread Roberto De Ioris
> can I rotate log (uwsgi.log) with this command? I don't want the log file > to go on increasing in size log-maxsize = n where n is the maximum size in bytes -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Nginx + uwsgi file download problem

2012-01-29 Thread Roberto De Ioris
b = get_database(request) > query = get_query(request) > if not query: > return None > response.headers['Content-disposition'] = 'attachment; > filename=%s_%s.csv'\ > % tuple(request.vars.query.split('.')[:2]) > r

Re: [web2py] uwsgi configuration: why many lines in /root/var/log/uwsgi-python/web2py log : routing 0 routes 0 ?

2012-02-09 Thread Roberto De Ioris
n only really added in 1.1 (still unreleased) so i really do not know why you have that flag turned on :) -- Roberto De Ioris http://unbit.it

Re: [web2py] uwsgi configuration: why many lines in /root/var/log/uwsgi-python/web2py log : routing 0 routes 0 ?

2012-02-10 Thread Roberto De Ioris
a new instance, you remove it to remove an instance, you touch it to reload an instance. No script, nor funny permission issues (you can choose the directory in which config files are looked up). In addition to this, 0.9.6 is near to end-of-maintainance (june 2012), so upgrading to 1.x would be in general a better choice. -- Roberto De Ioris http://unbit.it

Re: [web2py] nginx/uwsgi setup on Debian

2012-02-24 Thread Roberto De Ioris
et http://projects.unbit.it/downloads/uwsgi-1.0.4.tar.gz tar zxvf uwsgi-1.0.4.tar.gz cd uwsgi-1.0.4 make if all goes well run uWSGI ./uwsgi --http-socket :8080 --chdir --module wsgihandler point your browser to port 8080 on localhost and you should see your app For webfaction substitute :8080 with the assigned port -- Roberto De Ioris http://unbit.it

Re: [web2py] nginx/uwsgi setup on Debian

2012-02-24 Thread Roberto De Ioris
> On 24 February 2012 15:46, Roberto De Ioris wrote: > >> >> This is a quick sequence you can run on debian too: >> >> wget http://projects.unbit.it/downloads/uwsgi-1.0.4.tar.gz >> tar zxvf uwsgi-1.0.4.tar.gz >> cd uwsgi-1.0.4 >> make >> >

Re: [web2py] uWSGI Question

2012-03-06 Thread Roberto De Ioris
y with no effort, try to follow the http-router development (even if you could need something like nginx/haproxy for managing https connections). -- Roberto De Ioris http://unbit.it

Re: [web2py] uWSGI Question

2012-03-06 Thread Roberto De Ioris
SGI alone in the network. -- Roberto De Ioris http://unbit.it

Re: [web2py] Web2py + uWSGI and timeouts!!

2012-03-08 Thread Roberto De Ioris
'uwsgi cores' in the logs. They are referred to threads and async modes. They do not reflect the cpu core in which it is running. -- Roberto De Ioris http://unbit.it

Re: [web2py] Web2py + uWSGI and timeouts!!

2012-03-08 Thread Roberto De Ioris
or waiting for wsgi.input data > > > If you are on chrome + https on cherokee, it will not works. it is a cherokee bug, you can try with latest svn snapshot (iirc it has been fixed there) -- Roberto De Ioris http://unbit.it

Re: [web2py] share data across uwsgi processes

2012-03-15 Thread Roberto De Ioris
thing for certain time, but instead > share data (set/get common data) across my uwsgi processes. > > dict-based: http://projects.unbit.it/uwsgi/wiki/CachingFramework queue-based: http://projects.unbit.it/uwsgi/wiki/QueueFramework raw-memory: http://projects.unbit.it/uwsgi/wiki/SharedArea -- Roberto De Ioris http://unbit.it

[web2py] [ANNOUNCE] uWSGI 1.1

2012-03-17 Thread Roberto De Ioris
Deranek Mike Kuznetsov (sorry if i have missed someone) You can download uWSGI 1.1 from http://projects.unbit.it/downloads/uwsgi-1.1.tar.gz -- Roberto De Ioris http://unbit.it

[web2py] Re: [ANNOUNCE] uWSGI 1.1

2012-03-17 Thread Roberto De Ioris
al patch soon or later. Currently it is only a (slow) work in progress, as (at least for me) having full knowledge of pypy implementation is not easy as the cpython one -- Roberto De Ioris http://unbit.it

Re: [web2py] upload/post of semi-large files

2011-09-05 Thread Roberto De Ioris
ge files > that take about a minute or so to upload?. > > Thanks!, > >Carlos > > Check your nginx error log, you are probably receiving a 413 error (entity too large). By default the limit is 1 mb http://wiki.nginx.org/HttpCoreModule#client_max_body_size -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: uWSGI 0.9.9

2011-09-10 Thread Roberto De Ioris
file ) > Hi, can you post the whole command line ? -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: uWSGI 0.9.9

2011-09-11 Thread Roberto De Ioris
log -t 20 --async 12 --ugreen > --limit-as 36 -r --no-orphans -M -p 1 --touch-reload > /home/myusername/tmp/uwsgireload.txt --reload-on-rss 50 > Oh ok, you are pratically using --http instead of --http-socket The first one spawn a dedicated http server, the second one is a shortcut for

Re: [web2py] [SLICE] nginx + SCGI

2011-09-13 Thread Roberto De Ioris
webserver <-> socket <-> python scgi parser <-> web2py (for uWSGI with uwsgi protocol) webserver <-> socket <-> C uwsgi parser <-> web2py But generally, if you need to attach an app to a webserver, implementing SCGI is the easiest choice (both uwsgi and fastcgi are binary protocol, and writing good http parser is not the easiest task in the world) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: uWSGI 0.9.9

2011-09-14 Thread Roberto De Ioris
ks in the same way of uwsgi: pypyuwsgi.py --socket :3031 --module welcome > > thank you again for your awesome project -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] criticism of web2py

2011-09-25 Thread Roberto De Ioris
itten, this is good. But blaming a project for not being loyal to some concept is silly. It looks like more a religious approach than a techy one. Web2py works (and most of the time it simply works thanks to its design), it is well documented and AFAIK Massimo does not like killing kittens. But yes, if your priest.py does not approve it, do not use it :P -- Roberto De Ioris http://unbit.it

Re: [web2py] uwsgi question

2011-09-29 Thread Roberto De Ioris
e uwsgi sources dir) /home/my_user/bin/python2.7 uwsgiconfig.py --build another solution is installing setuptools/pip in the new environment and install uWSGI from it: /home/my_user/bin/pip install uwsgi -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] uwsgi question

2011-09-29 Thread Roberto De Ioris
he directory where python core modules are, not the directory containing libpython.so Are you sure you have added --enable-shared in your ./configure script ? -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread Roberto De Ioris
> messes up the users. > > Any ideas? Have you tried disabling https-requirement for the web2py admin interface ? If it works the problem is clear and bypassing it to make webfaction happy would be easy -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread Roberto De Ioris
middleware, but i would like to be sure about it. -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-03 Thread Roberto De Ioris
mmitted support for X-FORWARDED-SSL header (it looks like it is what webfaction is using). It works only in --http-socket mode (not --http one). If you can install the mercurial version on webfaction and test it, i will backport the patch to the stable tree. Thanks -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-03 Thread Roberto De Ioris
> OK, will give it a shot and let you know. > > What is the mercurial command for the version you committed? > > Michel > hg clone http://projects.unbit.it/hg/uwsgi cd uwsgi make -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-04 Thread Roberto De Ioris
rce-limited environment could be very useful. -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-04 Thread Roberto De Ioris
at paranoia? > Maybe there are different uWSGI versions in your account, check the startup logs to see which one is running -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: webfaction clean install unable to save any files in admin edit mode

2011-10-04 Thread Roberto De Ioris
> But where do I download the code for that version? In the directory where you cloned the sources yesterday, run hg pull hg update make -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread Roberto De Ioris
other people. There are limits in every joke, i suppose we only have to be smart and conscious about this. Now i came back eating spaghetti and playing my mandolino. -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread Roberto De Ioris
re mostly ignored. The recent "be politically correct at all costs" way of thinking scares me a bit… (it would force me to know all of the cultures out there ;) Sorry for the OT -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Debugging with uWSGI

2011-10-16 Thread Roberto De Ioris
n the debug-server then follow this guide: http://winpdb.org/docs/embedded-debugging/ -- Roberto De Ioris http://unbit.it

Re: [web2py] Webfaction: Memory usage way over your limit ; again.

2011-11-14 Thread Roberto De Ioris
run web2py rocket server to setup password python2.6 web2py.py # set your password then kill the server cp parameters_8080.py parameters_PORT.py # where PORT is your webfaction port cd .. # start uwsgi ./uwsgi/uwsgi --wsgi-file web2py/wsgihandler.py -m --http-socket :PORT -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Webfaction: Memory usage way over your limit ; again.

2011-11-22 Thread Roberto De Ioris
king = flock and run make this should work even in so ancient systems :) -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: Webfaction: Memory usage way over your limit ; again.

2011-11-26 Thread Roberto De Ioris
-reload /user/uwsgireload.txt --evil-reload-on-rss 64 you will gain one process and async monitoring of the --evil-reload-on-rss option. You should make a run of the server with the -m option to get memory usage after each request in your logs, to eventually catch some leak of your app. -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Webfaction: Memory usage way over your limit ; again.

2011-11-27 Thread Roberto De Ioris
ails something really bad is in place :) -- Roberto De Ioris http://unbit.it

Re: [web2py] Cherokee server locking while upload

2011-03-26 Thread Roberto De Ioris
ving it blocked for all the upload cycle. Add -p (ncpu*2 is a good number to start with) or if you are using a 0.9.7.x release you can use threads with --threads -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Cherokee server locking while upload

2011-03-26 Thread Roberto De Ioris
ng uploads to pass the request to uWSGI only when the upload is done. I will talk to the Cherokee lead developer to reintroduce this feature (before 1 point releases Cherokee worked that way) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Cherokee server locking while upload

2011-03-27 Thread Roberto De Ioris
is the equivalent of X-Sendfile in nginx) for all the downloads. > > On 27 ÜÐà, 11:46, "Roberto De Ioris" wrote: >> > Thx, 4 helps. >> > But so if 4 users go to page with image, or upload some file, all will >> > be crashed again. >> > Is it a good t

Re: [web2py] Re: Web2py - the "one-man-band" of all python frameworks :)

2011-05-11 Thread Roberto De Ioris
nt, but can make amazing concert with the best 'sessions musicians' out there (as he has the skills to choose them). So, as another user said in this thread, it can plays both ways. Sorry "batteries included" and "on steroids" are so over-used... ;) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Web2py - the "one-man-band" of all python frameworks :)

2011-05-11 Thread Roberto De Ioris
> On Thu, May 12, 2011 at 2:00 AM, Roberto De Ioris > wrote: > >> You have to read it in the rock/heavy metal way, where Web2Py is the >> talented player that can manage every intrument, >> > > http://en.wikipedia.org/wiki/Ayreon > Exactly :) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: how to upgrade Web2py in Webfaction?

2011-06-02 Thread Roberto De Ioris
o. 0.9.8 even talks fastcgi so you can set --protocol=fastcgi to gain a little more performance -- Roberto De Ioris http://unbit.it

Re: [web2py] vps - memory problems

2011-06-03 Thread Roberto De Ioris
/log/uwsgi-python/web2py.log --pid > > > Add --memory-report to your uWSGI command line. You will get in /var/log/uwsgi-python/web2py.log the memory consumed after each request. If there is a leak you should find it preatty easy. -- Roberto De Ioris http://unbit.it

Re: [web2py] vps - memory problems

2011-06-03 Thread Roberto De Ioris
2py (and for sure it is not a uWSGI as its policy is: NO LEAK). Probably something in your app is leaking memory, but in the mean time you can "patch" the problem with something like --reload-on-rss where n is the number of megs after which a worker is restarted (freeing its memory). I think 200 (megs) should be enough to maintain your webserver healthy. -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Roberto De Ioris
# ... > > I do not know if it is pertinent with the topic, but uWSGI has tons of (cheap, very cheap compared with solutions like celery) facilities to allow this sort of tasks: http://projects.unbit.it/uwsgi/wiki/Decorators -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Roberto De Ioris
talled > is it compatible with uwsgi decorators? > Hardo to say. 0.9.7 branch is now obsolete, and a lot of fix has been added to signal framework in 0.9.8. If you want to manage timer reliably you should use the latest tip (it is really the 0.9.8.2 release, i am only waiting for a last patch

Re: [web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-10 Thread Roberto De Ioris
decorators package but its only > available for Ubuntu 11.10 You can download the file from here http://projects.unbit.it/uwsgi/browser/uwsgidecorators.py and put it in the web2py directory (or whatever dir you have in the pythonpath) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Roberto De Ioris
rating with web2py is not a problem, as they all works with normal python functions, so simply define them and call asynchronously from web2py views. Again, i am not sure to understand what you are trying do to, but i bet some of the uWSGI features will help you without istalling additional stacks. -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Roberto De Ioris
api + web2py integration. I will write something in the next few hours -- Roberto De Ioris http://unbit.it

[web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
Just a tiny example, but should be enough for spooler jobs and timers http://projects.unbit.it/uwsgi/wiki/Decorators#Example:web2pyspoolertimer Obviously you can call web2py module/functions in the mytasks.py file (just import them as a normal python app) -- Roberto De Ioris http://unbit.it

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
e signal framework. (the official release should happen this week) > > > > On 7/11/11 1:34 PM, Roberto De Ioris wrote: >> Just a tiny example, but should be enough for spooler jobs and timers >> >> http://projects.unbit.it/uwsgi/wiki/Decorators#Example:web2pyspoolertimer >&

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
pp/ wsgihandler directory mytasks ... -- Roberto De Ioris http://unbit.it

  1   2   >