[GH-ISSUE #573] Error when trying to use mod_ssl &mod_wsgi for modoboa #544

Closed
opened 2026-02-27 11:12:20 +03:00 by kerem · 5 comments
Owner

Originally created by @piwats on GitHub (Jun 19, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/573

Hello Antoine,

I'm trying to run modoboa with mod_ssl/mod_wsgi.

This is an error I get:

Environment:

Request Method: GET
Request URL: https://server.com/

Django Version: 1.5.8
Python Version: 2.7.6
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'reversion',
'modoboa',
'modoboa.core',
'modoboa.lib',
'modoboa.extensions.admin',
'modoboa.extensions.postfix_relay_domains',
'modoboa.extensions.limits',
'modoboa.extensions.postfix_autoreply',
'modoboa.extensions.webmail',
'modoboa.extensions.stats',
'modoboa.extensions.sievefilters',
'modoboa.extensions.amavis')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'modoboa.lib.middleware.AjaxLoginRedirect',
'modoboa.lib.middleware.CommonExceptionCatcher',
'modoboa.lib.middleware.ExtControlMiddleware',
'modoboa.lib.middleware.RequestCatcherMiddleware')

Traceback:
File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  2.             return view_func(request, _args, *_kwargs)
    
    File "/usr/lib64/python2.7/site-packages/modoboa/lib/webutils.py" in topredirection
  3.         path = infos["url"] if infos["url"] else infos["name"]
    

Exception Type: TypeError at /
Exception Value: 'NoneType' object has no attribute 'getitem'

What went wrong?

Originally created by @piwats on GitHub (Jun 19, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/573 Hello Antoine, I'm trying to run modoboa with mod_ssl/mod_wsgi. This is an error I get: Environment: Request Method: GET Request URL: https://server.com/ Django Version: 1.5.8 Python Version: 2.7.6 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'south', 'reversion', 'modoboa', 'modoboa.core', 'modoboa.lib', 'modoboa.extensions.admin', 'modoboa.extensions.postfix_relay_domains', 'modoboa.extensions.limits', 'modoboa.extensions.postfix_autoreply', 'modoboa.extensions.webmail', 'modoboa.extensions.stats', 'modoboa.extensions.sievefilters', 'modoboa.extensions.amavis') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'modoboa.lib.middleware.AjaxLoginRedirect', 'modoboa.lib.middleware.CommonExceptionCatcher', 'modoboa.lib.middleware.ExtControlMiddleware', 'modoboa.lib.middleware.RequestCatcherMiddleware') Traceback: File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in get_response 1. response = callback(request, _callback_args, *_callback_kwargs) File "/usr/lib64/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 2. return view_func(request, _args, *_kwargs) File "/usr/lib64/python2.7/site-packages/modoboa/lib/webutils.py" in topredirection 3. path = infos["url"] if infos["url"] else infos["name"] Exception Type: TypeError at / Exception Value: 'NoneType' object has no attribute '**getitem**' What went wrong?
kerem closed this issue 2026-02-27 11:12:20 +03:00
Author
Owner

@tonioo commented on GitHub (Jun 20, 2014):

Hi,

I don't think your issue is related to mod_ssl or mod_wsgi. It seems you have ghost entries inside the core_extension table... Can you check the content of this table and give me the result ?

<!-- gh-comment-id:46678853 --> @tonioo commented on GitHub (Jun 20, 2014): Hi, I don't think your issue is related to mod_ssl or mod_wsgi. It seems you have ghost entries inside the core_extension table... Can you check the content of this table and give me the result ?
Author
Owner

@piwats commented on GitHub (Jun 20, 2014):

Hello,

id name enabled
1 amavis 1
2 limits 0
3 postfix_autoreply 0
4 postfix_relay_domains 1
5 sievefilters 1
6 stats 1
7 webmail 1

this are the results.

<!-- gh-comment-id:46704078 --> @piwats commented on GitHub (Jun 20, 2014): Hello, id name enabled 1 amavis 1 2 limits 0 3 postfix_autoreply 0 4 postfix_relay_domains 1 5 sievefilters 1 6 stats 1 7 webmail 1 this are the results.
Author
Owner

@piwats commented on GitHub (Jun 20, 2014):

Somehow, the error disappeared by itself. It still would be nice to know, why this happened in the first place...

<!-- gh-comment-id:46705007 --> @piwats commented on GitHub (Jun 20, 2014): Somehow, the error disappeared by itself. It still would be nice to know, why this happened in the first place...
Author
Owner

@tonioo commented on GitHub (Jun 23, 2014):

Have you restarted apache ?

<!-- gh-comment-id:46890839 --> @tonioo commented on GitHub (Jun 23, 2014): Have you restarted apache ?
Author
Owner

@piwats commented on GitHub (Jun 23, 2014):

I have "reseted" pretty much everything. the whole webserver was restarted...

<!-- gh-comment-id:46916893 --> @piwats commented on GitHub (Jun 23, 2014): I have "reseted" pretty much everything. the whole webserver was restarted...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#544
No description provided.