prototipando / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
1 stars 0 forks source link

gcloud crashes on gcloud docker pull #493

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

For me, every time I run the following:
nickyt@es-qa-master-1:/var/log$ sudo gcloud docker pull 
gcr.io/porch-gcp/elasticsearch:0.0.6
ERROR: gcloud crashed (ValueError): No JSON object could be decoded

If you would like to report this issue, please run the following command:
  gcloud feedback

I have tried `gcloud components update` and `gcloud components reinstall` and I 
get the same error every time.  Notably, I can successfully run that command on 
other machines.  I cannot reproduce it on other machines.
-----

What is the expected output? What do you see instead?

See above.
-----

What is the output of 'gcloud info'?

nickyt@es-qa-master-1:/var/log$ gcloud info
Google Cloud SDK [93.0.0]

Platform: [Linux, x86_64]
Python Version: [2.7.3 (default, Mar 13 2014, 11:03:55)  [GCC 4.7.2]]
Python Location: [/usr/bin/python2]
Site Packages: [Disabled]

Installation Root: [/usr/local/share/google/google-cloud-sdk]
Installed Components:
  core: [2016.01.14]
  core-nix: [2015.11.24]
  gcloud: []
  gsutil-nix: [4.15]
  gsutil: [4.16]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: [/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games]
Cloud SDK on PATH: [False]

Installation Properties: [/usr/local/share/google/google-cloud-sdk/properties]
User Config Directory: [/home/nickyt/.config/gcloud]
User Properties: [/home/nickyt/.config/gcloud/properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [920738820133-compute@developer.gserviceaccount.com]
Project: [porch-gcp]

Current Properties:
  [core]
    project: [porch-gcp]
    account: [920738820133-compute@developer.gserviceaccount.com]

Logs Directory: [/home/nickyt/.config/gcloud/logs]
Last Log File: [/home/nickyt/.config/gcloud/logs/2016.01.22/20.14.57.175055.log]
-----

Please provide any additional information below.

Original issue reported on code.google.com by nichol...@helpscore.com on 22 Jan 2016 at 8:21

GoogleCodeExporter commented 8 years ago
OS: Debian GNU/Linux 7.9 (wheezy)

Original comment by nichol...@helpscore.com on 22 Jan 2016 at 8:29

GoogleCodeExporter commented 8 years ago
I reproduced it on another machine after taking the same steps before running 
into the issue:
1) The machine was out of space
2) /var/log/docker.log taking up 60%, don't care about it
3) echo "" > /var/log/docker.log 
4) Space is free now 
5) restart docker 
6) try to pull `sudo gcloud docker pull gcr.io/porch-gcp/elasticsearch:0.0.6`
7) get error

Original comment by nichol...@helpscore.com on 22 Jan 2016 at 8:34

GoogleCodeExporter commented 8 years ago
This is solved by deleting /root/.dockercfg (it was an empty file).

The file is regenerated the next time gcloud is run.

Original comment by nichol...@helpscore.com on 22 Jan 2016 at 11:35

GoogleCodeExporter commented 8 years ago
Thanks for the report and solution. The empty /root/.dockercfg was probably due 
to the system out of space. It had enough space to create the file but not 
enough to add its contents. An internal issue is being filed on this.

Original comment by gsfow...@google.com on 23 Jan 2016 at 3:40

GoogleCodeExporter commented 8 years ago
Great, thanks for the response.

Original comment by nichol...@helpscore.com on 25 Jan 2016 at 6:09