Re: [web2py] uwsgi question

2015-03-25 Thread Roberto De Ioris
-uncommitted transaction you get that error. You should find various posts about it (for the various languages), there is some trick, but generally if you need strong concurrency sqlite is not a good solution. -- Roberto De Ioris http://unbit.com -- Resources: - http://web2py.com - http://web2py.com

Re: [web2py] nginx and uwsgi: upstream sent too big header while reading response header from upstream

2014-03-13 Thread Roberto De Ioris
will be glad to hear about solutions from other web2py-users. Regards Johann nginx buffers can be set for all of the supported protocols: http://wiki.nginx.org/HttpUwsgiModule#uwsgi_buffer_size -- Roberto De Ioris http://unbit.it -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] web2py uwsgi

2014-03-02 Thread Roberto De Ioris
routing = True debug = False capabilities = False xml = libxml2 event = kqueue How you can see ssl is compiled with. and this is my uwsgi ini file: [uwsgi] http = :9090,foobar.crt,foobar.key it is https not http. certificates on plain http have no meaning -- Roberto De Ioris http

Re: [web2py] web2py uwsgi

2014-03-02 Thread Roberto De Ioris
On Sunday, March 2, 2014 1:58:31 PM UTC+1, Roberto De Ioris wrote: Hi, I'm on os x 10.6.8 machine and I'm trying to run web2py with uwsgi. I'm following the tutorial on http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html. Downloaded and compiled uwsgi. when I run

Re: [web2py] Re: uwsgi respawning

2013-11-27 Thread Roberto De Ioris
memory is related to the language vm (python) and your app. What you need to check if the memory usage grows after each request. In such a case you a have a leak to spot in your app. -- Roberto De Ioris http://unbit.it -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

Re: [web2py] Re: uwsgi respawning

2013-11-27 Thread Roberto De Ioris
/proc/pid/maps and you will get the whole memory mapping. -- Roberto De Ioris http://unbit.it -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received

Re: [web2py] UWSGI memory error

2013-11-21 Thread Roberto De Ioris
how can I find out what is causing it: Thu Nov 21 13:58:18 2013 - Memory Error detected !!! Check if you have limit-as option or some other memory limit in place -- Roberto De Ioris http://unbit.it -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

Re: [web2py] gunicorn vs uwsgi

2013-10-02 Thread Roberto De Ioris
wsgihandler.py from the handlers directory): gunicorn --bind :9090 wsgihandler uwsgi --http-socket :9090 --wsgi wsgihandler is it so different ;) ? -- Roberto De Ioris http://unbit.it -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

Re: [web2py] Re: gunicorn vs uwsgi

2013-10-02 Thread Roberto De Ioris
cannot really say you have tried gunicorn and its true power :) regarding the https problem, well, if the password file is correct it should works transparently (uWSGI honour the X-Forwarded-SSL header sent by the webfaction proxy). -- Roberto De Ioris http://unbit.it -- Resources: - http

Re: [web2py] Re: gunicorn vs uwsgi

2013-10-02 Thread Roberto De Ioris
not work without context you became a fury :) In addition to this, this is open source, collaboration is what makes it great (and better) -- Roberto De Ioris http://unbit.it -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

Re: [web2py] websockets

2013-06-14 Thread Roberto De Ioris
. This is an example echo server: https://github.com/unbit/uwsgi/blob/master/tests/websockets_echo.py basically you call uwsgi.websocket_handshake to ack the connection and then you can use uwsgi.websocket_recv and uwsgi.websocket_send -- Roberto De Ioris http://unbit.it -- --- You received

Re: [web2py] Excessive memory usage with uwsgi/nginx

2013-06-03 Thread Roberto De Ioris
move to multithreading: master = true processes = 2 threads = 2 thread-stacksize = 512 should be good enough Monitoring memory is a good thing, use --reload-on-rss 80 to avoid your app growing up -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed

Re: [web2py] Need help : Errors when running web2py app using uWSGI on Webfaction

2013-05-13 Thread Roberto De Ioris
if you care memory, you'd better to let your app runs for a couple of days so you have enough metrics to choose a good limit value. -- 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: SOLVED : Re: [web2py] Need help : Errors when running web2py app using uWSGI on Webfaction

2013-05-13 Thread Roberto De Ioris
and 16 (i suppose you thought it worked the opposite ;) This is the reason for segfaults Webfaction recently raised memory limits to 512 MB so generally you do not need special enforcements. -- Roberto De Ioris http://unbit.it -- --- You received this message because you are subscribed

Re: [web2py] Re: Pythonanywhere down today?

2013-03-22 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 receiving emails from

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

2013-03-16 Thread Roberto De Ioris
, 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 unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr

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

