Ask Your Question
1

Cannot upload images in posts

asked 2014-01-27 19:06:47 -0600

FranciscoD gravatar image

updated 2014-01-27 21:55:43 -0600

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

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-01-27 22:54:49 -0600

FranciscoD gravatar image

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

MEDIA_ROOT = '/var/lib/askbot/upfiles/ask/'
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-01-27 19:06:47 -0600

Seen: 587 times

Last updated: Jan 27 '14