Ask Your Question
1

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

asked 2013-06-19 00:15:29 -0500

FranciscoD gravatar image

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)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-19 04:25:55 -0500

Evgeny gravatar image

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

Try this with runserver and debug mode enabled.

edit flag offensive delete link more

Comments

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

FranciscoD gravatar imageFranciscoD ( 2013-06-20 02:37:35 -0500 )edit

Seems to work recently. Not sure what changed.

FranciscoD gravatar imageFranciscoD ( 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 gravatar imageMustafa ( 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 gravatar imageEvgeny ( 2013-08-10 20:10:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-06-19 00:15:29 -0500

Seen: 65 times

Last updated: Jun 19 '13