New issue
Advanced search Search tips

Issue 884879 link

Starred by 1 user

Issue metadata

Status: Duplicate
Owner: ----
Closed: Sep 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

git cl upload fails "WARNING:root:A transient error occurred while querying chromium-review.googlesource.com"

Project Member Reported by msw@chromium.org, Sep 17

Issue description

git cl upload fails "WARNING:root:A transient error occurred while querying chromium-review.googlesource.com"

This has happened to me the last two times I have tried uploading a new cl.
(1) git checkout -b foo
(2) make changes
(3) git commit -a -m x
(4) git cl upload (and enter a cl description, my editor is gedit...)
expected: success
actual: fail, see output below


msw@msw-linux /work/chrome-git/src (ws_accelerators) $ git cl upload
Running presubmit upload checks ...

<I'M OMITTING DETAILS FOR BREVITY>

remote: Processing changes: refs: 1, new: 1, done            
remote: 
remote: SUCCESS        
remote: 
remote: New Changes:        
remote:   https://chromium-review.googlesource.com/c/chromium/src/+/1229074 ws: Fix ime/mouse event ack ordering issue [WIP]        
To https://chromium.googlesource.com/chromium/src.git
 * [new branch]                0b8cc3ea29efae2446995deced1a5b86146e8b38 -> refs/for/refs/heads/master%wip,m=Initial_upload,hashtag=ws
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
POST https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/revisions/current/review HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
POST https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/revisions/current/review HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
POST https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/revisions/current/review HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
POST https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/revisions/current/review HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
POST https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/revisions/current/review HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
POST https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/revisions/current/review HTTP/1.1
HTTP/1.1 404 Not Found
Traceback (most recent call last):
  File "/work/depot_tools/metrics.py", line 225, in print_notice_and_exit
    yield
  File "/work/depot_tools/git_cl.py", line 6158, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/work/depot_tools/git_cl.py", line 6140, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/work/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/work/depot_tools/metrics.py", line 210, in _inner
    return self._collect_metrics(func, command_name, *args, **kwargs)
  File "/work/depot_tools/metrics.py", line 167, in _collect_metrics
    result = func(*args, **kwargs)
  File "/work/depot_tools/git_cl.py", line 5134, in CMDupload
    return cl.CMDUpload(options, args, orig_args)
  File "/work/depot_tools/git_cl.py", line 1626, in CMDUpload
    ret = self.CMDUploadChange(options, git_diff_args, custom_cl_base, change)
  File "/work/depot_tools/git_cl.py", line 3171, in CMDUploadChange
    notify=bool(options.send_mail))
  File "/work/depot_tools/gerrit_util.py", line 723, in AddReviewers
    resp = ReadHttpJsonResponse(conn, accept_statuses=accept_statuses)
  File "/work/depot_tools/gerrit_util.py", line 433, in ReadHttpJsonResponse
    fh = ReadHttpResponse(conn, accept_statuses)
  File "/work/depot_tools/gerrit_util.py", line 427, in ReadHttpResponse
    raise GerritError(response.status, reason)
GerritError: Not Found: Not found: chromium/src~1229074


*****************************************************
*      METRICS COLLECTION IS TAKING PLACE           *
*                                                   *
* For more information, and for how to disable this *
* message, please see metrics.README.md in your     *
* depot_tools checkout.                             *
*****************************************************

msw@msw-linux /work/chrome-git/src (ws_accelerators) $ git cl upload
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
GET https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/detail?o=DETAILED_ACCOUNTS&o=CURRENT_REVISION&o=CURRENT_COMMIT HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
GET https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/detail?o=DETAILED_ACCOUNTS&o=CURRENT_REVISION&o=CURRENT_COMMIT HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
GET https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/detail?o=DETAILED_ACCOUNTS&o=CURRENT_REVISION&o=CURRENT_COMMIT HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
GET https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/detail?o=DETAILED_ACCOUNTS&o=CURRENT_REVISION&o=CURRENT_COMMIT HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
GET https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/detail?o=DETAILED_ACCOUNTS&o=CURRENT_REVISION&o=CURRENT_COMMIT HTTP/1.1
HTTP/1.1 404 Not Found
WARNING:root:A transient error occurred while querying chromium-review.googlesource.com:
GET https://chromium-review.googlesource.com/a/changes/chromium%2Fsrc~1229074/detail?o=DETAILED_ACCOUNTS&o=CURRENT_REVISION&o=CURRENT_COMMIT HTTP/1.1
HTTP/1.1 404 Not Found
Traceback (most recent call last):
  File "/work/depot_tools/metrics.py", line 225, in print_notice_and_exit
    yield
  File "/work/depot_tools/git_cl.py", line 6158, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/work/depot_tools/git_cl.py", line 6140, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/work/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/work/depot_tools/metrics.py", line 210, in _inner
    return self._collect_metrics(func, command_name, *args, **kwargs)
  File "/work/depot_tools/metrics.py", line 167, in _collect_metrics
    result = func(*args, **kwargs)
  File "/work/depot_tools/git_cl.py", line 5134, in CMDupload
    return cl.CMDUpload(options, args, orig_args)
  File "/work/depot_tools/git_cl.py", line 1582, in CMDUpload
    self._codereview_impl.EnsureCanUploadPatchset(force=options.force)
  File "/work/depot_tools/git_cl.py", line 2505, in EnsureCanUploadPatchset
    ['DETAILED_ACCOUNTS', 'CURRENT_REVISION', 'CURRENT_COMMIT'])
  File "/work/depot_tools/git_cl.py", line 2743, in _GetChangeDetail
    raise GerritChangeNotExists(self.GetIssue(), self.GetCodereviewServer())
GerritChangeNotExists: change 1229074 at https://chromium-review.googlesource.com does not exist or you have no access to it

*****************************************************
*      METRICS COLLECTION IS TAKING PLACE           *
*                                                   *
* For more information, and for how to disable this *
* message, please see metrics.README.md in your     *
* depot_tools checkout.                             *
*****************************************************

msw@msw-linux /work/chrome-git/src (ws_accelerators) $ git cl issue
Issue number: 1229074 (https://chromium-review.googlesource.com/1229074)

 
Apparently, one of the two uploads did succeed.
The URL showed a 404 for a couple minutes, but now it's working.

Still, the errors and delay are somewhat confusing/annoying, help is appreciated.
Cc: ajp@chromium.org
Cc: tandrii@chromium.org
Mergedinto: 881860
Status: Duplicate (was: Untriaged)
Dupe of 881860. tandrii@ has some CLs out to hopefully help work around this issue in the short term and we're collecting more data and working with the Git / Gerrit teams to hopefully get a better and more performant permanent fix.

Sign in to add a comment