Skip to content

Commit b4759f1

Browse files
committed
Disable email_to to avoid CKAN 2.11 startup crash
email_to triggers _setup_error_mail_handler which attaches a ContextualFilter to the root logger. The filter accesses request.path, but ckan.csrf_protection.ignore_extensions (default: true) logs a warning during app init outside request context, crashing uWSGI.
1 parent 2314ced commit b4759f1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

deploy/base.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ ckan.email_notifications_since = 2 days
231231
ckan.hide_activity_from_users = %(ckan.site_id)s
232232

233233
## Email settings
234-
email_to = support@fjelltopp.org
234+
# email_to triggers CKAN's error mail handler, which has a bug in 2.11
235+
# (ContextualFilter accesses request.path during startup log outside request context).
236+
# Uncomment when SMTP is configured and CKAN bug is fixed.
237+
# email_to = support@fjelltopp.org
235238

236239

237240
## Background Job Settings

0 commit comments

Comments
 (0)