← Back to team overview

graphite-dev team mailing list archive

Re: [Question #274466]: Unable to open database file when django-admin syncdb

 

Question #274466 on Graphite changed:
https://answers.launchpad.net/graphite/+question/274466

Denis Zhdanov proposed the following answer:
You need to create directory for db file explicitly and check that your web server have enough rights to write to that file.
Something like 
sudo mkdir -p /opt/graphite/storage/ && sudo chown nobody:nobody /opt/graphite/storage/

Please replace "nobody" with your Apache user - it's 'nobody' for Redhat-based linux and 'www-data' for Ubuntu, for ex.
You can run something like
ps -ef | grep httpd | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'
to find out under which user Apache workers run.

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.