When trying to upload a file to a dataset in CKAN, I get this error in the web interface:
Failed to get credentials for storage upload. Upload cannot proceed
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This error is usually caused either by CKAN’s FileStore not being setup correctly, or the FileStore’s dependencies not being installed correctly. See CKAN’s FileStore and File Uploads documentation.
Make sure that:
You have
pairtreeinstalled in your CKAN virtualenv (pip install pairtree)You have
argparseinstalled in your CKAN virtualenv (pip install argparse)You have the
ofs.implandofs.storage_diroptions set correctly in the[app:main]section of your CKAN ini file, e.g.:Make sure that your
ofs.storage_dirdirectory exists. Run this command in a shell:mkdir -p /path/to/your/ofs/storage/dir.Make sure that the operating system user that CKAN runs as (e.g. the user
www-data, if you are running CKAN with Apache on Ubuntu) has read and write permissions for theofs.storage_dir. For example, if you are running CKAN with Apache on Ubuntu, run these commands in the terminal:If all of the above fails then ask for help, either using this CKAN tag on StackOverflow or the ckan-dev mailing list. When posting, it is useful to include:
paster serve ...or, if you’re running CKAN with Apache, from a log file such as/var/log/apache2/YOURSITE.error.log. If you can get us a full Python traceback, this is usually the most useful thing.pip freezecommand when run in your CKAN virtualenv.