Sarath Pv
Sarath Pv

Reputation: 143

Google cloud storage - permission denied exception

I am trying to access cloud storage bucket ,of my appengine project from another appengine project .

Since the cloud storage bucket is present in another project , I provided permission as mentioned here.

Traceback (most recent call last):

  File "/base/data/home/apps/s~dutch-barber/1.379022461794999395/barber/bems/service/__be_service_resource.py", line 182, in dispatch
    uploadToGcs(featuredImage,file_url)
  File "/base/data/home/apps/s~dutch-barber/1.379022461794999395/cloud_barber/utils.py", line 118, in uploadToGcs
    writable_file_name = files.gs.create(filePath,mime_type=file.content_type,cache_control='no-cache')
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/files/gs.py", line 331, in create
    return files._create(_GS_FILESYSTEM, filename=filename, params=params)
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/files/file.py", line 650, in _create
    _make_call('Create', request, response)
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/files/file.py", line 255, in _make_call
    _raise_app_error(e)
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/files/file.py", line 213, in _raise_app_error
    raise PermissionDeniedError(e)
PermissionDeniedError: ApplicationError: 8

Upvotes: 0

Views: 3657

Answers (2)

ashumeow
ashumeow

Reputation: 151

the link which you mentioned in your question has been deprecated.
Check the newer version of Google Cloud Storage Client Library and install it. Then, give it a try.

Upvotes: 1

user7180
user7180

Reputation: 4096

You could use the Developer Console to edit permission of your bucket. You will be able to add a project and set it as a owner / reader / writer

Upvotes: 0

Related Questions