zinonet / naclports

Automatically exported from code.google.com/p/naclports
0 stars 0 forks source link

Third party file _gclient_zip.js_JGcOl2 not found while installation #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. installed depot_tools successfully
2. created dir naclports
3. created config file in dir naclports using gclient config --name=src  
https://chromium.googlesource.com/external/naclports.git
4. Sync to repo using gclient sync

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

I am getting the following error. I am working from behind a proxy server, 
could it be the cause ? If yes then how to rectify it....

________ running 'git -c core.deltaBaseCacheLimit=512m clone --no-checkout 
--progress git://github.com/gildas-lormeau/zip.js 
/home/sarthak/naclports/src/third_party/_gclient_zip.js_JGcOl2' in 
'/home/sarthak/naclports'
[0:04:23] Cloning into 
'/home/sarthak/naclports/src/third_party/_gclient_zip.js_JGcOl2'...
[0:06:31] fatal: unable to connect to github.com:
[0:06:31] github.com[0: 192.30.252.131]: errno=Connection timed out
[0:06:31] 

________ running 'git -c core.deltaBaseCacheLimit=512m clone --no-checkout 
--progress git://github.com/gildas-lormeau/zip.js 
/home/sarthak/naclports/src/third_party/_gclient_zip.js_JGcOl2' in 
'/home/sarthak/naclports'
[0:06:33] Cloning into 
'/home/sarthak/naclports/src/third_party/_gclient_zip.js_JGcOl2'...
[0:08:46] fatal: unable to connect to github.com:
[0:08:46] github.com[0: 192.30.252.128]: errno=Connection timed out
[0:08:46] 
Traceback (most recent call last):
  File "/home/sarthak/depot_tools/gclient_scm.py", line 905, in _Clone
    self._Run(clone_cmd, options, cwd=self._root_dir, retry=True)
  File "/home/sarthak/depot_tools/gclient_scm.py", line 1159, in _Run
    gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
  File "/home/sarthak/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/home/sarthak/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
CalledProcessError: Command git -c core.deltaBaseCacheLimit=512m clone 
--no-checkout --progress git://github.com/gildas-lormeau/zip.js 
/home/sarthak/naclports/src/third_party/_gclient_zip.js_JGcOl2 returned 
non-zero exit status 128 in /home/sarthak/naclports
----------------------------------------
Traceback (most recent call last):
  File "/home/sarthak/depot_tools/gclient.py", line 2300, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/sarthak/depot_tools/gclient.py", line 2286, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/home/sarthak/depot_tools/subcommand.py", line 245, in execute
    return command(parser, args[1:])
  File "/home/sarthak/depot_tools/gclient.py", line 2043, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/home/sarthak/depot_tools/gclient.py", line 1520, in RunOnDeps
    work_queue.flush(revision_overrides, command, args, options=self._options)
  File "/home/sarthak/depot_tools/gclient_utils.py", line 1027, in run
    self.item.run(*self.args, **self.kwargs)
  File "/home/sarthak/depot_tools/gclient.py", line 832, in run
    file_list)
  File "/home/sarthak/depot_tools/gclient_scm.py", line 162, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "/home/sarthak/depot_tools/gclient_scm.py", line 412, in update
    self._Clone(revision, url, options)
  File "/home/sarthak/depot_tools/gclient_scm.py", line 913, in _Clone
    if os.listdir(tmp_dir):
OSError: [Errno 2] No such file or directory: 
'/home/sarthak/naclports/src/third_party/_gclient_zip.js_JGcOl2'

Original issue reported on code.google.com by skysarth...@gmail.com on 25 Mar 2015 at 9:12

GoogleCodeExporter commented 9 years ago
It looks like your connection to github timed out:

] github.com[0: 192.30.252.131]: errno=Connection timed out
[0:06:31]

gclient could do a better job of giving you a nice error in this case.

Does this happen repeatedly?   It if happens consistently can you try running 
the failing git command on the command line.  In this case it looks it would be:

$ git -c core.deltaBaseCacheLimit=512m clone --no-checkout --progress 
git://github.com/gildas-lormeau/zip.js

If that fails then it looks like you can't use the git protocol from behind 
your proxy.  Is that what you would expect?

We should probably switch to using https in any case...   can you try this by 
changing git:// to https:// in src/DEP.

Original comment by sbc@chromium.org on 25 Mar 2015 at 9:24

GoogleCodeExporter commented 9 years ago

Original comment by sbc@google.com on 25 Mar 2015 at 9:24

GoogleCodeExporter commented 9 years ago
i tried
$ git -c core.deltaBaseCacheLimit=512m clone --no-checkout --progress 
git://github.com/gildas-lormeau/zip.js
but it failed so then i tried 
$ git -c core.deltaBaseCacheLimit=512m clone --no-checkout --progress 
https://github.com/gildas-lormeau/zip.js
and it was successful, so git is not allowed on my proxy. Now when i change 
git:// to https:// in src/DEP and then run "gclient sync" i get error

Syncing projects: 100% ( 1/ 1) src

src (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Error: 1> 
1> ____ src at refs/remotes/origin/master
1>  You have unstaged changes.
1>  Please commit, stash, or reset.

how should i procede...?

Original comment by skysarth...@gmail.com on 26 Mar 2015 at 12:04

GoogleCodeExporter commented 9 years ago
You should add this line to your .gclient (in the top level directory):
  "managed"     : False

Sorry, this should be in the default checkout instructions.  What this means is 
that you are in the change of fetching changing in the main (src) repo.

Alternatively you could commit you change to DEPS in src.

Original comment by sbc@google.com on 26 Mar 2015 at 12:06

GoogleCodeExporter commented 9 years ago
I changed "managed" to false in .gclient, then i run "git commit -a" i get the 
following :

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 
'sarthak@sarthak-Vostro-1550.(none)')

and i again tried gclient sync...this time i am getting the following error

________ running 'svn checkout https://github.com/gildas-lormeau/zip.js@4c93974 
/home/sarthak/naclports/src/third_party/zip.js --revision 4c93974 
--non-interactive --ignore-externals' in '/home/sarthak/naclports'
svn: E205000: Syntax error in revision argument '4c93974'

src/third_party/zip.js (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Error: Command svn checkout https://github.com/gildas-lormeau/zip.js@4c93974 
/home/sarthak/naclports/src/third_party/zip.js --revision 4c93974 
--non-interactive --ignore-externals returned non-zero exit status 1 in 
/home/sarthak/naclports

Original comment by skysarth...@gmail.com on 26 Mar 2015 at 3:42

GoogleCodeExporter commented 9 years ago
I think you need to change zip.js@4c93974  to zip.js.git@4c93974 so that 
gclient knows its git repo, rather than an svn repo.

I've got a fix for this that is about to be committed:
https://codereview.chromium.org/1011133003

Original comment by sbc@google.com on 26 Mar 2015 at 4:54

GoogleCodeExporter commented 9 years ago
Thank you for your time and help, finally the sync was successful

Original comment by skysarth...@gmail.com on 26 Mar 2015 at 5:20

GoogleCodeExporter commented 9 years ago

Original comment by sbc@google.com on 26 Mar 2015 at 5:21