python - TemplateSyntaxError at / Caught IOError while rendering: (13, 'Permission denied') -
this error shown on page
tracebackfile "/usr/local/lib64/python2.6/site-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) file "/usr/local/lib64/python2.6/site-packages/django/views/generic/simple.py" in direct_to_template 28. return httpresponse(t.render(c), mimetype=mimetype) file "/usr/local/lib64/python2.6/site-packages/django/template/base.py" in render 123. return self._render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/base.py" in _render 117. return self.nodelist.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/base.py" in render 744. bits.append(self.render_node(node, context)) file "/usr/local/lib64/python2.6/site-packages/django/template/debug.py" in render_node 73. result = node.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/loader_tags.py" in render 127. return compiled_parent._render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/base.py" in _render 117. return self.nodelist.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/base.py" in render 744. bits.append(self.render_node(node, context)) file "/usr/local/lib64/python2.6/site-packages/django/template/debug.py" in render_node 73. result = node.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/loader_tags.py" in render 64. result = block.nodelist.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/base.py" in render 744. bits.append(self.render_node(node, context)) file "/usr/local/lib64/python2.6/site-packages/django/template/debug.py" in render_node 73. result = node.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/defaulttags.py" in render 313. return self.nodelist_false.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/base.py" in render 744. bits.append(self.render_node(node, context)) file "/usr/local/lib64/python2.6/site-packages/django/template/debug.py" in render_node 73. result = node.render(context) file "/usr/local/lib64/python2.6/site-packages/django/template/defaulttags.py" in render 437. url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app) file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in reverse 391. *args, **kwargs))) file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in reverse 312. possibilities = self.reverse_dict.getlist(lookup_view) file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in _get_reverse_dict 229. self._populate() file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in _populate 208. name in pattern.reverse_dict: file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in _get_reverse_dict 229. self._populate() file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in _populate 220. lookups.appendlist(pattern.callback, (bits, p_pattern)) file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in _get_callback 164. self._callback = get_callable(self._callback_str) file "/usr/local/lib64/python2.6/site-packages/django/utils/functional.py" in wrapper 124. result = func(*args) file "/usr/local/lib64/python2.6/site-packages/django/core/urlresolvers.py" in get_callable 91. lookup_view = getattr(import_module(mod_name), func_name) file "/usr/local/lib64/python2.6/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) file "/usr/lib64/python2.6/logging/__init__.py" in __init__ 790. stream = self._open() file "/usr/lib64/python2.6/logging/__init__.py" in _open 810. stream = open(self.basefilename, self.mode) exception type: templatesyntaxerror @ / exception value: caught ioerror while rendering: (13, 'permission denied')
what mean? how can solve it?
the user, apache running under, has no permissions write /tmp/ directory.
my suggested approach following:
- run apache proxy daemon process under non-root user.
- change log folder /tmp/ sub folder within /tmp, say, /tmp/projectname
- add apache user, permission write that folder.
Comments
Post a Comment