First time here? Check out the FAQ!
1

Adding "Instructions on how to ask questions" leads to server errors.

I've just been trying to add a snippet to the "Instructions on how to ask questions" setting. I validated the snippet, and it's correct:

<h2>How do I ask a good question?</h2>
Good questions are easy to find, and should have enough information for someone to suggest a solution. Here are some tips on asking good questions:

<ul>
<li>Frame a question</li>
<li>Use correct tags. See the <a href="ask.stg.fedoraproject.org/tags">list of tags</a> for what tags you should use. It makes it easy for people to find your question</li>
<li>Use the mark up tools: This makes your question more readable</li>
<li>Provide information that could be helpful to a reader</li>
</ul>

A complete list of tips is maintained on our <a href="https://fedoraproject.org/wiki/Ask_fedora_guidelines#List">guidelines page</a>. Please do read it through at least once.

When I click the "save" button, the server barfs with an internal error. Here's the httpd error log snippet:

[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88] mod_wsgi (pid=14598): Exception occurred processing WSGI script '/usr/sbin/askbot.wsgi'.
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88] Traceback (most recent call last):
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 272, in __call__
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     response = self.get_response(request)
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 218, in handle_uncaught_exception
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     return callback(request, **param_dict)
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     response = view_func(request, *args, **kwargs)
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/django/views/defaults.py", line 31, in server_error
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     return http.HttpResponseServerError(t.render(Context({})))
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]   File "/usr/lib/python2.6/site-packages/coffin/template/__init__.py", line 54, in render
[Wed Jun 19 05:04:04 2013] [error] [client 10.5.126.88]     return super(Template, self).render(**context)
[Wed Jun 19 05:04:04 2013] [error] [client ...
(more)
FranciscoD's avatar
71
FranciscoD
asked 2013-06-19 00:15:29 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I cannot reproduce this issue. Copy/pasted your exact code and it just works.

Try this with runserver and debug mode enabled.

Evgeny's avatar
13.2k
Evgeny
answered 2013-06-19 04:25:55 -0500
edit flag offensive 0 remove flag delete link

Comments

Aha! I'll do that and post. Thanks for confirming @Evgeny

FranciscoD's avatar FranciscoD (2013-06-20 02:37:35 -0500) edit

Seems to work recently. Not sure what changed.

FranciscoD's avatar FranciscoD (2013-07-18 20:23:34 -0500) edit

It's happen sometimes in random /settings options, what I do is click back button redo my settings and save, I don't have any idea what's wrong with that.

Mustafa's avatar Mustafa (2013-08-10 17:41:15 -0500) edit

@Mustafa, enable debug mode to see the cause of this. Don't know if this is relevant in your case, but do use real cache backend in production, with locmem there will be issues with the multiprocess setup.

Evgeny's avatar Evgeny (2013-08-10 20:10:10 -0500) edit
add a comment see more comments