New issue
Advanced search Search tips

Issue 606410 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 605352



Sign in to add a comment

git-cookie-authdaemon crashes at startup.

Project Member Reported by dgarr...@chromium.org, Apr 25 2016

Issue description

Our GCE builder images use git-cookie-authdaemon instead of .netrc to authenticate to GOB. However, the newest version of the daemon crashes at startup when started as configured by setup_bot.py.
 
chrome-bot@dgarrett-test-instance:~$ sudo /etc/rc.local
Traceback (most recent call last):
  File "/home/chrome-bot/gcompute-tools/git-cookie-authdaemon", line 116, in <module>
    main()
  File "/home/chrome-bot/gcompute-tools/git-cookie-authdaemon", line 98, in main
    expires = update_cookie(retry=False)
  File "/home/chrome-bot/gcompute-tools/git-cookie-authdaemon", line 53, in update_cookie
    token = acquire_token(retry)
  File "/home/chrome-bot/gcompute-tools/git-cookie-authdaemon", line 45, in acquire_token
    with contextlib.closing(urllib2.urlopen(A + '?scopes=' + S)) as token:
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request

That is only seen on a test image created recently.
For now, I'm working around this by using .netrc authentication on GCE.

Comment 4 by autumn@chromium.org, Apr 25 2016

Labels: -current-issue
Owner: dgarr...@chromium.org
Status: Assigned (was: Untriaged)

Comment 5 by benhenry@google.com, Apr 26 2016

Components: Infra>Client>ChromeOS
Labels: -Infra-ChromeOS
Status: WontFix (was: Assigned)
Fixed by switching to ccompute.

Sign in to add a comment