[ckan-dev] file storage setup in 1.7

Ross Jones ross.jones at okfn.org
Thu May 24 08:51:55 UTC 2012


Hi Jim

If you're using 1.7 you shouldn't need ckanext-storage at all, it might just 
confuse the situation so probably best if you disable it (remove it from your .ini).

Could you post your .ini to pastebin with any sensitive (database) info removed? 
Everytime this happens to me it is because I've forgotten to install pairtree
or have set ofs.storage_dir to a folder where I don't have permissions.

I'm assuming you are using local file storage, in which case it might be worth seeing 
if CKAN has created a pairtree_version0_1 file (empty) in the folder specified in 
ofs.storage_dir. If not create one and see if that makes a difference.

Ross


On 24 May 2012, at 06:27, Jim Craner wrote:

> Hi all,
> 
> I'm trying to configure CKAN 1.7 (package install) on an Ubuntu 10.04
> appliance and I'm having some problems with the file storage
> functionality.  I'm trying to use local file storage based on these
> instructions:
> 
> http://docs.ckan.org/en/ckan-1.7/filestore.html
> 
> In addition to the settings recommended in that doc, I also did a "pip
> install ckanext-storage" and added "storage" to my .ini file's list of
> extensions.
> 
> 1) When I try to upload a file as a resource, I am able to select the
> file but when I click the "upload" button I get the "Failed to get
> credentials for storage upload. Upload cannot proceed" error message
> (I am logged in as the admin user).
> 
> 2) When I try to upload a file via the /storage/upload method, I am
> again able to select the file but attempting to upload returns a
> generic "Server Error / an internal error occurred" message.  In the
> /var/log/apache2/INSTANCENAME.error.log, I can see dozens of error
> messages related to "/storage/upload" and "/storage/upload_handle" but
> I'm not really sure what I'm looking for.
> 
> Any suggestions?
> 
> Thanks!
> Jim
> 
> 
> 
> -- 
> -----
> Jim Craner, 2012 Fellow
> Code for America
> jim at codeforamerica.org
> (+1) 773-809-4546
> http://codeforamerica.org
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev





More information about the ckan-dev mailing list