First time here? Check out the FAQ!
0

Some assistance please installing on LAMP Turnkey appliance?

This is an excellent project but I am suffering newbie issues...

Askbot is installed on a turnkey.org LAMP appliance (v11.1) and runs using runserver aside from the following problems:

1) The preview is failing 2) The toolbar on editors does not appear

Rupreck's avatar
305
Rupreck
asked 2011-02-16 19:04:45 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Hi, sorry I am unavailable until Friday, will try to look into the problem then.
Evgeny's avatar Evgeny (2011-02-17 00:47:34 -0500) edit
add a comment see more comments

1 Answer

1

After copying the django.wsgi file from the /askbot*.egg path the problem went away - not sure why...

This also ensures that the following apache config statement was accurate and so this also then allowed Apache to work with it too

WSGIScriptAlias / /path/to/django-project/django.wsgi

Perhaps this file should be copied as part of the easy_install, pip etc?

Copying /skins from the .egg path was also done so now everything appears to work in Apache.

The following other things caught me out a bit:

1) Because the default database in settings.py is not set to mysql (instead it is set to postgres) an error regarding psycopg2 appears at the start of the process using easy_install askbot. At that point in the installation it is not obvious why - particularly for newbies

2) The log gives MSG: utils.py:get_media_url:145 missing media resource style/extra.css No idea why.

3) The default user cannot view questions. Triggers an error.

A lack of Karma prevents me uploading, so instead below is the extract from the error log showing the output from 3) that I tried to upload.


Blockquote> /usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/skins/utils.py TIME: 2011-02-18 07:25:47,757 MSG: utils.py:get_media_url:145 missing media resource style/extra.css in skin default /usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/skins/utils.py TIME: 2011-02-18 07:26:00,801 MSG: utils.py:get_media_url:145 missing media resource style/extra.css in skin default /usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/skins/utils.py TIME: 2011-02-18 07:26:03,583 MSG: utils.py:get_media_url:145 missing media resource style/extra.css in skin default /usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/middleware/pagesize.py TIME: 2011-02-18 07:26:03,650 MSG: pagesize.py:process_exception:43 File "/usr/local/lib/python2.6/dist-packages/Django-1.1.2-py2.6.egg/django/core/handlers/base.py", line 99, in get_response response = callback(request, callback_args, *callback_kwargs) File "/usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/views/readers.py", line 559, in question return render_into_skin('question.html', data, request) File "/usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/skins/loaders.py", line 145, in render_into_skin return HttpResponse(template.render(context), mimetype = mimetype) File "/usr/local/lib/python2.6/dist-packages/Coffin-0.3-py2.6.egg/coffin/template/__init__.py", line 51, in render return super(Template, self).render(**context) File "/usr/local/lib/python2.6/dist-packages/Jinja2-2.5.5-py2.6.egg/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/skins/default/templates/question.html", line 2, in top-level template code {% import "macros.html" as macros %} File "/usr/local/lib/python2.6/dist-packages/askbot-0.6.68-py2.6.egg/askbot/skins/default/templates/two_column_body.html", line 1, in top-level ... (more)

Rupreck's avatar
305
Rupreck
updated 2011-02-18 06:42:35 -0500, answered 2011-02-17 12:12:40 -0500
edit flag offensive 0 remove flag delete link

Comments

on 2) - the extra.css - can be missing - it is a placeholder for customisations - gives one of the options to customize css. 3) - may be a bug - or configuration issue - please give some more details and I will look tomorrow. 1) - correct - should probably add the psycopg2 requirement as well.
Evgeny's avatar Evgeny (2011-02-17 13:38:36 -0500) edit
RE 2) On our instance I simply put an empty file in it's place to placate the warnings.
tfoote's avatar tfoote (2011-02-17 13:41:15 -0500) edit
The warning itself is not a big deal aside from growing your log file. I'll have a second look at how this works tomorrow, but if the file is missing - the url should not be printed into the html output - therefore there will be one less http request. It should be better to delete the extra.css if it is empty.
Evgeny's avatar Evgeny (2011-02-17 13:48:21 -0500) edit
I am thinking that possibly some of the problems you encountered were due to the python egg form of installation. Since some of the files were not extracted - there would be errors.
Evgeny's avatar Evgeny (2011-02-18 05:22:19 -0500) edit
[I have updated the answer above to include the error log extract for point 3).] Is there another way to install? I simply followed the process described in the documentation http://askbot.org/doc/index.html Perhaps the 'startforum' script should copy the django.wsgi and /skins. I am still trying to figure out what is the lifecycle of an egg... Once installed are these typically deleted?
Rupreck's avatar Rupreck (2011-02-18 06:48:51 -0500) edit
add a comment see more comments