[ckan-dev] Resource upload error

Sajjad Anwar sajjad.anwar at apu.edu.in
Wed Mar 21 08:03:50 UTC 2012


On Tue, Mar 20, 2012 at 5:04 PM, Sean Hammond <sean.hammond at okfn.org> wrote:
>> I've setup CKAN and now have issues with uploading files and resources.
>> After creating a dataset, when I try adding a resource file, I get the
>> following error "Failed to get credentials for storage upload. Upload
>> cannot proceed"
>>
>> When I go to /storage/upload to upload a file, I get a "Server Error".
>>
>> I followed the steps here
>> http://docs.ckan.org/en/latest/filestore.html and
>> http://packages.python.org/ckanext-storage. Edited the config file to
>> add the following:
>>
>> ## Required
>> ## 'Bucket' (subdirectory for file based storage) to use for file storage
>> ckan.storage.bucket = /home/<user>/<data_folder>
>>
>> ckan.plugins = storage
>> ofs.impl = pairtree
>> ofs.storage_dir = /home/<user>/<data_folder>
>>
>> I checked the apache logs and this is what I can see:
>> "Error - <class
>> 'pairtree.storage_exceptions.NotAPairtreeStoreException'>: , referer:
>> http://192.168.1.64/dataset/edit/<dataset_name>"
>
> Hi Sajjad, this looks like a known issue that will be fixed in the next
> release. For now, you should be able to get around it: you need to let
> pairtree know that your data folder is actually a pairtree repository,
> by creating an empty file called pairtree_version0_1 inside the data
> folder. By the data folder, I mean the directory that you've set as your
> ofs.storage_dir. Then is should work
>
> Let me know if that helps

Dear Sean,
That works! Thank you so much!


Cheers,
Sajjad

>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev



-- 
Sajjad Anwar | W: http://sajjad.in | T: @geohacker




More information about the ckan-dev mailing list