[kforge-user] Internal Server Error

John Bywater john.bywater at appropriatesoftware.net
Fri Jan 22 02:10:50 UTC 2010


Hi Nick,

That's actually a KForge bug, which has now been fixed. But you can 
hopefully fix your system by finding the KForge lib and editing one of 
the Django settings.

Perhaps you can edit this file (I'm guessing the path):


/usr/local/kforge/lib/python2.4/site-packages/kforge-0.17-py2.4.egg/kforge/django/settings/main.py


and edit the line:


DATABASE_ENGINE = 'postgresql' # Needed to make Django v0.96.3 load 
500.html.


so that you have this instead:


DATABASE_ENGINE = 'dummy'


Then restart your web server and try again to load the KForge pages.

Let me know how you get on?

John.

PS The CentOS is still installing...


Nick Ascione wrote:
> It's just a standard Centos 5 box
> 
> On Thu, Jan 21, 2010 at 12:11 PM, John Bywater
> <john.bywater at appropriatesoftware.net> wrote:
>> Nick Ascione wrote:
>>> Hello,
>>> I have tried to install kforge with the sqlite db and now I get this
>>> error in the apache logs. This is looks like a postgress error so I am
>>> a bit confused as to what is happening.
>> I'm sorry you're having trouble. I'll investigate and let you know what I
>> can find. If you can think of anything unusual about your environment,
>> please let me know. :-)
>>
>> Best wishes,
>>
>> John.
>>
>>
>>> Thanks,
>>> Nick
>>>
>>>
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler: Traceback (most recent call
>>> last):
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299,
>>> in HandlerDispatch\n    result = object(req)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/core/handlers/modpython.py",
>>> line 228, in handler\n    return ModPythonHandler()(req)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/core/handlers/modpython.py",
>>> line 201, in __call__\n    response = self.get_response(request)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/core/handlers/base.py",
>>> line 73, in get_response\n    response = middleware_method(request)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/contrib/sessions/middleware.py",
>>> line 10, in process_request\n    engine =
>>> import_module(settings.SESSION_ENGINE)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/utils/importlib.py",
>>> line 35, in import_module\n    __import__(name)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/contrib/sessions/backends/db.py",
>>> line 2, in ?\n    from django.contrib.sessions.models import Session
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/contrib/sessions/models.py",
>>> line 4, in ?\n    from django.db import models
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/db/__init__.py",
>>> line 41, in ?\n    backend = load_backend(settings.DATABASE_ENGINE)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/db/__init__.py",
>>> line 17, in load_backend\n    return import_module('.base',
>>> 'django.db.backends.%s' % backend_name)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/utils/importlib.py",
>>> line 35, in import_module\n    __import__(name)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler:   File
>>>
>>> "/usr/local/kforge/lib/python2.4/site-packages/Django-1.1-py2.4.egg/django/db/backends/postgresql/base.py",
>>> line 20, in ?\n    raise ImproperlyConfigured("Error loading psycopg
>>> module: %s" % e)
>>> [Wed Jan 20 21:27:35 2010] [error] [client 68.48.12.8] PythonHandler
>>> kforgevirtualenvhandlers::djangohandler: ImproperlyConfigured: Error
>>> loading psycopg module: No module named psycopg
>>>
>>> _______________________________________________
>>> kforge-user mailing list
>>> kforge-user at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/kforge-user
>>





More information about the kforge-user mailing list