2013-03-16 Thread Roberto De Ioris
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. -- Roberto De Ioris http

[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 this group

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

2013-03-15 Thread Roberto De Ioris
. -- 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.com. For more options, visit https

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

2013-03-15 Thread Roberto De Ioris
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 unsubscribe from this group and stop receiving

Re: [web2py] hosting on dreamhost and passenger

2013-03-11 Thread Roberto De Ioris
://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 stop receiving emails from it, send an email to web2py

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

2013-02-07 Thread Roberto De Ioris
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 the Google Groups web2py-users group. To unsubscribe from this group and stop

Re: [web2py] Passenger WSGI Session

2013-01-28 Thread Roberto De Ioris
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 unsubscribe from this group and stop receiving emails from it, send

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

2013-01-16 Thread Roberto De Ioris
there will be official debian packages constantly synced) -- Roberto De Ioris http://unbit.it --

Re: [web2py] uwsgi and post-buffering

2012-11-29 Thread Roberto De Ioris
?? The important thing is always reading the body of legit requests to avoid nginx closing the socket abruptuly sending back 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

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

2012-10-23 Thread Roberto De Ioris
/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
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 get why they use such a complex system. If you want to follow the 'standard' way i will be happy to help you. -- Roberto De Ioris http://unbit.it --

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

2012-10-05 Thread Roberto De Ioris
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] User accessed site without logging in

2012-07-25 Thread Roberto De Ioris
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) -- Roberto De Ioris http://unbit.it JID

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

2012-05-29 Thread Roberto De Ioris
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 module for mercurial: # call it hg_wsgi.py from

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

2012-05-18 Thread Roberto De Ioris
). Re-read your config, check official docs, and tell me if you really think all of this stuff does not make sense or is over-hard ;) You simply pointed your eyes to the wrong places (and that is a common problem, do not worry) and you have been beaten by some funny distro choice. -- Roberto De

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

2012-05-18 Thread Roberto De Ioris
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
://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
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: 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
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
will go wrong (and things always go wrong soon or later). By the way, i am happy you offered help in improving docs, a lot of users tend to only rant forgetting they are using something for free, and helping in something annoying like writing docs is always appreciated. -- Roberto De Ioris http

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

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

2012-05-15 Thread Roberto De Ioris
). But this is a second step... -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: post attack

2012-04-22 Thread Roberto De Ioris
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
). 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 robe...@unbit.it wrote: By the way, it is pretty strange you found 'threading' support a uwsgi-blocker as very few (maybe 3-4, uWSGI included) production-grade WSGI servers

Re: [web2py] CPU 210%

2012-04-18 Thread Roberto De Ioris
://www.warplydesigned.com -- Roberto De Ioris http://unbit.it

Re: [web2py] CPU 210%

2012-04-18 Thread Roberto De Ioris
), 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

[web2py] [ANNOUNCE] uWSGI 1.1

2012-03-17 Thread Roberto De Ioris
Turnaev Marcin 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
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] share data across uwsgi processes

2012-03-15 Thread Roberto De Ioris
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

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

2012-03-08 Thread Roberto De Ioris
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
there) -- Roberto De Ioris http://unbit.it

Re: [web2py] uWSGI Question

2012-03-06 Thread Roberto De Ioris
nginx/haproxy for managing https connections). -- Roberto De Ioris http://unbit.it

Re: [web2py] uWSGI Question

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

Re: [web2py] nginx/uwsgi setup on Debian

2012-02-24 Thread Roberto De Ioris
./uwsgi --http-socket :8080 --chdir path_to_webp2y --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 robe...@unbit.it 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 if all goes well run uWSGI ./uwsgi --http-socket :8080

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
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] uwsgi configuration: why many lines in /root/var/log/uwsgi-python/web2py log : routing 0 routes 0 ?

2012-02-09 Thread Roberto De Ioris
that flag turned on :) -- Roberto De Ioris http://unbit.it

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

2012-01-29 Thread Roberto De Ioris
) if not query: return None response.headers['Content-disposition'] = 'attachment; filename=%s_%s.csv'\ % tuple(request.vars.query.split('.')[:2]) return str(db(query).select()) Try to set Content-Length header to avoid nginx losing data -- Roberto De Ioris http://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: web2py with Plesk Control Panel ?

2012-01-23 Thread Roberto De Ioris
:06 am, Bruno Rocha rochacbr...@gmail.com wrote: -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: Rocket vs mod_wsgi

2011-12-11 Thread Roberto De Ioris
) -- Roberto De Ioris http://unbit.it

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

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

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

2011-11-26 Thread Roberto De Ioris
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-22 Thread Roberto De Ioris
this should work even in so ancient systems :) -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

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

