You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "alborotogarcia (via GitHub)" <gi...@apache.org> on 2025/04/24 22:01:48 UTC
[I] Exception when communicating with the Polaris server. RuntimeException: Failed to get GCP credentials [polaris]
alborotogarcia opened a new issue, #1450:
URL: https://github.com/apache/polaris/issues/1450
### Describe the bug
Hi,
I cannot create a Catalog with GCS storage type,
I have successfully setup and boostrapped Polaris on GKE,
First, used Polaris API to fetch BEARER_TOKEN
<img width="553" alt="Image" src="https://github.com/user-attachments/assets/877f3f18-2496-4b47-bb2c-9adcc1644529" />
<img width="720" alt="Image" src="https://github.com/user-attachments/assets/86b0106e-8939-47f6-baa2-c03d202b6ffe" />
Finally I am not able to create the Catalog via API and cli:
<img width="715" alt="Image" src="https://github.com/user-attachments/assets/4f91a494-5ef7-4b6c-85ce-ef54d7d743cf" />
./polaris --host polaris --port 8181 --access-token $BEARER_TOKEN catalogs create --storage-type GCS --default-base-location gs://polaris/catalog/ --allowed-location gs://polaris/catalog/ --service-account /etc/gcp/google_credentials.json quickstart_catalog
### To Reproduce
1. Build polaris and polaris-mgmt images with postgres
./gradlew \
:polaris-quarkus-server:assemble \
:polaris-quarkus-server:quarkusAppPartsBuild --rerun \
:polaris-quarkus-admin:assemble \
:polaris-quarkus-admin:quarkusAppPartsBuild --rerun \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.5 \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true
2. Push containers to a registry
3. Mount gcp service account at /etc/gcp/google_credentials.json
4. Setup polaris config and Deploy bootstrap and polaris server images
### Actual Behavior
_No response_
### Expected Behavior
_No response_
### Additional context
_No response_
### System information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exception when communicating with the Polaris server. RuntimeException: Failed to get GCP credentials [polaris]
Posted by "alborotogarcia (via GitHub)" <gi...@apache.org>.
alborotogarcia closed issue #1450: Exception when communicating with the Polaris server. RuntimeException: Failed to get GCP credentials
URL: https://github.com/apache/polaris/issues/1450
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exception when communicating with the Polaris server. RuntimeException: Failed to get GCP credentials [polaris]
Posted by "alborotogarcia (via GitHub)" <gi...@apache.org>.
alborotogarcia commented on issue #1450:
URL: https://github.com/apache/polaris/issues/1450#issuecomment-2828975277
BTW, also tried passing the json SA as a string but same output
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exception when communicating with the Polaris server. RuntimeException: Failed to get GCP credentials [polaris]
Posted by "adnanhemani (via GitHub)" <gi...@apache.org>.
adnanhemani commented on issue #1450:
URL: https://github.com/apache/polaris/issues/1450#issuecomment-2829001281
From this information, seems like this is the LOC that's erroring out: https://github.com/apache/polaris/blob/250bdec0f7cd08559ddf1e3bd0f3d9f5cc2ec387/service/common/src/main/java/org/apache/polaris/service/storage/StorageConfiguration.java#L86
If I'm reading this correctly, it means that there was no GCP Access Token found (which is expected since you are using the Service Account file), but the node is unable to resolve the Service Account file using the Google Default Credential Provider chain. Do you need to run `gcloud auth activate-service-account` or something similar to ensure the node is able to pick up this identity?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exception when communicating with the Polaris server. RuntimeException: Failed to get GCP credentials [polaris]
Posted by "adnanhemani (via GitHub)" <gi...@apache.org>.
adnanhemani commented on issue #1450:
URL: https://github.com/apache/polaris/issues/1450#issuecomment-2829002064
Just noticed you closed this, glad that you were able to figure it out. Mind sharing what was the issue in case someone else runs into something similar in the future?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Exception when communicating with the Polaris server. RuntimeException: Failed to get GCP credentials [polaris]
Posted by "alborotogarcia (via GitHub)" <gi...@apache.org>.
alborotogarcia commented on issue #1450:
URL: https://github.com/apache/polaris/issues/1450#issuecomment-2844218429
Yes indeed, I had a typo on the json credentials path.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org