isusanin / google-cloud-sdk

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

Cannot clone #560

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
WARNING: Truncating included information. Please consider including the 
remainder:
============================== TRUNCATED INFORMATION (PLEASE CONSIDER 
INCLUDING) ==============================

Full stack trace:
  File "googlecloudsdk/gcloud_main.py", line 169, in main
    gcloud_cli.Execute()
  File "googlecloudsdk/calliope/cli.py", line 646, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "googlecloudsdk/calliope/backend.py", line 1394, in Run
    resources = command_instance.Run(args)
  File "surface/init.py", line 117, in Run
    self._PickRepo(project_id)
  File "surface/init.py", line 366, in _PickRepo
    self._CloneRepo(repo_name)
  File "surface/init.py", line 395, in _CloneRepo
    disable_user_output=False)
  File "surface/init.py", line 439, in _RunCmd
    result = self.cli.Execute(args)
  File "googlecloudsdk/calliope/cli.py", line 646, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "googlecloudsdk/calliope/backend.py", line 1394, in Run
    resources = command_instance.Run(args)
  File "googlecloudsdk/calliope/exceptions.py", line 110, in TryFunc
    return func(*args, **kwargs)
  File "surface/source/repos/clone.py", line 92, in Run
    dry_run=args.dry_run)
  File "googlecloudsdk/api_lib/source/git.py", line 529, in Clone
    self._RunCommand(cmd, dry_run)
  File "googlecloudsdk/api_lib/source/git.py", line 545, in _RunCommand
    subprocess.check_call(cmd)
  File "/usr/lib64/python2.6/subprocess.py", line 505, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['git', 'clone', 
'https://source.developers.google.com/p/beta-intrio/r/default', 
u'/var/www/html/default']' returned non-zero exit status 128

Installation information:

Google Cloud SDK [97.0.0]

Platform: [Linux, x86_64]
Python Version: [2.6.6 (r266:84292, Jul 23 2015, 15:22:56)  [GCC 4.4.7 20120313 
(Red Hat 4.4.7-11)]]
Python Location: [/usr/bin/python2]
Site Packages: [Disabled]

Installation Root: [/home/vagrant/google-cloud-sdk]
Installed Components:
  core: [2016.02.11]
  core-nix: [2016.02.05]
  gcloud: []
  gsutil-nix: [4.15]
  gsutil: [4.16]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: 
[/home/vagrant/google-cloud-sdk/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin
:/usr/sbin:/sbin:/home/vagrant/bin]
Cloud SDK on PATH: [True]

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

Account: [rodolfo@intr.io]
Project: [beta-intrio]

Current Properties:
  [core]
    project: [beta-intrio]
    account: [rodolfo@intr.io]
    disable_usage_reporting: [False]

Logs Directory: [/home/vagrant/.config/gcloud/logs]
Last Log File: 
[/home/vagrant/.config/gcloud/logs/2016.02.19/14.46.41.382933.log]
============================ END TRUNCATED INFORMATION (PLEASE CONSIDER 
INCLUDING) ============================

Original issue reported on code.google.com by rodo...@intr.io on 19 Feb 2016 at 2:50

GoogleCodeExporter commented 8 years ago
Thanks for reporting the issue.
It appears your are trying to clone the repo to /var/www/html/default.

Do you have write permissions on this directory?

Also note that you do not have to clone repo in [gcloud init]. You can do it at 
any time by running

  gcloud source repos clone default /path/to/where/to/place/repo/MYREPO_NAME --project beta-intrio

this will create directory /path/to/where/to/place/repo/MYREPO_NAME with git 
repository in it. The directory  /path/to/where/to/place/repo must already 
exist and you must have write permissions to access it.

Please let us know if above suggestion does not work for you.

Original comment by che...@google.com on 19 Feb 2016 at 3:00