PacketFire / paste-click

Paste text, images, video or any file
http://paste.click
3 stars 1 forks source link

GCS store issues #35

Closed RaasAhsan closed 5 years ago

RaasAhsan commented 5 years ago

More insight into what went wrong would be good as well

request

~ # curl -X POST -d 'test' http://localhost:8001/
Unable to save object
http://localhost:8001/098f6bcd4621d373cade4e832627b4f6

Application logs

::1 - - [30/Jan/2019:06:10:47 +0000] "POST / HTTP/1.1" 500 77

k8s config

env:
            - name: ADDR
              value: ':8001'
            - name: STORAGE_DRIVER
              value: gcs
            - name: STORE_GCS_BUCKET_NAME
              value: paste-click-objects
            - name: GOOGLE_APPLICATION_CREDENTIALS
              value: /var/secrets/google/key.json
ncatelli commented 5 years ago

This could be as simple as just missing the ca-certificates package

backend_1   | Post https://www.googleapis.com/upload/storage/v1/b/test-paste-click/o?alt=json&prettyPrint=false&projection=full&uploadType=multipart: oauth2: cannot fetch token: Post https://accounts.google.com/o/oauth2/token: x509: certificate signed by unknown authority