gclient sync error on windows

920 views
Skip to first unread message

Munjal Doshi

unread,
Oct 10, 2013, 3:40:06 PM10/10/13
to Chromium-dev
When I do gclient sync I get the following error on Windows:

WindowsError: [Error 3] The system cannot find the path specified: 'D:\\src\\chromes\\3\\src\\chrome\\browser\\_gclient_internal_sxay5m/*.*'

It has been a while since I sync-ed (several months) and so I created a new client since my .gclient file was out of date. But I haven't updated my depot_tools explicitly. Is that the problem?

Fred Akalin

unread,
Oct 10, 2013, 3:53:59 PM10/10/13
to Munjal Doshi, Chromium-dev
depot_tools auto-updates (or it should, anyway).


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Munjal Doshi

unread,
Oct 10, 2013, 3:59:58 PM10/10/13
to Fred Akalin, Chromium-dev
That is what I thought.

I checked that there is no folder "D:\\src\\chromes\\3\\src\\chrome\\browser\\_gclient_internal_sxay5m" on my machine. Not sure how that folder is supposed to be created.
Message has been deleted

zhaoqin

unread,
Oct 11, 2013, 11:26:52 AM10/11/13
to chromi...@chromium.org, Fred Akalin
I saw a similar problem:

WindowsError: [Error 3] The system cannot find the path specified: 'D:\\src\\chrome-int\\src\\chrome\\browser\\_gclient_internal_qxxj8r/*.*'
ending crash report ...
 args: ['D:\\src\\cygwin\\home\\zhaoqin\\Workspace\\Chrome\\depot_tools\\\\gclient.py', 'sync', '-D', '--force']
 cwd: D:\src\chrome-int

however, my depot_tools is updated.

D:\src\cygwin\home\zhaoqin\Workspace\Chrome\depot_tools>git log
commit 4d3ed59ab75208aaad7ca05eae79fab0c8f5116c
Author: x...@xxxxx.org <x...@xxxxxx.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date:   Fri Oct 11 13:53:26 2013 +0000

John Abd-El-Malek

unread,
Oct 11, 2013, 1:42:16 PM10/11/13
to zha...@chromium.org, chromium-dev, Fred Akalin
I'm seeing this as well on my Linux machine, which I haven't synced in a while. I can't figure out how to fix this, I even tried blowing away chrome/browser.

Traceback (most recent call last):rc/third_party/webrtc                                   
  File "/media/SSD/depot_tools/gclient.py", line 1840, in <module>
    sys.exit(Main(sys.argv[1:]))
  File "/media/SSD/depot_tools/gclient.py", line 1830, in Main
    return dispatcher.execute(OptionParser(), argv)
  File "/media/SSD/depot_tools/subcommand.py", line 245, in execute
    return command(parser, args[1:])
  File "/media/SSD/depot_tools/gclient.py", line 1618, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/media/SSD/depot_tools/gclient.py", line 1162, in RunOnDeps
    work_queue.flush(revision_overrides, command, args, options=self._options)
  File "/media/SSD/depot_tools/gclient_utils.py", line 756, in run
    self.item.run(*self.args, **self.kwargs)
  File "/media/SSD/depot_tools/gclient.py", line 632, in run
    file_list)
  File "/media/SSD/depot_tools/gclient_scm.py", line 148, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "/media/SSD/depot_tools/gclient_scm.py", line 351, in update
    self._Clone(revision, url, options)
  File "/media/SSD/depot_tools/gclient_scm.py", line 875, in _Clone
    if os.listdir(tmp_dir):
OSError: [Errno 2] No such file or directory: '/media/SSD/chrome/src/chrome/browser/_gclient_internal_fuJOfm'
Sending crash report ...
  args: ['/media/SSD/depot_tools/gclient.py', 'sync']
  cwd: /media/SSD/chrome/src
  exception: [Errno 2] No such file or directory: '/media/SSD/c
  stack:   File "/media/SSD/depot_tools/gclient.py", line 1
  user: jabdelmalek
  version: 2.7.3 (default, Sep 26 2013, 20:03:06) 
[GCC 4.6.3
A stack trace has been sent to the maintainers.
jabdelmalek@jabdelmalek2:/media/SSD/chrome/src$ 

Munjal Doshi

unread,
Oct 11, 2013, 2:09:17 PM10/11/13
to j...@chromium.org, zha...@chromium.org, chromium-dev, Fred Akalin
I tried updating my depot_tools but now the new depot_tools are not working due to bit9. The weird thing is that the old depot tools at least run fine. Not sure why bit9 wouldn't allow new depot_tools to run while old depot tools run just fine.

Munjal Doshi

unread,
Oct 11, 2013, 4:19:33 PM10/11/13
to j...@chromium.org, zha...@chromium.org, chromium-dev, Fred Akalin
Hmm, this is not related to bit9. After getting bit9 exception, I still see the exact same error:

WindowsError: [Error 3] The system cannot find the path specified: 'D:\\src\\chromes\\4\\src\\chrome\\browser\\_gclient_internal_nvveq8/*.*'
Sending crash report ...
  args: ['D:\\src\\depot_tools\\\\gclient.py', 'sync']
  cwd: D:\src\chromes\4
  exception: [Error 3] The system cannot find the path specifie
  stack:   File "D:\src\depot_tools\\gclient.py", line 1840
  user: munjal
  version: 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1
A stack trace has been sent to the maintainers.

Nico Weber

unread,
Oct 11, 2013, 4:33:20 PM10/11/13
to mun...@chromium.org, John Abd-El-Malek, zha...@chromium.org, chromium-dev, Fred Akalin
It looks like this is in this block in depot_tools/gclient_scm.py:

    tmp_dir = tempfile.mkdtemp(
        prefix='_gclient_%s_' % os.path.basename(self.checkout_path),
        dir=parent_dir)
    try:
      # some code
    finally:
      if os.listdir(tmp_dir):
        print('\n_____ removing non-empty tmp dir %s' % tmp_dir)
      gclient_utils.rmtree(tmp_dir)

The 3rd line from the bottom is failing due to tmp_dir no longer existing, even though it was created a few lines further up. To just get unstuck, I think you can comment out the if and the print right after it. Be sure to file an infra bug, but from what I can tell this code hasn't been touched recently.

Reply all
Reply to author
Forward
0 new messages