wsgi app won't startup

Bug #599613 reported by Nathan Van Gheem
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Won't Fix
Medium
Unassigned

Bug Description

In using Zope 2.13.0a1, you can't create the wsgi app because it tries to configure the zserver. In the file, Zope2/Startup/__init__.py shouldn't we configure the zserver conditionally if they are set in the configuration file like this?

>>> if self.cfg.servers:
>>> self.setupZServer()
>>> self.setupServers()

Or should we have some kind of configuration option for the cases of starting it as a wsgi app. That way you could still use the same zope.conf for wsgi app and zserver.

Revision history for this message
Hanno Schlichting (hannosch) wrote :

So you are trying to use a zope.conf file which has a zserver configuration in it, but use it to start a WSGI application?

I think what should work is to have no zserver config in the zope.conf and then start it as a WSGI app. Probably it's a job for the buildout recipes to offer such a "WSGI" option.

Changed in zope2:
importance: Undecided → Medium
status: New → Confirmed
Changed in zope2:
importance: Medium → High
Revision history for this message
Nathan Van Gheem (vangheem) wrote :

Sorry for the delayed reply--I was on vacation...

Yes, I had no zserver configuration in the zope.conf I believe.

I'd just prefer a zope config to work with wsgi regardless if there it is served by wsgi or by zserver and even if there is a zserver config in the zope.conf file.

Revision history for this message
Hanno Schlichting (hannosch) wrote :

Downgrading to "medium", this is more an opinion than an actual bug. We'd likely solve this best by providing documentation on the setup and adjusting plone.recipe.zope2instance to provide wsgi support.

Changed in zope2:
importance: High → Medium
Revision history for this message
Hanno Schlichting (hannosch) wrote :

Matthew and me are working on better WSGI setup docs and a new recipe. Those should solve this issue.

Changed in zope2:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.