TkTech / ckanext-cloudstorage

Implements support for resource storage against multiple popular providers via apache-libcloud (S3, Azure Storage, etc...)
MIT License
35 stars 56 forks source link

Google Storage Bucket Support #49

Open Patrick1Rhode opened 3 years ago

Patrick1Rhode commented 3 years ago

I am trying to use the Google Storage Account bucket to store CKAN resources. I have installed CKAN(2.8) from the source installed the ckanext-cloudstorage extension by following the steps outlined here


# Cloud storage settings

ckanext.cloudstorage.driver = GOOGLE_STORAGE
ckanext.cloudstorage.container_name = ckanx-storage
ckanext.cloudstorage.driver_options = {"key": "my-storage-xxx-xxx@xxxx.gserviceaccount.com", "secret": "myprivate.priv"} 

After the file upload, I can see the uploaded file on the Google storage bucket, but it's getting the error below when the plugin tries to fetch the file.

File '/usr/lib/ckan/default/local/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py', line 319 in get_object object_name=object_name) ObjectDoesNotExistError: <ObjectDoesNotExistError in <libcloud.storage.drivers.google_storage.GoogleStorageDriver object at 0x7f09a5b40bd0>, value=None, object = resources/373d57c3-4508-4c9c-ac6e-da9eb4cf828e/favicon.ico>

Detailed log here attached logs.txt.

Is this issue related to this, if so are you interested for a contribution regarding this.

Thank you.