You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running the following command to launch jobs using a GCP service account:
python cli.py jobs launch ~/hello-sky/hello_sky.yaml --use-spot
The job failed with an error related to invalid OAuth 2.0 credentials:
(sky-3b74-hong, pid=3644) Your "OAuth 2.0 Service Account" credentials are invalid. Please run
(sky-3b74-hong, pid=3644) $ gcloud auth login
(sky-3b74-hong, pid=3644) OSError: No such file or directory.
The error message indicates an issue with the GCP service account credentials not being properly configured or authenticated. Upon further investigation, the root cause appears to be the environment variable GOOGLE_APPLICATION_CREDENTIALS not being set.
Root cause:
The root cause is the missing environment variable GOOGLE_APPLICATION_CREDENTIALS. The environment was not properly set up to point to the service account key file located at ~/.config/gcloud/application_default_credentials.json.
After manually setting the environment variable and activating the service account with:
Issue Summary:
While running the following command to launch jobs using a GCP service account:
The job failed with an error related to invalid OAuth 2.0 credentials:
(sky-3b74-hong, pid=3644) Your "OAuth 2.0 Service Account" credentials are invalid. Please run (sky-3b74-hong, pid=3644) $ gcloud auth login (sky-3b74-hong, pid=3644) OSError: No such file or directory.
The error message indicates an issue with the GCP service account credentials not being properly configured or authenticated. Upon further investigation, the root cause appears to be the environment variable GOOGLE_APPLICATION_CREDENTIALS not being set.
Error detail:
Root cause:
The root cause is the missing environment variable GOOGLE_APPLICATION_CREDENTIALS. The environment was not properly set up to point to the service account key file located at ~/.config/gcloud/application_default_credentials.json.
After manually setting the environment variable and activating the service account with:
The issue was resolved, and the gsutil command began functioning correctly, allowing the job to run successfully.
Version & Commit info:
sky -v
: PLEASE_FILL_INsky -c
: PLEASE_FILL_INThe text was updated successfully, but these errors were encountered: