Ticket #908 (new defect) — at Initial Version

Opened 3 years ago

Last modified 3 years ago

Issues deploying extensions with modwsgi

Reported by: rgrp Owned by: rgrp
Priority: critical Milestone: ckan-v1.4-sprint-1
Component: ckan Keywords:
Cc: Repository:
Theme:

Description

Some extensions import pylons features (such as request) at root.

Have encountered following issues:

  1. You need to import ckanext before any ckan stuff in your wsgi script
  1. Running under wsgi daemon mode (normal mode is fine!) the front page (front page only) will not work. You get errors like this in the log:
[Mon Jan 17 09:01:19 2011] [error] Exception KeyError: KeyError(-1218594160,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Mon Jan 17 09:01:20 2011] [error] Exception AttributeError: "'NoneType' object has no attribute 'clearing'" in <bound method PluginEnvironment.__del__ of  Services for Environment '<default>'
Note: See TracTickets for help on using tickets.