[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
On May 10, 12:28 pm, Thadeus Burgess wrote: > What could possibly be causing this? A user not waiting for a request to complete before clicking on another link or pressing reload. In other words, client dropped original connection. Graham > python 2.6 > web2py trunk > apache/mod_wsgi 2.6 > >

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
On May 10, 1:51 pm, Thadeus Burgess wrote: > Ticket. I usually see them the next day when I check admin. > > No, it is usually just one IP but it happens to a lot of people at the > same time, scaled by the amount of traffic being put on the server. Then it is likely that the ISP or network all

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
or] [client **] mod_wsgi > >>> (pid=3926): Exception occurred processing WSGI script > >>> '/web2py/wsgihandler.py'. > >>> [Sun Jan 31 13:42:51 2010] [error] [client **] IOError: failed to > >>> write data > > >>> -- > >

[web2py] Re: IOError, scalability concerned

2010-05-10 Thread Graham Dumpleton
ils out details be able to be configured by a user (not by default), such that the user can specify exception types and exception descriptions which can be ignored for the particular hosting system or combination of WSGI middleware they use. Graham > Massimo > > On May 9, 11:52 pm, Graham Dump

[web2py] Re: hello

2010-05-13 Thread Graham Dumpleton
On May 13, 8:51 pm, ciprian wrote: > thanks for trying to help. but i already spent two days trying to > figure it out. i can install web2py with no problems - but i dont have > too much experience withmod_wsgi(google doesnt help) no web2py > tutorials and i guess this is the end. i really need

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Graham Dumpleton
On May 21, 7:00 pm, Yarko Tymciurak wrote: > On May 21, 3:33 am, Magnitus wrote: > > > But if you create "tasks" without doing it at the OS level, doesn't > > that means that you won't really be able to take full advantage of > > multi-processor hardware (since the OS handles the hardware and i

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Graham Dumpleton
On May 21, 8:14 pm, Magnitus wrote: > Now that you mention it, I recall reading in the Python/C API that > Python wasn't really thread-safe and that Python objects shouldn't be > accessed from multiple C threads (they recommended using the Python > threading API which was exposed in the Python/C

[web2py] Re: apache proxy error

2010-05-26 Thread Graham Dumpleton
On May 26, 3:26 pm, Richard wrote: > Occasionally after heavily using my web2py app I get: > > """ > Proxy Error > > The proxy server received an invalid response from an upstream server. > The proxy server could not handle the request GET /. > > Reason: Error reading from remote server > """ W

[web2py] Re: apache proxy error

2010-05-26 Thread Graham Dumpleton
On May 27, 1:10 pm, Richard wrote: > On May 26, 9:58 pm, Graham Dumpleton > wrote: > > > > > > > On May 26, 3:26 pm, Richard wrote: > > > > Occasionally after heavily using my web2py app I get: > > > > """ > > >

[web2py] Re: postgresql connection problem -

2010-05-27 Thread Graham Dumpleton
On May 27, 9:57 pm, Julius Minka wrote: > I found something in the archive. > This seems to be multiple python versions issue, but still do not have a > solution. Unfortunately, this server is preinstalled with python2.4 and > I am trying to use 2.6, which can't be probably found undermod_wsgi >

[web2py] Re: Web2py on port 80 with non-root, setuid, possible?

2010-07-10 Thread Graham Dumpleton
Use Apache/mod_wsgi instead then to host your WSGI application. That or just setup Apache by itself to proxy to your standalone WSGI application listening on a different port. On Jul 11, 1:24 am, Álvaro J. Iradier wrote: > Well the problem is non-root users can't use ports < 1024, and I want > to

[web2py] Re: Error in wsgi/apache

2010-07-19 Thread Graham Dumpleton
On Jul 20, 12:01 pm, Michael Toomim wrote: > I'm getting errors like these in my apache error logs: > > [Mon Jul 19 18:55:20 2010] [error] [client 65.35.93.74] Premature end > of script headers: wsgihandler.py, > referer:http://yuno.us/init/hits/hit?assignmentId=1A7KADKCHTB1IJS3Z5CR16OZM4V... >

[web2py] Re: Error in wsgi/apache

2010-07-19 Thread Graham Dumpleton
On Jul 20, 1:58 pm, Michael Toomim wrote: > Thanks!  I tried rebooting the OS.  Now my resources seem ok (but I > didn't check before the reboot): > > Files used: 1376 out of 75556 > Mem used: 580mb out of 796mb > Swap used: 0 > CPU: 88-99% idle > > And I know longer see the "Exception occurred"

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 20, 5:17 pm, mdipierro wrote: > The problem with IOError, I can understand. As Graham says, if the > client closes the connection before the server responds or if the > server timesout the socket is closed and apache logs the IOError. That isn't what I said. If you see that message when

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
    logger.addHandler(handler) >     return logger > > logging = > cache.ram('app_wide_log',lambda:_init_log(),time_expire=None) > > On Jul 20, 2:03 am, mdipierro wrote: > > > > > Thanks for the clarification. > > > @Michael, do you use the log

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
graded to a bigger machine and am changing my code to remove ajax > > (will reduce load by 60x by decreasing functionality). I don't know > > what else to do. > > > On Jul 20, 2:03 am, mdipierro wrote: > > > > Thanks for the clarification. > > > > @Michael

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
ust say I really really like how > web2py's execfile puts things into global scope from the controllers > and automatically reloads code with each request. > > On Jul 20, 5:02 pm, Graham Dumpleton > wrote: > > > > > On Jul 21, 8:18 am, mdipierro wrote: > > &g

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
memory leak I worry it's somewhere further up the stack.  I don't know > any ways to investigate memory consumption to see where it's being > used. > > On Jul 20, 8:23 pm, Graham Dumpleton > wrote: > > > > > On Jul 21, 1:03 pm, Michael Toomim wrote:

[web2py] Re: book 3rd edition call of help

2010-07-28 Thread Graham Dumpleton
On Jul 27, 8:49 pm, mdipierro wrote: > This is very very preliminary: > >    http://web2py.com/book2 > > It is not editable (yet) and I am still adding material but it does > address a lot of issues. > Please use this thread to add comments in particular: > > What sections are missing? > What ne

[web2py] Re: web2py rocket error on vps

2010-07-31 Thread Graham Dumpleton
Did you actually try Googling for it? Python 2.6.5 and 3.1.2 (???) made a change to C api behaviour. The message is harmless all the same. Upgrade to mod_wsgi 3.3 where the message has been suppressed. Go read ticket 197 on mod_wsgi site and read mod_wsgi release notes for version 3.3. Graham

[web2py] Re: wsgi and sys.stdout

2010-02-10 Thread Graham Dumpleton
On Feb 11, 12:58 pm, mdipierro wrote: > One of my collaborators pointed me to this. > > http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output... > > What about this solution that would also address the issue on GAE? > > class Logger: >     def write(self,data): >          logging

[web2py] Re: wsgi and sys.stdout

2010-02-10 Thread Graham Dumpleton
duce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', > 'close', 'closed', 'encoding', 'fileno', 'flush', 'isatty', 'mode', > 'name', 'newlines', '

[web2py] Re: wsgi and sys.stdout

2010-02-11 Thread Graham Dumpleton
ll print it sends it to stdout and that is redirect into > >> > the text of the response so it break pages. > > >> Using print running web2py on Apache cause exceptions since mod_wsgi > >> does not implement sys.stdout. > >> So I think we need to focus t

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
On Feb 12, 9:59 am, John Heenan wrote: > How about web2py in a VPS using less than 40MB RAM? > > You can reduce web2py memory usage by using a newer generation web > server with web2py instead of the internal web server with web2py. Not really. > Apache gets trashed in tests by newer generatio

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
want to do your home work and perhaps look into why I might say what I have before you dismiss it off hand. Graham > John Heenan > > On Feb 12, 11:32 am, Graham Dumpleton > wrote: > > > > > On Feb 12, 9:59 am, John Heenan wrote: > > > > How about web2py in a

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
different web server or architecture will magically somehow solve all your problems. Graham > John Heenan > > On Feb 12, 12:16 pm, Graham Dumpleton > wrote: > > > > > On Feb 12, 1:04 pm, John Heenan wrote: > > > > Hello Graham, whoever you are. >

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
> > the FastCGI socket information to WGSI to use existing WGSI > > infrastructure but this is irrelevant. The code is short and simple. > > This is all irrelevant to the web server. > > > 5) Using the internal web server with web2py is not recommended. The > > que

[web2py] Re: How much memory does web2py need on Unix

2010-02-12 Thread Graham Dumpleton
you can get help for it from a community people who are knowledgeable about it. Often posts I make like this, which you likely would just label as a rant, contain more useful information than what you can find on using WSGI with FASTCGI. Graham > John Heenan > > On Feb 12, 3:14 pm,

[web2py] Re: new GIL bug

2010-02-16 Thread Graham Dumpleton
On Feb 17, 4:20 pm, mdipierro wrote: > Look at this bug report > > http://bugs.python.org/issue7946 > > specifically look at the benchmarks at the bottom. This kind of bugs > affects web applications since they have threads with lots of IO.  One > more reason to stay with python 2.5 for now. Fo

[web2py] Re: new GIL bug

2010-02-17 Thread Graham Dumpleton
confident that the changes to the framework are all correct. By then the performance of Python 3.X stream could have improved to make it more usable. Graham > On Feb 17, 12:05 am, Graham Dumpleton > wrote: > > > > > On Feb 17, 4:20 pm, mdipierro wrote: > > >

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
On Feb 19, 6:40 am, mdipierro wrote: > Yes. > > I am running apache2 and I see this: > > www-data  6215  0.0  0.0 130400   164 ?        S    16:52   0:00 /usr/ > sbin/apache2 -k start > www-data  6250  0.0  0.2 130296   608 ?        S    16:52   0:00 /usr/ > sbin/apache2 -k start > www-data  631

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
ould see such memory growth. If you were using mod_wsgi 2.X (preferably 2.5 or later), then those options to WSGIDaemonProcess would at least allow it to recover itself whil you sort out what the real problem is. Graham > Massimo > > On Feb 18, 4:11 pm, Graham Dumpleton > wrote: > &g

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
ing most of the ram is > > www-data 30743  1.9 10.1 449980 26732 ?        Sl   00:37   0:00 > (wsgi:web2py)     -k start > > Yes since the BEAUTIFY bug was fixed I cannot say there is a problem > anymore. > > Thanks for your help. > > Massimo > > On Feb 18,

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
so trigger a restart but based on number of requests. Graham > Thank you again. > > Massimo > > On Feb 18, 6:56 pm, Graham Dumpleton > wrote: > > > > > On Feb 19, 11:39 am, mdipierro wrote: > > > > You are right. I had > > > > Apache/2.2.8 (

[web2py] Re: db select cache.ram.clear() and apache2 + wsgi not working

2010-02-26 Thread Graham Dumpleton
For a further explanation of different modes you can run application under with Apache/mod_wsgi read: http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading Graham On Feb 26, 7:42 pm, mdipierro wrote: > it is not useless. It works of if you run only one wsgi process but > cache lives onl

[web2py] Re: Deploy web2py on Mac

2010-03-02 Thread Graham Dumpleton
On Mar 3, 4:30 pm, Al wrote: > Hi, > > Can anyone advise how I can setup web2py to start automatically when > the machine is turned on? i.e the services should all be started > without having to login. > How can that be done with plist and startup items? If you were to deploy under Apache/mod_w

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
On Mar 4, 4:28 am, mdipierro wrote: > problem is the error appear to be in mod_python, not web2py. Not an issue with mod_python. Web2Py is looking for SCRIPT_URL, this isn't put into req.subprocess_env by Apache core modules or mod_python under normal conditions. The only time that a variabl

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
te the patch if you can provide us > with a proposal. > > Massimo > > On Mar 3, 7:36 pm, Graham Dumpleton > wrote: > > > > > On Mar 4, 4:28 am, mdipierro wrote: > > > > problem is the error appear to be in mod_python, not web2py. > > > Not an issue

[web2py] Re: no more cherrypy wsgiserver

2010-03-12 Thread Graham Dumpleton
On Mar 13, 8:48 am, Timothy Farrell wrote: > I'm not sure how you upgraded, but make sure you have a rocket.py in > your gluon folder. What ever they are doing they are trying to do it under Apache/ mod_wsgi, not as a standalone process. Graham > -tim > > On 3/12/2010 3:42 PM, Jose wrote: > >

[web2py] Re: no more cherrypy wsgiserver

2010-03-13 Thread Graham Dumpleton
On Mar 13, 5:28 pm, Yarko Tymciurak wrote: > On Mar 12, 9:14 pm, Graham Dumpleton > wrote: > > > On Mar 13, 8:48 am, Timothy Farrell wrote: > > > > I'm not sure how you upgraded, but make sure you have a rocket.py in > > > your gluon folder. > >

[web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread Graham Dumpleton
You can potentially also use any error page as a tell tale fingerprint if defaults are used as different frameworks are going to each have their own. For example: http://www.web2py.com/examples/default/xxx Returns: invalid function The idea of an 'invalid function' could be viewed as distinct

[web2py] Re: psycopg2 problem

2010-04-01 Thread Graham Dumpleton
On Apr 2, 7:42 am, Thadeus Burgess wrote: > Somod_wsgi will not let you print, Not true. For older versions of mod_wsgi if you use 'print' you need to redirect it to 'sys.stderr' is all. This is because using sys.stdin/sys.stderr in a WSGI application is not portable. Because though people ar

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-13 Thread Graham Dumpleton
Missing ServerName directives. On Sep 14, 3:18 pm, Johann Spies wrote: > For me the deployment of web2py seems to be a recurring problem. > > I am trying to deploy web2py on a Debian system but not as 'default' . > I have root access to the system. > > I have tried both the example in the book as

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-14 Thread Graham Dumpleton
first. Either way, is using different configuration. Try adding a syntax error in those VirtualHost sections to verify file even being read. On Sep 14, 4:53 pm, Johann Spies wrote: > On 14 September 2010 08:21, Graham Dumpleton > wrote: > > > Missing ServerName directives. > >

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-14 Thread Graham Dumpleton
On Sep 14, 6:31 pm, Kenneth Lundström wrote: >   Hi Johann, > > I might be completly wrong but I think that you can t have > example.com/phpsite and example.com/web2py at the same time. You can > havehttp://phpsite.example.comandhttp://web2py.example.com So long as Apache configured right, ther

[web2py:28980] Re: Deployment Issues on CentOS

2009-08-20 Thread Graham Dumpleton
On Aug 20, 5:14 am, Don Lee wrote: > I'll try that, but I got that from the web2py_manual.  The manual gives an > example of a virtual host configuration, so I've tried to adapt that by > taking out the things I feel are related to virtual hosts. The web2py manual is wrong for many reasons. A

[web2py:28982] Re: Deployment Issues on CentOS

2009-08-20 Thread Graham Dumpleton
On Aug 20, 5:24 am, Don Lee wrote: > Removing "Alias" line causes a different error. > > === > Service Temporarily Unavailable > > The server is temporarily unable to service your request due to maintenance > downtime or capacity problems. Please try again later. > =

[web2py:28985] Re: WSGI apache -- WSGIScriptAlias as /python and not just plain /

2009-08-20 Thread Graham Dumpleton
On Aug 20, 4:06 am, Jonathan Benn wrote: > I'm curious to know the answer to this as well. Did you ever figure it > out?  If yes, can you please post the Apache .conf file you used? Unless Massimo comes back and says there is some magic option which can be set to allow it, I don't believe ther

[web2py:28986] Re: Deployment Issues on CentOS

2009-08-20 Thread Graham Dumpleton
On Aug 20, 12:21 pm, Graham Dumpleton wrote: > On Aug 20, 5:14 am, Don Lee wrote: > > > I'll try that, but I got that from the web2py_manual.  The manual gives an > > example of a virtual host configuration, so I've tried to adapt that by > > taking ou

[web2py:29056] Re: wsgi

2009-08-20 Thread Graham Dumpleton
On Aug 20, 10:20 pm, Alex Fanjul wrote: > Massimo, Graham commented (replying my "apache+windows+wsgi > " > tutorial post) some security issues in our default configurations using > wsgi , I think we have to take in consi

[web2py:29074] Re: WSGI apache -- WSGIScriptAlias as /python and not just plain /

2009-08-21 Thread Graham Dumpleton
On Aug 21, 5:49 pm, mdipierro wrote: > I have a new .conf created by nothing less than Graham Dumpleton for > web2py. > I will post it soon. It will be in the new book. That configuration doesn't though cover the case that this person was after, well presuming that he wa

[web2py:29075] Re: wsgi

2009-08-21 Thread Graham Dumpleton
On Aug 21, 5:55 pm, mdipierro wrote: > Can you post the file you sent me(or something better). I have limited > connection. As I said, I will blog about it soon. Rather do it that way as can then provide proper explanation to accompany it. Graham > On Aug 20, 8:36 pm, Graham

[web2py:29081] Re: Deployment Issues on CentOS

2009-08-21 Thread Graham Dumpleton
On Aug 21, 4:28 am, Mark Larsen wrote: > > == > > ### setup WSGI > > WSGIScriptAlias /apps /usr/local/web2py/current/wsgihandler.py > > WSGIDaemonProcess web2py user=apache group=apache \ > >     home=/usr/local/web2py/current \ > >     processes=10 maximum-reque

[web2py:29083] Re: Deployment Issues on CentOS

2009-08-21 Thread Graham Dumpleton
On Aug 20, 5:45 pm, Graham Dumpleton wrote: > On Aug 20, 12:21 pm, Graham Dumpleton > wrote: > > > On Aug 20, 5:14 am, Don Lee wrote: > > > > I'll try that, but I got that from the web2py_manual.  The manual gives an > > > example of a virtual host c

[web2py:29768] Re: web2py complaints & rebuttals

2009-08-31 Thread Graham Dumpleton
On Aug 31, 10:48 pm, mdipierro wrote: > > Complaint #3: Having to do strange things (like double-imports and > > reloads) to pick up run-time changes in my module.  (This may be where > > the complaint about 3rd party modules comes from.) > > Response #3: I believe the issue here is that there is

[web2py:29772] Re: Why web2py is a bad, bad thing.

2009-08-31 Thread Graham Dumpleton
On Sep 1, 2:33 pm, Iceberg wrote: > Weheh, I have to say, you are a bad, bad guy. Because when I saw the > title of your post, I was ready for a fight and rushed to see your > post. But after reading, I lost the reason to make a heated-up > dispute. :-) I would be regarded as an outsider here,

[web2py:29779] Re: Anyone have errors running 10.6 Mac OS X and web2py?

2009-09-01 Thread Graham Dumpleton
On Sep 1, 6:13 pm, cpt1002 wrote: > Hello, > > So I upgraded Mac OS X to 10.6 and I get some errors when I try to run > web2py. I don't really get it but it still works mostly...anyone see > this before? > > default applications appear to be installed already > web2py Enterprise Web Framework >

[web2py:30011] Mounting web2py at sub URL of web site and not root of web site.

2009-09-03 Thread Graham Dumpleton
At the moment, web2py will only work if mounted at root of the web site. Thus, using Apache/mod_wsgi you can only say: WSGIScriptAlias / /Users/grahamd/Testing/web2py/wsgihandler.py You cannot say: WSGIScriptAlias /subdir /Users/grahamd/Testing/web2py/wsgihandler.py Since web2py seems to p

[web2py:30012] Re: Mounting web2py at sub URL of web site and not root of web site.

2009-09-03 Thread Graham Dumpleton
On Sep 4, 2:19 pm, Graham Dumpleton wrote: > At the moment, web2py will only work if mounted at root of the web > site. Thus, using Apache/mod_wsgi you can only say: > >   WSGIScriptAlias / /Users/grahamd/Testing/web2py/wsgihandler.py > > You cannot say: > >   WSGISc

[web2py:30021] Re: Mounting web2py at sub URL of web site and not root of web site.

2009-09-03 Thread Graham Dumpleton
27;/grahamd/\g'),) > > we have been using this for pycon registration for example. That would go against the WSGI way of doing things, in that the WSGI application shouldn't within its routing have the mount point hardwired into the application code. Graham > On Sep 3, 11:19 pm, G

[web2py:30029] Re: Mounting web2py at sub URL of web site and not root of web site.

2009-09-04 Thread Graham Dumpleton
from perspective of how well a behaved WSGI application/ component it is. Later I will though bring up some issues I can see with large scale deployment and distribution of individual appliances to many sites. Graham > Massimo > > On Sep 4, 1:21 am, Graham Dumpleton > wrote: > >

[web2py:30033] Optimising returning of file content using wsgi.file_wrapper extension.

2009-09-04 Thread Graham Dumpleton
The WSGI specification defines an optional extension referred to as wsgi.file_wrapper. http://www.python.org/dev/peps/pep-0333/#optional-platform-specific-file-handling The intent of this is so that WSGI hosting mechanisms can provide a better performing way for responding with content from a

[web2py:30067] Re: Optimising returning of file content using wsgi.file_wrapper extension.

2009-09-04 Thread Graham Dumpleton
On Sep 5, 5:55 am, mdipierro wrote: > That is true. I am in favor of including Graham's patch for now but I > have a feeling there has to be a better solution. Massimo, you have replied to the wrong discussion thread, so part of what Fran was saying was actually pertinent to this discussion th

[web2py:30085] Re: Optimising returning of file content using wsgi.file_wrapper extension.

2009-09-04 Thread Graham Dumpleton
On Sep 5, 1:19 pm, Wes James wrote: > On Fri, Sep 4, 2009 at 8:21 PM, mdipierro wrote: > > > Sorry Graham. You are right I got confused. Had a long day. > > I will add you patch to trunk but, as you and Fran, say we should make > > this optional. > > What do you suggest as a way to make this op

[web2py:30102] Re: Optimising returning of file content using wsgi.file_wrapper extension.

2009-09-05 Thread Graham Dumpleton
On Sep 5, 2:16 pm, Yarko Tymciurak wrote: > Graham - > > On Fri, Sep 4, 2009 at 11:08 PM, Graham Dumpleton < > > > > > > graham.dumple...@gmail.com> wrote: > > > On Sep 5, 1:19 pm, Wes James wrote: > > > On Fri, Sep 4, 2009 at 8:21 PM, mdipi

[web2py:30105] Comments on gluon/streamer.py.

2009-09-05 Thread Graham Dumpleton
In gluon/streamer.py there are a number of places were open() call is made on files. These are within a try block and exceptions are caught and the specific reason for the error is determined and different HTTP error returned. For example on such case from that file is: try: open(stat

[web2py:30211] Re: Optimising returning of file content using wsgi.file_wrapper extension.

2009-09-05 Thread Graham Dumpleton
gt; > I am still uneasy about using script_name in urls. I am afarid it may > > break backward compatibility with cgi or fcgi. We need to test it. > > > Massimo > > > On Sep 5, 6:27 am, Graham Dumpleton > > wrote: > > > > On Sep 5, 2:16 pm, Yarko Tymc

[web2py:30216] Re: Optimising returning of file content using wsgi.file_wrapper extension.

2009-09-05 Thread Graham Dumpleton
On Sep 6, 3:44 pm, Yarko Tymciurak wrote: > the web2py repository is at launchpad;  browse from: > > http://bazaar.launchpad.net/~mdipierro/web2py/devel/files That address at the moment for me yields: Internal Server Error :-) Graham > On Sun, Sep 6, 2009 at 12:20 AM, Grah

[web2py:30438] Re: WSGI / Windows XP / Apache / Python 2.6

2009-09-08 Thread Graham Dumpleton
The key error is: > [Tue Sep 08 16:01:17 2009] [error] [client 192.168.1.1] import > _socket You should reinstall your Python installation. This time use latest version of Python 2.6 available and ensure that you install it for all users and not just yourself. That should resolve the issue.

[web2py:30441] Re: Proxy Error 502

2009-09-08 Thread Graham Dumpleton
On Sep 9, 12:06 am, mdipierro wrote: > Are you using the built-in web server? apache as a proxy? apache with > mod_wsgi? > Windows, Linux or Mac? Binary r source? That is a mod_proxy error, so more likely they are using mod_proxy to CherryPy wsgiserver. Graham > Massimo > > On Sep 8, 8:09 a

[web2py:30466] Re: WSGI / Windows XP / Apache / Python 2.6

2009-09-08 Thread Graham Dumpleton
It is likely then that you had some third party Python C extension modules installed somewhere and which were found and which were actually compiled for and pulling in the older version of Python DLL. This could occur if you had custom Python module path defined. There have also been problems some

[web2py:30471] Re: better support for web2py at WebFaction

2009-09-08 Thread Graham Dumpleton
On Sep 9, 3:59 pm, Richard wrote: > There are 2 threads in the WebFaction forum at the moment about > getting better support for > web2py:http://forum.webfaction.com/viewtopic.php?id=3184http://forum.webfaction.com/viewtopic.php?id=3216 > > I know quite a few of us use WebFaction, so if you th

[web2py:30781] Re: Any comments on Tornado Server?

2009-09-11 Thread Graham Dumpleton
On Sep 11, 11:51 pm, Timbo wrote: > According to the Performance section of their documentation, they > recommend running one instance of Tornado per processor core on your > server and then joining them together behind a nginx reverse proxy. > Looking at the graph, this makes the top bar an ap

[web2py:30961] Re: some questions for web2py.

2009-09-14 Thread Graham Dumpleton
On Sep 14, 3:18 pm, mdipierro wrote: > > 2) which is the best way to deploy web2py? please provide a document > > that is explaining how to deploy web2py with that method. > > Apache+mod_wsgi. It is the book, in chapter 11. You can download that > chapter fromhttp://web2py.com/examples/static/w

[web2py:31023] Re: some questions for web2py.

2009-09-14 Thread Graham Dumpleton
is playing very bad caching tricks. Can you triple check. If you are adamant that it is the correct version I will shut up even though what I download is the wrong version. Graham > On Sep 14, 5:37 am, Graham Dumpleton > wrote: > > > > > On Sep 14, 3:18 pm, mdipierro wrot

[web2py:/] Re: help with web server

2009-09-17 Thread Graham Dumpleton
On Sep 18, 2:04 pm, mdipierro wrote: > Here are some "hello world" benchmarks not using web2py by the > barebone wsgi hello world: > > benchmark web2pySWGIServer > > > massimo-di-pierros-macbook:gluon mdipierro$ ab -n 1http://127.0.0.1:8002/ > Concurrency Level:      1 > Ti

[web2py:/] Re: Versioning using Mercurial

2009-09-22 Thread Graham Dumpleton
On Sep 22, 7:12 pm, Anthon wrote: > Is anyone using the versioning feature? > It seems currently broken out of the box on my mod_wsgi/apache system. > The main problem exists because mercurial writes to sys.stdout if some > warning/error occurs. > On my fresh system I get those writes because o

[web2py:32337] Re: deploying web2py on cpanel shared hosting

2009-10-06 Thread Graham Dumpleton
You don't have mod_python installed for that Apache instance. The '_apache' module is a special embedded module created by mod_python Apache module within memory space of Apache process at run time. Graham On Oct 7, 10:14 am, whiskeyjuvenile wrote: > [   ]...@[     ] [~/www]# python web2py_modp

[web2py:32339] Re: deploying web2py on cpanel shared hosting

2009-10-06 Thread Graham Dumpleton
On Oct 7, 10:35 am, whiskeyjuvenile wrote: > Here's the specific apache log error: > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] AttributeError: > module '/home/[username]/public_html/web2py_modpython.py' contains no > 'handler' Presumably you created: web2py_modpython.py That file

[web2py:33239] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
Other web frameworks allow you to customise the name of the session cookie to avoid this sort of problem where different applications run on different ports under same host name. Other web frameworks also allow one to cleanly mount multiple instances of an application under different sub URLs of s

[web2py:33246] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
access the session, it can > release the lock. > > Massimo > > On Oct 20, 6:04 pm, Graham Dumpleton > wrote: > > > > > Other web frameworks allow you to customise the name of the session > > cookie to avoid this sort of problem where different applicatio

[web2py:33255] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
ey will have distinct session cookies. > He can can access "a" from one port and "b" from the other without > running into issues. Do you literally mean symlink as in file system symbolic link? Could the alias instead be managed somehow via your global route rewriting r

[web2py:33261] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
On Oct 21, 12:37 pm, mdipierro wrote: > On Oct 20, 8:01 pm, Graham Dumpleton > wrote: > > > On Oct 21, 11:14 am, mdipierro wrote: > > > > Sorry my answer was confused. I guess having my son jumping around me > > > all the time does not help. > > >

[web2py:33280] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
to each. As each has distinct web2py install directory, not a shared configuration file. OP would need to clarify what they are doing. Graham > Massimo > > On Oct 20, 9:26 pm, Graham Dumpleton > wrote: > > > > > On Oct 21, 12:37 pm, mdipierro wrote: > > > &g

[web2py:33402] Re: Sessions lost when several servers running on diff ports

2009-10-22 Thread Graham Dumpleton
nstallation then that parameter cannot be set in any > > > > of those configurations files else both instances will have the same > > > > prefix and that would defy the purpose. > > > > > This should go in a configuration parameter of setting that is > >

[web2py:33464] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-22 Thread Graham Dumpleton
On Oct 23, 6:54 am, Thadeus Burgess wrote: > When specifying, does this mean static files get redirected to being served > by apache? Or are they still served by web2py? > > From testing it seems to still be served by web2py, it just isn't working > quite right. > > Should I use a subdomain wit

[web2py:33469] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-22 Thread Graham Dumpleton
urationIssues I would very much recommend going back to what 2nd edition of web2py books says to use, with only addition perhaps being correct WSGISocketPrefix override required on Centos. Then post error messages and better description of what didn't work along with configuration you are then u

[web2py:33498] Re: Shared webhosting on Debian Etch

2009-10-23 Thread Graham Dumpleton
On Oct 23, 8:45 pm, Johann Spies wrote: > I see there are many emails about problems with shared hosting. > > I want to deploy a web2py site (my first one) on a shared host (Debian > Etch with python2.4 as default python). > > Python 2.5 is also available and I have succeeded in installing a 2.

[web2py:33542] Re: Shared webhosting on Debian Etch

2009-10-23 Thread Graham Dumpleton
On Oct 23, 11:35 pm, Johann Spies wrote: > 2009/10/23 Graham Dumpleton : > > > > > One can only have a single SSL certificate for an IP so you can't have > > multiple virtual hosts for HTTPS off same IP. > > That is what I found out while trying this. > &

[web2py:33543] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-23 Thread Graham Dumpleton
ave been > > created through Plesk. Mainly the SSL stuff. > > > Still confused as to whywww.site.comis different from site.com. > > > I can post more details tomorrow morning. > > > Thanks > > > -Thadeus > > > On Thu, Oct 22, 2009 at 7:09 PM, Graha

[web2py:33564] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-24 Thread Graham Dumpleton
ver. > > -Thadeus > > On Fri, Oct 23, 2009 at 9:17 PM, Graham Dumpleton < > > > > graham.dumple...@gmail.com> wrote: > > > On Oct 24, 3:43 am, Thadeus Burgess wrote: > > > So basically, from what I gather looking over what I have, the only thing

[web2py:33565] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-24 Thread Graham Dumpleton
the mod_wsgi directives in later VirtualHost, as well as AliasMatch would be ignored. Graham On Oct 24, 7:22 pm, Graham Dumpleton wrote: > On Oct 24, 2:43 pm, Thadeus Burgess wrote: > > > The paths are simlinked. > > You do realise that Apache treats symlinks as special and

[web2py:33774] Re: Python 3.1

2009-10-26 Thread Graham Dumpleton
On Oct 27, 10:57 am, mdipierro wrote: > In Python 2.x you can do s.find(..), s.replace(..), etc. where s is a > byte string. This API does not exist anymore in in Python 3.x and you > can only do string manipulation if s a unicode string. This is very > bad because all network protocols use byt

[web2py:34125] Re: run 2 web2pys with wsgihandler/apache

2009-10-29 Thread Graham Dumpleton
On Oct 30, 9:44 am, Wes James wrote: > Is there a way to do this? > > WSGIScriptAliasMatch ^/(app|admin)(/.*)?$ > /opt/web2py-1.69.1/wsgihandler.py/$1$2 > WSGIScriptAliasMatch ^/(app2|admin2)(/.*)?$ > /opt/web2py-1.68.1/wsgihandler.py/$1$2 > > I was trying this earlier and it was kind of glitc

[web2py:34267] Re: run 2 web2pys with wsgihandler/apache

2009-10-31 Thread Graham Dumpleton
; > -wes > > On Thu, Oct 29, 2009 at 6:33 PM, Graham Dumpleton > > > > wrote: > > > On Oct 30, 9:44 am, Wes James wrote: > >> Is there a way to do this? > > >> WSGIScriptAliasMatch ^/(app|admin)(/.*)?$ > >> /opt/web2py-1.69.1/wsgih

[web2py:34450] Re: how to disable soft cron when running mod_wsgi daemon

2009-11-02 Thread Graham Dumpleton
On Nov 3, 3:07 am, Fred wrote: > I am completely baffled by what ExecuteOnCompletion2 and callback do. > Could someone explain their design?   What do I lose by calling > gluon.main.wsgibase directly? That code in web2py was taken from mod_wsgi online documentation. Read the mod_wsgi documenta

[web2py:34707] Re: You are going to love this

2009-11-05 Thread Graham Dumpleton
For the curious, would you like to explain the procedure you, or whoever, went about to generate this. Ie., where were original layouts/stylesheets obtained from, what script or whatever was used to convert/package them into form understood by web2py. Sorry if the answer is obvious but I am igno

[web2py:34991] Re: Apache vs Cherokee vs all the rest

2009-11-09 Thread Graham Dumpleton
On Nov 10, 3:10 am, Thadeus Burgess wrote: > I use apache on virtualhost at slicehost running multiple web2py > virtualhosts. > > With one web2py instance, my server stands at around 90MB average for > memory, it *might* spike up to 115MB if I start some ram caching, however my > reports have n

[web2py:35065] Re: Python + C++ = Go

2009-11-10 Thread Graham Dumpleton
On Nov 11, 2:35 pm, mdipierro wrote: > I may use this. I also like the D language. > > On Nov 10, 9:08 pm, ionel wrote: > > > Somebody interested ?http://golang.org Quoting the FAQ: "There is no safe way to call Go code from C or C++ yet." Pity, otherwise would have contemplated using it

[web2py:35152] Re: error on admin via ssl

2009-11-11 Thread Graham Dumpleton
On Nov 12, 11:22 am, Pepe wrote: > if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\ >      in ['https', 'HTTPS']: >     session.secure() > elif not remote_addr in hosts: >     raise HTTP(200, T('Admin is disabled because insecure channel')) Huh, what exactly is that code mean

  1   2   >