Jump to content

[Solved] Django not working..


kruptein

Recommended Posts

There were indeed some chmod mistakes, but I fixed them all and I still have a server error.. :s

Is there no way that I can see the apache error logs?

 

 

In the error logs from cpanel I have these:

1) /home/kruptein/.python_egg_cache, referer: http://kruptools.heliohost.org/

[Errno 13] Permission denied: '/home/kruptein/.python_egg_cache/hashlib-20081119-py2.4-linux-x86_64.egg-tmp', referer: http://kruptools.heliohost.org/

2) File "/home/kruptein/public_html/kruptools/dispatch.wsgi", line 9, in application, referer: http://kruptools.heliohost.org/

mod_wsgi (pid=13959): Exception occurred processing WSGI script '/home/kruptein/public_html/kruptools/dispatch.wsgi'., referer: http://kruptools.heliohost.org/

 

1) there is no file in the .python_egg_cache directory and it is chmodded to 775

2) that line is just the same as in the example

Link to comment
Share on other sites

Here's the stack of errors I'm seeing for you:

[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] mod_wsgi (pid=13959): Exception occurred processing WSGI script '/home/kruptein/public_html/kruptools/dispatch.wsgi'., referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] Traceback (most recent call last):, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/home/kruptein/public_html/kruptools/dispatch.wsgi", line 9, in application, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     return _application(environ, start_response), referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 230, in __call__, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     self.load_middleware(), referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 40, in load_middleware, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     mod = import_module(mw_module), referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/utils/importlib.py", line 35, in import_module, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     __import__(name), referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/middleware/common.py", line 8, in ?, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     from django.utils.hashcompat import md5_constructor, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/utils/hashcompat.py", line 9, in ?, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     import hashlib, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/hashlib-20081119-py2.4-linux-x86_64.egg/hashlib.py", line 105, in ?, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/hashlib-20081119-py2.4-linux-x86_64.egg/_hashlib.py", line 7, in ?, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/hashlib-20081119-py2.4-linux-x86_64.egg/_hashlib.py", line 4, in __bootstrap__, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 840, in resource_filename, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     return get_provider(package_or_requirement).get_resource_filename(, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1311, in get_resource_filename, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     return self._extract_resource(manager, zip_path), referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1331, in _extract_resource, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     real_path = manager.get_cache_path(, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 921, in get_cache_path, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     self.extraction_error(), referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 887, in extraction_error, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]     raise err, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] ExtractionError: Can't extract file(s) to egg cache, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] The following error occurred while trying to extract file(s) to the Python egg, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] cache:, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   [Errno 13] Permission denied: '/home/kruptein/.python_egg_cache/hashlib-20081119-py2.4-linux-x86_64.egg-tmp', referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] The Python egg cache directory is currently set to:, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   /home/kruptein/.python_egg_cache, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] Perhaps your account does not have write access to this directory?  You can, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] change the cache directory by setting the PYTHON_EGG_CACHE environment, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] variable to point to an accessible directory., referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] File does not exist: /home/kruptein/public_html/500.shtml, referer: http://kruptools.heliohost.org/

Link to comment
Share on other sites

now I'm totally confused :s

 

The last lines say that there is no permission on the python_egg_cache

but I chmodded it to 775!

and I set the python_egg_cache exactly like in the example except of the yellow highlighted parts

 

[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   [Errno 13] Permission denied: '/home/kruptein/.python_egg_cache/hashlib-20081119-py2.4-linux-x86_64.egg-tmp', referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] The Python egg cache directory is currently set to:, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45]   /home/kruptein/.python_egg_cache, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] , referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] Perhaps your account does not have write access to this directory?  You can, referer: http://kruptools.heliohost.org/
[Fri Jul 02 18:52:11 2010] [error] [client 81.165.164.45] change the cache directory by setting the PYTHON_EGG_CACHE environment, referer: http://kruptools.heliohost.org/

 

 

the first part says that there is an error on line 9 of dispatch.wsgi but it's just the same as the example :s

 

Link to comment
Share on other sites

No, they're not. Didn't you fix the original problem already? If you did, you should set up custom error logging so I don't have to bother with this.

 

[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45] mod_wsgi (pid=26857): Exception occurred processing WSGI script '/home/kruptein/public_html/dispatch.wsgi'.
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45] Traceback (most recent call last):
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 230, in __call__
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]     self.load_middleware()
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 33, in load_middleware
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/utils/functional.py", line 269, in __getattr__
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]     self._setup()
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 40, in _setup
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]     self._wrapped = Settings(settings_module)
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]   File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 75, in __init__
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45]     raise ImportError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)
[Mon Jul 05 02:47:02 2010] [error] [client 81.165.164.45] ImportError: Could not import settings 'dbug.settings' (Is it on sys.path? Does it have syntax errors?): No module named dbug.settings
[Mon Jul 05 02:47:56 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Jul 05 02:47:56 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Jul 05 02:47:57 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://kruptools.heliohost.org/
[Mon Jul 05 02:47:57 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://kruptools.heliohost.org/
[Mon Jul 05 02:48:59 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Jul 05 02:48:59 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Jul 05 02:49:00 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://kruptools.heliohost.org/
[Mon Jul 05 02:49:00 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://kruptools.heliohost.org/
[Mon Jul 05 02:49:23 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Jul 05 02:49:23 2010] [error] [client 81.165.164.45] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...