Well, that failed as well:
sudo /opt/google-cloud-sdk/bin/gcloud --quiet components update
./deploy.sh
Your current Cloud SDK version is: 98.0.0
You will be upgraded to version: 100.0.0
┌────────────────────────────────────────────────────────┐
│ These components will be updated. │
├─────────────────────────────────┬────────────┬─────────┤
│ Name │ Version │ Size │
├─────────────────────────────────┼────────────┼─────────┤
│ Cloud SDK Core Libraries │ 2016.03.04 │ 3.9 MiB │
│ Cloud Storage Command Line Tool │ 4.17 │ 2.6 MiB │
└─────────────────────────────────┴────────────┴─────────┘
For the latest full release notes, please visit:
https://cloud.google.com/sdk/release_notes
╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Cloud SDK Core Libraries ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Cloud Storage Command Line Tool ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud SDK Core Libraries ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Storage Command Line Tool ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Creating backup and activating new installation ═╣
╚════════════════════════════════════════════════════════════╝
Performing post processing steps...done.
Update done!
To revert your SDK to the previously installed version, you may run:
$ gcloud components update --version [98.0.0]
Traceback (most recent call last):
File "/opt/google-cloud-sdk/lib/gcloud.py", line 53, in <module>
main()
File "/opt/google-cloud-sdk/lib/gcloud.py", line 49, in main
sys.exit(googlecloudsdk.gcloud_main.main())
File "/opt/google-cloud-sdk/lib/googlecloudsdk/gcloud_main.py", line 167, in main
gcloud_cli = CreateCLI([])
File "/opt/google-cloud-sdk/lib/googlecloudsdk/gcloud_main.py", line 121, in CreateCLI
generated_cli = loader.Generate()
File "/opt/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 344, in Generate
cli = self.__MakeCLI(top_group)
File "/opt/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 546, in __MakeCLI
log.AddFileLogging(self.__logs_dir)
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 656, in AddFileLogging
_log_manager.AddLogsDir(logs_dir=logs_dir)
File "/opt/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 364, in AddLogsDir
file_handler = logging.FileHandler(log_file)
File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
stream = open(self.baseFilename, self.mode)
./deploy.sh returned exit code 1
IOError: [Errno 13] Permission denied: '/home/ubuntu/.config/gcloud/logs/2016.03.16/02.00.03.519350.log' Action failed: ./deploy.sh
I’m going to go back to my original working path of just installing the debian and pointing to that path.
# Install gcloud cause the circle server already has an old version of it installed: https://cloud.google.com/sdk/#deb
# Create an environment variable for the correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Update and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk
export PATH="/usr/lib/google-cloud-sdk/bin:$PATH"