Skip to content

GCloud: Could not refresh access token. #167

@jackmatt2

Description

@jackmatt2

Getting an error:

Fail to upload file *********.json, error:  Could not refresh access token.

Codefresh job

title: Publishing test report
image: codefresh/cf-docker-test-reporting
working_directory: '${{CF_VOLUME_PATH}}/'
environment:
  - BUCKET_NAME=our-bucket-name
  - CF_STORAGE_INTEGRATION=our-integration-name
name: publish_report

Can manually upload upload as follows

gcloud auth activate-service-account --key-file=/Users/FooBar/Desktop/google_storage_key.json

Activated service account credentials for: [foobar@foobar-ABC.iam.gserviceaccount.com]


➜  ~ gsutil cp ./favicon.ico gs://our-bucket-name/

Copying file://./favicon.ico [Content-Type=image/x-icon]...

/ [1 files][  628.0 B/  628.0 B]                                                

Operation completed over 1 objects/628.0 B.                                      

➜  ~ gsutil ls gs://our-bucket-name           

gs://our-bucket-name/favicon.ico

Is there some sort of special permission we need to use for the integration account? Any ideas on how to resolve?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions