First time here? Check out the FAQ!
1

Cannot upload images in posts

Hi,

We're unable to upload images in posts either on Ask Fedora or on this instance. Can you please check what's happened? We didn't have this issue with 0.7.48 iirc. Here's a screenshot.

image description

(I'm uploading the images to my fedorapeople space for the time being)

Here's the Fedora infrastructure ticket: https://fedorahosted.org/fedora-infrastructure/ticket/4197

EDIT:

Found this in the logs:

/usr/lib/python2.6/site-packages/askbot/views/writers.py TIME: 2014-01-26 06:33:16,632 MSG: writers.py:upload:111 [Errno 13] Permission denied: '/etc/askbot/sites/ask/config/askbot'

The requested directory doesn't exist:

[root@ask01 askbot]# ls /etc/askbot/sites/ask/config/
django.wsgi   __init__.pyo  manage.py   settings.py           settings.py.mustache.setmustache  tinymce_sample_config.py   urls.py
__init__.py   local.pp      manage.pyc  settings.pyc          settings.pyo                      tinymce_sample_config.pyc  urls.pyc
__init__.pyc  local.te      manage.pyo  settings.py.mustache  settings.py.set                   tinymce_sample_config.pyo  urls.pyo
[root@ask01 askbot]#
FranciscoD's avatar
71
FranciscoD
asked 2014-01-27 19:06:47 -0500, updated 2014-01-27 21:55:43 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Looks like a simple settings.py issue. Adding this seems to fix it:

MEDIA_ROOT = '/var/lib/askbot/upfiles/ask/'
FranciscoD's avatar
71
FranciscoD
answered 2014-01-27 22:54:49 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments