venf2k / google-cloud-sdk

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

gcloud docker push crashes when trying to push to google cloud registry #752

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command [gcloud docker].

What steps will reproduce the problem?

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

Please provide any additional information below.

Trace:
/Users/arealmaas/google-cloud-sdk/gcloud_main.py:169
 gcloud_cli.Execute()
/Users/arealmaas/google-cloud-sdk/calliope/cli.py:654
 result = args.cmd_func(cli=self, args=ar...
/Users/arealmaas/google-cloud-sdk/calliope/backend.py:1401
 resources = command_instance.Run(args)
/Users/arealmaas/google-cloud-sdk/surface/docker.py:111
 docker.UpdateDockerCredentials(server)
/Users/arealmaas/google-cloud-sdk/core/docker/docker.py:152
 _UpdateDockerConfig(server, _USERNAME, c...
/Users/arealmaas/google-cloud-sdk/core/docker/docker.py:161
 dockercfg_contents = ReadDockerConfig()
/Users/arealmaas/google-cloud-sdk/core/docker/docker.py:87
 structure, new_format = _ReadFullDockerC...
/Users/arealmaas/google-cloud-sdk/core/docker/docker.py:76
 return json.loads(reader.read()), new_fo...
/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/python2
.7/json/__init__.py:339
 return _default_decoder.decode(s)
/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/python2
.7/json/decoder.py:367
 raise ValueError(errmsg("Extra data", s,...
ValueError: Extra data: line 17 column 1 - line 21 column 253 (char 235 - 
647)Installation information:

Google Cloud SDK [105.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.11 (default, Apr 13 2016, 20:16:22)  [GCC 4.2.1 Compatible 
Apple LLVM 7.3.0 (clang-703.0.29)]]
[output truncated]

Original issue reported on code.google.com by arealm...@gmail.com on 18 Apr 2016 at 3:18

GoogleCodeExporter commented 8 years ago
Thank you for your feedback and sorry about the delayed response.

Looks like your docker config may be malformed. Can you check to make sure?

Original comment by vil...@google.com on 21 Apr 2016 at 4:32

GoogleCodeExporter commented 8 years ago
It doesn't look like it's malformed:

I got "docker push ..." to work after i used docker login gcr.io 
<http://gcr.io/>, and pushed using docker instead of gcloud. But now i can't 
even do that. 

- Are

Original comment by arealm...@gmail.com on 22 Apr 2016 at 8:29

GoogleCodeExporter commented 8 years ago
So that we can investigate further can you please provide the following:

- Full output of gcloud info (without personal data)
- Full command you were trying to run (without personal data)

Original comment by vil...@google.com on 22 Apr 2016 at 5:12

GoogleCodeExporter commented 8 years ago
Hi, sorry for late reploy. It started working when i specified host: 
eu.gcr.io/...

Thanks for good support

-Are

Original comment by arealm...@gmail.com on 25 Apr 2016 at 4:01

GoogleCodeExporter commented 8 years ago
Thanks for the update.

Original comment by vil...@google.com on 25 Apr 2016 at 10:05