Re: issue to deploy pylons application under mod_wsgi
Sorry, I have tried many ways, even remove this line, always the same error. I am tired for pylons. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website: http://haulynjason.net On Mon, Jun 13, 2011 at 10:29 AM, cd34 wrote: > application = ErrorMiddleware(application, debug=True) > > That line is sure to cause problems. Debugging Middleware usually > causes issues with mod_wsgi because unless you run a very specific > configuration to eliminate multi-threaded requests, though, the error > you're getting is that application isn't properly being passed to your > ErrorMiddleware. > > I think you also need to remove the stanza in development.ini that > refers to WebError. Check your apache error log, it might tell you > what mod_wsgi is encountering as well. > > http://code.google.com/p/modwsgi/wiki/DebuggingTechniques > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: issue to deploy pylons application under mod_wsgi
application = ErrorMiddleware(application, debug=True) That line is sure to cause problems. Debugging Middleware usually causes issues with mod_wsgi because unless you run a very specific configuration to eliminate multi-threaded requests, though, the error you're getting is that application isn't properly being passed to your ErrorMiddleware. I think you also need to remove the stanza in development.ini that refers to WebError. Check your apache error log, it might tell you what mod_wsgi is encountering as well. http://code.google.com/p/modwsgi/wiki/DebuggingTechniques -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: issue to deploy pylons application under mod_wsgi
I am just trying to solve problem, no matter the line application = ErrorMiddleware(application, debug=True) existed or not, the issue always here. Thanks. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website: http://haulynjason.net On Sun, Jun 12, 2011 at 5:24 AM, Raoul Snyman wrote: > On 9 June 2011 09:49, Haulyn Jason wrote: >> application = loadapp('config:/var/www/domix.us/development.ini') >> application = ErrorMiddleware(application, debug=True) > > Why are you adding in the error middleware? Pylons already has error > middleware built in. > > -- > Raoul Snyman > B.Tech Information Technology (Software Engineering) > E-Mail: raoul.sny...@gmail.com > Web: http://www.saturnlaboratories.co.za/ > Blog: http://blog.saturnlaboratories.co.za/ > Mobile: 082 550 3754 > Registered Linux User #333298 (http://counter.li.org) > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: issue to deploy pylons application under mod_wsgi
On 9 June 2011 09:49, Haulyn Jason wrote: > application = loadapp('config:/var/www/domix.us/development.ini') > application = ErrorMiddleware(application, debug=True) Why are you adding in the error middleware? Pylons already has error middleware built in. -- Raoul Snyman B.Tech Information Technology (Software Engineering) E-Mail: raoul.sny...@gmail.com Web: http://www.saturnlaboratories.co.za/ Blog: http://blog.saturnlaboratories.co.za/ Mobile: 082 550 3754 Registered Linux User #333298 (http://counter.li.org) -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: issue to deploy pylons application under mod_wsgi
I don't use mod_wsgi but the pyramid documentation for it is almost an identical setup to pylons, perhaps it can help you out. http://docs.pylonsproject.org/projects/pyramid/1.0/tutorials/modwsgi/index.html Michael -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: issue to deploy pylons application under mod_wsgi
nobody met this issue? or, any reference, analysis all welcome. Didn't solve the problem. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website: http://haulynjason.net On Thu, Jun 9, 2011 at 3:49 PM, Haulyn Jason wrote: > Hi, I have deployed my website under mod_wsgi with apache. I have Trac > and moinmoin working under mod_wsgi within the same apache. > > my mod.wsgi is the following: > > import os, sys > import site > site.addsitedir('/opt/pylonsevn/lib/python2.6/site-packages/') > sys.path.append('/var/www/domix.us') > os.environ['PYTHON_EGG_CACHE'] = '/var/www/domix.us/eggcache' > from paste.deploy import loadapp > from paste.exceptions.errormiddleware import ErrorMiddleware > > application = loadapp('config:/var/www/domix.us/development.ini') > application = ErrorMiddleware(application, debug=True) > > But it does not work, error information is below: > Module paste.exceptions.errormiddleware:144 in __call__ >>> app_iter = self.application(environ, sr_checker) > Module paste.cascade:130 in __call__ >>> return self.apps[-1](environ, start_response) > Module paste.registry:375 in __call__ >>> app_iter = self.application(environ, start_response) > Module pylons.middleware:164 in __call__ >>> start_response(status, headers, exc_info) > Module paste.exceptions.errormiddleware:197 in __call__ >>> self.start_response(*args) > TypeError: start_response() argument 3 must be tuple, not None > > > Any suggestions? > > > > Regards, > > Haulyn Jason > Founder, http://domix.in > Rm. 807, Qilu Software Tower, Qilu Software Park > 1 Shunhua Rd., High-Tech Development Zone > Jinan, Shandong 250101, P. R. China > Tel: +86 158 5410 3759 > Website: http://haulynjason.net > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.