2011-11-14 Thread Roberto De Ioris
.. # start uwsgi ./uwsgi/uwsgi --wsgi-file web2py/wsgihandler.py -m --http-socket :PORT -- Roberto De Ioris http://unbit.it

Re: [web2py] Debugging with uWSGI

2011-10-16 Thread Roberto De Ioris
://winpdb.org/docs/embedded-debugging/ -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread Roberto De Ioris
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: webfaction clean install unable to save any files in admin edit mode

2011-10-04 Thread Roberto De Ioris
would like to know it this new feature works out of the box on webfaction: http://projects.unbit.it/uwsgi/wiki/StatsServer (using uwsgitop) We are ready to backport it to the stable branch, so knowing if it works in very resource-limited environment could be very useful. -- Roberto De Ioris

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

2011-10-04 Thread Roberto De Ioris
, 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: webfaction clean install unable to save any files in admin edit mode

2011-10-03 Thread Roberto De Ioris
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] webfaction clean install unable to save any files in admin edit mode

2011-10-02 Thread Roberto De Ioris
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
to be sure about it. -- Roberto De Ioris http://unbit.it

Re: [web2py] uwsgi question

2011-09-29 Thread Roberto De Ioris
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
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] criticism of web2py

2011-09-25 Thread Roberto De Ioris
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] Re: uWSGI 0.9.9

2011-09-14 Thread Roberto De Ioris
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] [SLICE] nginx + SCGI

2011-09-13 Thread Roberto De Ioris
, 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-11 Thread Roberto De Ioris
--no-orphans -M -p 1 --touch-reload /home/myusername/tmp/uwsgireload.txt --reload-on-rss 50 Oh ok, you are pratically using --http addr instead of --http-socket addr The first one spawn a dedicated http server, the second one is a shortcut for --protocol http --socket addr -- Roberto De Ioris

Re: [web2py] Re: uWSGI 0.9.9

2011-09-10 Thread Roberto De Ioris
the whole command line ? -- Roberto De Ioris http://unbit.it

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

2011-09-05 Thread Roberto De Ioris
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

[web2py] [ANNOUNCE] uWSGI 0.9.9

2011-08-29 Thread Roberto De Ioris
in the CONTRIBUTORS file. -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it

Re: [web2py] Re: Tiny example on uwsgidecorators+web2py

2011-07-22 Thread Roberto De Ioris
: unrecognized option '--import' Are you using the latest stable release ? --import was added in 0.9.8.2 (there are other ways to implement this in 0.9.8.1 but --import is so handy that the upgrade is worthy :) ) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Tiny example on uwsgidecorators+web2py

2011-07-22 Thread Roberto De Ioris
) and come back here when you have a working setup :) On Jul 22, 10:15 am, Roberto De Ioris robe...@unbit.it wrote: Il giorno 22/lug/2011, alle ore 11:09, Tiago Moutinho ha scritto: thks Roberto, tiago@tiago:~$ cd /opt/web2py/ tiago@tiago:/opt/web2py$ mkdir myspool tiago@tiago:/opt/web2py

Re: [web2py] Re: Tiny example on uwsgidecorators+web2py

2011-07-21 Thread Roberto De Ioris
is wrong? the spooler directory must exists (it is a security measure) -- Roberto De Ioris http://unbit.it

Re: [web2py] Re: Tiny example on uwsgidecorators+web2py

2011-07-21 Thread Roberto De Ioris
How can i create the spoller directory? mkdir myspool It is a normal, empty directory thks in advance On Jul 21, 6:06 pm, Roberto De Ioris robe...@unbit.it wrote: Hello Roberto, I've tried to start web2py has you demonstrated:      uwsgi --socket :3031 --spooler myspool

Re: [web2py] Re: Application Scope?

2011-07-11 Thread Roberto De Ioris
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
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
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 Obviously you can call web2py module/functions in the mytasks.py file

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
socket127.0.0.1:9006/socket pythonpath/home/www-data/myapp//pythonpath app mountpoint=/ scriptwsgihandler/script /app spoolerdirectory/spooler importmytasks/import master/ ... /uwsgi -- Roberto De Ioris http://unbit.it

Re: [web2py] Tiny example on uwsgidecorators+web2py

2011-07-11 Thread Roberto De Ioris
. -- 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-10 Thread Roberto De Ioris
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: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-05 Thread Roberto De Ioris
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
? 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 before release) -- Roberto De Ioris http://unbit.it

Re: [web2py] vps - memory problems

2011-06-03 Thread Roberto De Ioris
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
time you can patch the problem with something like --reload-on-rss n 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: how to upgrade Web2py in Webfaction?

2011-06-02 Thread Roberto De Ioris
-- 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
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

  1   2   >