-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
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
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
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
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
/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
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
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
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
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
.
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
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
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
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
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
, 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
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
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
.
--
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
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
://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
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
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
there will be official debian packages constantly synced)
--
Roberto De Ioris
http://unbit.it
--
??
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
/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
--
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
--
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
--
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
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
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-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
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
://projects.unbit.it/uwsgi/wiki/ParsingOrder
--
Roberto De Ioris
http://unbit.it
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
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
it is time to add https support...
--
Roberto De Ioris
http://unbit.it
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
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
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
). But this is a second step...
--
Roberto De Ioris
http://unbit.it
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
--
Roberto De Ioris
http://unbit.it
).
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
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
://www.warplydesigned.com
--
Roberto De Ioris
http://unbit.it
), 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
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
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
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
and async modes. They do not reflect the cpu core in which it
is running.
--
Roberto De Ioris
http://unbit.it
there)
--
Roberto De Ioris
http://unbit.it
nginx/haproxy for managing https connections).
--
Roberto De Ioris
http://unbit.it
alone in the network.
--
Roberto De Ioris
http://unbit.it
./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
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
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
that flag turned on :)
--
Roberto De Ioris
http://unbit.it
)
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
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
:06 am, Bruno Rocha rochacbr...@gmail.com wrote:
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
)
--
Roberto De Ioris
http://unbit.it
really bad is in place :)
--
Roberto De Ioris
http://unbit.it
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
this should work even in so ancient systems :)
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
..
# start uwsgi
./uwsgi/uwsgi --wsgi-file web2py/wsgihandler.py -m --http-socket :PORT
--
Roberto De Ioris
http://unbit.it
://winpdb.org/docs/embedded-debugging/
--
Roberto De Ioris
http://unbit.it
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
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
, check the
startup logs to see which one is running
--
Roberto De Ioris
http://unbit.it
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
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
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
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
to be sure
about it.
--
Roberto De Ioris
http://unbit.it
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
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
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
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
, 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
--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
the whole command line ?
--
Roberto De Ioris
http://unbit.it
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
in the CONTRIBUTORS file.
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
: 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
) 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
is wrong?
the spooler directory must exists (it is a security measure)
--
Roberto De Ioris
http://unbit.it
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
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
will write something in the next few hours
--
Roberto De Ioris
http://unbit.it
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
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
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
.
--
Roberto De Ioris
http://unbit.it
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
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
?
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
consumed after each request.
If there is a leak you should find it preatty easy.
--
Roberto De Ioris
http://unbit.it
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
--
Roberto De Ioris
http://unbit.it
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 - 100 of 119 matches
Mail list logo