Zak Posted May 17, 2010 Posted May 17, 2010 Hello, site: uacentral.org.ru heliohost name: seven Problem is this error messages: [Mon May 17 02:14:07 2010] [error] [client 188.72.202.16] File "/home/seven/public_html/site1/urls.py", line 4, in ? [Mon May 17 02:14:07 2010] [error] [client 188.72.202.16] File "/home/seven/public_html/site1/dispatch.wsgi", line 29, in application [Mon May 17 02:14:07 2010] [error] [client 188.72.202.16] mod_wsgi (pid=4366): Exception occurred processing WSGI script '/home/seven/public_html/site1/dispatch.wsgi'. In file /home/seven/public_html/site1/urls.py in line 4 is this lines: from django.contrib import admin Is it Django problem, or it is my part ? Thanks!
Wizard Posted May 17, 2010 Posted May 17, 2010 This support request is being escalated to our root admin.
Ashoat Posted May 17, 2010 Posted May 17, 2010 Here's the full error I'm seeing: mod_wsgi (pid=31720): Exception occurred processing WSGI script '/home/seven/public_html/site1/dispatch.wsgi'. [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] Traceback (most recent call last): [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/home/seven/public_html/site1/dispatch.wsgi", line 29, in application [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] return _application(environ, start_response) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 241, in __call__ [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] response = self.get_response(request) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 73, in get_response [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] response = middleware_method(request) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/middleware/common.py", line 56, in process_request [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] if (not _is_valid_path(request.path_info) and [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/middleware/common.py", line 142, in _is_valid_path [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] urlresolvers.resolve(path) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 303, in resolve [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] return get_resolver(urlconf).resolve(path) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 216, in resolve [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] for pattern in self.url_patterns: [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 245, in _get_url_patterns [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 240, in _get_urlconf_module [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] self._urlconf_module = import_module(self.urlconf_name) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/utils/importlib.py", line 35, in import_module [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] __import__(name) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/home/seven/public_html/site1/urls.py", line 4, in ? [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] from django.contrib import admin [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/contrib/admin/__init__.py", line 1, in ? [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/contrib/admin/helpers.py", line 7, in ? [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] from django.contrib.admin.util import flatten_fieldsets [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/contrib/admin/util.py", line 2, in ? [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] from django.db import models [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 41, in ? [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] backend = load_backend(settings.DATABASE_ENGINE) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 17, in load_backend [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] return import_module('.base', 'django.db.backends.%s' % backend_name) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/utils/importlib.py", line 35, in import_module [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] __import__(name) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/base.py", line 30, in ? [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] raise ImproperlyConfigured, "Error loading %s: %s" % (module, exc) [Mon May 17 02:26:48 2010] [error] [client 188.72.202.16] ImproperlyConfigured: Error loading pysqlite2 module: No module named pysqlite2
Zak Posted May 18, 2010 Author Posted May 18, 2010 You should install that module? It was work before DDoS without these. I have pysqlite-2.5.0-py2.4-linux-x86_64.egg-tmp in /.python_egg_cache ... isn't it what needed?
Bruno Posted May 18, 2010 Posted May 18, 2010 Had same problem, solved installing files from http://www.rpmfind.net/linux/RPM/dag/redha....rf.x86_64.html in a personalized site-package directory, added to wsgi dispatcher in this way ALLDIRS = ['/home/endeios/public_html/site-packages'] # my site-package dir # Remember original sys.path. prev_sys_path = list(sys.path) # Add each new site-packages directory. for directory in ALLDIRS: site.addsitedir(directory) # Reorder sys.path so new directories at the front. new_sys_path = [] for item in list(sys.path): if item not in prev_sys_path: new_sys_path.append(item) sys.path.remove(item) sys.path[:0] = new_sys_path hope this helps
Ashoat Posted May 19, 2010 Posted May 19, 2010 Since this module seems pretty basic, I decided to install it. Got errors at first, but after reinstalling sqlite everything started working.
Recommended Posts