continuous-integration icon indicating copy to clipboard operation
continuous-integration copied to clipboard

[Bazel CI] Error creating google cloud storage client: google could not find default credentials.

Open sgowroji opened this issue 3 months ago • 1 comments

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3826#018f3254-f257-41a2-8c5e-350b2a74de4f

Platform: Ubuntu

Logs:

2024-05-01 04:43:26 ERROR  Failed to download artifact: Error creating Google Cloud Storage client: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
2024-05-01 04:43:26 FATAL  Failed to download artifacts: There were errors with downloading some of the artifacts
Traceback (most recent call last):
  File "bazelci.py", line 4434, in <module>
    sys.exit(main())
  File "bazelci.py", line 4402, in main
    execute_commands(
  File "bazelci.py", line 1272, in execute_commands
    os.environ["USE_BAZEL_VERSION"] = download_bazel_binary(tmpdir, binary_platform)
  File "bazelci.py", line 1687, in download_bazel_binary
    return download_binary(dest_dir, platform, binary_name)
  File "bazelci.py", line 1676, in download_binary
    execute_command(
  File "bazelci.py", line 2709, in execute_command
    return subprocess.run(
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['buildkite-agent', 'artifact', 'download', 'bazel', '/tmp/tmpaoaeb44k', '--step', 'Build Bazel (:centos: CentOS 7)']' returned non-zero exit status 1.
🚨 Error: The command exited with status 1

CC Greenteam @salmasamy

sgowroji avatar May 02 '24 05:05 sgowroji