= bug description =
It appears the uploading files part is broken. I can't upload image files in posts on both staging and production. I haven't been able to set the favicon either from settings.
/var/lib/askbot/upfiles/ask is completely empty. I wonder if it should contain images that we'd uploaded before updating to 0.7.49?
A lot of these in the apache error log:
[Sun Jan 26 06:40:25 2014] [error] [client 192.168.1.15] File does not exist: /var/lib/askbot/upfiles/ask/ask_favicon.ico
= bug analysis =
Not really sure yet about what's causing this. Checking up settings and stuff.
= fix recommendation =
Can not do it on upstream's instance too. Issue filed:
On both stg and prod:
/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 does not 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
Tweaking settings.py seems to fix this. Kevin helped me locally modify settings.py on staging. Here's the change:
MEDIA_ROOT = '/var/lib/askbot/upfiles/ask/'
We haven't corrected this in ansible yet, because a shared storage will need to be set up for the two prod servers.
This has now been fixed: we now upload everything into a gluster shared store.
to comment on this ticket.