Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to login AzureChinaCloud #2725

Closed
bingosummer opened this Issue Apr 8, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@bingosummer
Copy link
Member

bingosummer commented Apr 8, 2016

CLI Version: 0.9.17
OS Type: Linux (Ubuntu)
Installation via: npm

Mode: ARM / ASM

Description:
azure login -e AzureChinaCloud command failed with CERT_UNTRUSTED error.

Steps to reproduce:

  1. Run azure login -e AzureChinaCloud

Error stack trace:

the content of ~/.azure/azure.err

2016-04-08T07:13:00.039Z:
{ [Error: CERT_UNTRUSTED]
  stack: [Getter/Setter],
  __frame:
   { name: '__1',
     line: 49,
     file: '/usr/local/lib/node_modules/azure-cli/lib/commands/login.js',
     prev: undefined,
     calls: 0,
     active: false,
     offset: 64,
     col: 27 },
  rawStack: [Getter] }
Error: CERT_UNTRUSTED
  <<< async stack >>>
  at __1 (/usr/local/lib/node_modules/azure-cli/lib/commands/login.js:113:28)
  <<< raw stack >>>
    at SecurePair.<anonymous> (tls.js:1370:32)
    at SecurePair.EventEmitter.emit (events.js:92:17)
    at SecurePair.maybeInitFinished (tls.js:982:10)
    at CleartextStream.read [as _read] (tls.js:469:13)
    at CleartextStream.Readable.read (_stream_readable.js:320:10)
    at EncryptedStream.write [as _write] (tls.js:366:25)
    at doWrite (_stream_writable.js:223:10)
    at writeOrBuffer (_stream_writable.js:213:5)
    at EncryptedStream.Writable.write (_stream_writable.js:180:11)
    at write (_stream_readable.js:583:24)

The verbose logs over here.

info:    Executing command login
info:    Authenticating...
info:    Fri, 08 Apr 2016 07:21:50 GMT:58b58dea-b753-48e4-822f-ebaf2bf0a9de - Authority: VERBOSE: Performing instance discovery: https://login.chinacloudapi.cn/common
info:    Fri, 08 Apr 2016 07:21:50 GMT:58b58dea-b753-48e4-822f-ebaf2bf0a9de - Authority: VERBOSE: Performing static instance discovery
info:    Fri, 08 Apr 2016 07:21:50 GMT:58b58dea-b753-48e4-822f-ebaf2bf0a9de - Authority: VERBOSE: Authority validated via static instance discovery.
info:    Fri, 08 Apr 2016 07:21:50 GMT:58b58dea-b753-48e4-822f-ebaf2bf0a9de - DeviceCodeRequest: INFO: Getting user code info.
info:    Fri, 08 Apr 2016 07:21:52 GMT:58b58dea-b753-48e4-822f-ebaf2bf0a9de - OAuth2Client: INFO: Get Device Code Server returned this correlationId: 58b58dea-b753-48e4-822f-ebaf2bf0a9de
info:    To sign in, use a web browser to open the page https://aka.ms/deviceloginchina. Enter the code ATE4J2GZW to authenticate.
info:    Fri, 08 Apr 2016 07:21:52 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - Authority: VERBOSE: Performing instance discovery: https://login.chinacloudapi.cn/common
info:    Fri, 08 Apr 2016 07:21:52 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - Authority: VERBOSE: Performing static instance discovery
info:    Fri, 08 Apr 2016 07:21:52 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - Authority: VERBOSE: Authority validated via static instance discovery.
info:    Fri, 08 Apr 2016 07:21:52 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - TokenRequest: INFO: Getting a token via device code
info:    Fri, 08 Apr 2016 07:21:52 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:21:52 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 1c9c182c-798d-4678-93a1-c957a0bc4ea5\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:21:53Z","error_codes":[70016],"timestamp":"2016-04-08 07:21:53Z","trace_id":"1c9c182c-798d-4678-93a1-c957a0bc4ea5","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 1c9c182c-798d-4678-93a1-c957a0bc4ea5\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:21:53Z","error_codes":[70016],"timestamp":"2016-04-08 07:21:53Z","trace_id":"1c9c182c-798d-4678-93a1-c957a0bc4ea5","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 1c9c182c-798d-4678-93a1-c957a0bc4ea5\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:21:53Z","error_codes":[70016],"timestamp":"2016-04-08 07:21:53Z","trace_id":"1c9c182c-798d-4678-93a1-c957a0bc4ea5","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:21:58 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:21:58 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 9a2a25ce-5ea6-4afa-8ef8-5587bd1747f3\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:21:58Z","error_codes":[70016],"timestamp":"2016-04-08 07:21:58Z","trace_id":"9a2a25ce-5ea6-4afa-8ef8-5587bd1747f3","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 9a2a25ce-5ea6-4afa-8ef8-5587bd1747f3\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:21:58Z","error_codes":[70016],"timestamp":"2016-04-08 07:21:58Z","trace_id":"9a2a25ce-5ea6-4afa-8ef8-5587bd1747f3","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 9a2a25ce-5ea6-4afa-8ef8-5587bd1747f3\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:21:58Z","error_codes":[70016],"timestamp":"2016-04-08 07:21:58Z","trace_id":"9a2a25ce-5ea6-4afa-8ef8-5587bd1747f3","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:03 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:03 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 0ebd67ca-f21a-43f2-b925-fd5f507abc75\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:04Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:04Z","trace_id":"0ebd67ca-f21a-43f2-b925-fd5f507abc75","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 0ebd67ca-f21a-43f2-b925-fd5f507abc75\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:04Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:04Z","trace_id":"0ebd67ca-f21a-43f2-b925-fd5f507abc75","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 0ebd67ca-f21a-43f2-b925-fd5f507abc75\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:04Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:04Z","trace_id":"0ebd67ca-f21a-43f2-b925-fd5f507abc75","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:09 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:09 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: b1f9c311-8406-438f-8980-714955315d11\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:09Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:09Z","trace_id":"b1f9c311-8406-438f-8980-714955315d11","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: b1f9c311-8406-438f-8980-714955315d11\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:09Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:09Z","trace_id":"b1f9c311-8406-438f-8980-714955315d11","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: b1f9c311-8406-438f-8980-714955315d11\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:09Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:09Z","trace_id":"b1f9c311-8406-438f-8980-714955315d11","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:14 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:14 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: bd99516b-b2ed-466a-86b7-99b680e0a68b\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:14Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:14Z","trace_id":"bd99516b-b2ed-466a-86b7-99b680e0a68b","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: bd99516b-b2ed-466a-86b7-99b680e0a68b\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:14Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:14Z","trace_id":"bd99516b-b2ed-466a-86b7-99b680e0a68b","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: bd99516b-b2ed-466a-86b7-99b680e0a68b\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:14Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:14Z","trace_id":"bd99516b-b2ed-466a-86b7-99b680e0a68b","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:20 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:20 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 9f7f39c4-fc33-4837-abd9-5049bea98fee\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:20Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:20Z","trace_id":"9f7f39c4-fc33-4837-abd9-5049bea98fee","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 9f7f39c4-fc33-4837-abd9-5049bea98fee\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:20Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:20Z","trace_id":"9f7f39c4-fc33-4837-abd9-5049bea98fee","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 9f7f39c4-fc33-4837-abd9-5049bea98fee\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:20Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:20Z","trace_id":"9f7f39c4-fc33-4837-abd9-5049bea98fee","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:25 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:25 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 785f394d-5eaa-48d8-845c-68610108ae59\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:26Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:26Z","trace_id":"785f394d-5eaa-48d8-845c-68610108ae59","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 785f394d-5eaa-48d8-845c-68610108ae59\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:26Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:26Z","trace_id":"785f394d-5eaa-48d8-845c-68610108ae59","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 785f394d-5eaa-48d8-845c-68610108ae59\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:26Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:26Z","trace_id":"785f394d-5eaa-48d8-845c-68610108ae59","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:31 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:31 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 7f7ca840-84d3-4f8e-97b7-d982d14230c1\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:31Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:31Z","trace_id":"7f7ca840-84d3-4f8e-97b7-d982d14230c1","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 7f7ca840-84d3-4f8e-97b7-d982d14230c1\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:31Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:31Z","trace_id":"7f7ca840-84d3-4f8e-97b7-d982d14230c1","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 7f7ca840-84d3-4f8e-97b7-d982d14230c1\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:31Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:31Z","trace_id":"7f7ca840-84d3-4f8e-97b7-d982d14230c1","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:36 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:36 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 84cce2b0-f61a-44b0-ac0a-395e69d364e2\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:37Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:37Z","trace_id":"84cce2b0-f61a-44b0-ac0a-395e69d364e2","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 84cce2b0-f61a-44b0-ac0a-395e69d364e2\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:37Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:37Z","trace_id":"84cce2b0-f61a-44b0-ac0a-395e69d364e2","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 84cce2b0-f61a-44b0-ac0a-395e69d364e2\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:37Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:37Z","trace_id":"84cce2b0-f61a-44b0-ac0a-395e69d364e2","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:42 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:42 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: f68f2827-4908-48a1-95d4-d4badcfcc597\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:42Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:42Z","trace_id":"f68f2827-4908-48a1-95d4-d4badcfcc597","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: f68f2827-4908-48a1-95d4-d4badcfcc597\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:42Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:42Z","trace_id":"f68f2827-4908-48a1-95d4-d4badcfcc597","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: f68f2827-4908-48a1-95d4-d4badcfcc597\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:42Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:42Z","trace_id":"f68f2827-4908-48a1-95d4-d4badcfcc597","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:47 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:47 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 98475917-8b73-420f-a077-06904e0d47a5\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:48Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:48Z","trace_id":"98475917-8b73-420f-a077-06904e0d47a5","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 98475917-8b73-420f-a077-06904e0d47a5\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:48Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:48Z","trace_id":"98475917-8b73-420f-a077-06904e0d47a5","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 98475917-8b73-420f-a077-06904e0d47a5\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:48Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:48Z","trace_id":"98475917-8b73-420f-a077-06904e0d47a5","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:22:54 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:22:54 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: ERROR: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 52536303-0df9-42e2-bf39-d4457471184f\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:55Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:55Z","trace_id":"52536303-0df9-42e2-bf39-d4457471184f","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
Stack:
Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 52536303-0df9-42e2-bf39-d4457471184f\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:55Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:55Z","trace_id":"52536303-0df9-42e2-bf39-d4457471184f","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
    at Logger.createError (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/log.js:201:13)
    at Request._callback (/usr/local/lib/node_modules/azure-cli/node_modules/adal-node/lib/util.js:133:25)
    at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:344:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1239:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/azure-cli/node_modules/request/request.js:1187:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
error:   Error: Get Token request returned http error: 400 and server response: {"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 52536303-0df9-42e2-bf39-d4457471184f\r\nCorrelation ID: 39ce6885-d5cb-4e53-a326-b4930aee5c39\r\nTimestamp: 2016-04-08 07:22:55Z","error_codes":[70016],"timestamp":"2016-04-08 07:22:55Z","trace_id":"52536303-0df9-42e2-bf39-d4457471184f","correlation_id":"39ce6885-d5cb-4e53-a326-b4930aee5c39"}
info:    Fri, 08 Apr 2016 07:23:00 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - OAuth2Client: INFO: Get TokenServer returned this correlationId: 39ce6885-d5cb-4e53-a326-b4930aee5c39
info:    Fri, 08 Apr 2016 07:23:00 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - TokenRequest: VERBOSE: Storing retrieved token into cache
info:    Fri, 08 Apr 2016 07:23:00 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - CacheDriver: VERBOSE: Adding entry, AccessTokenId: /HXEbwp1w+FVjfEtOnMvuevLaUfVhmcNonRnHnRO/DM=, RefreshTokenId: srhBUM6QZfSxDw5E3mGDyY7NlLK+AkfEPsKwU1/hYqI=
info:    Fri, 08 Apr 2016 07:23:00 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - CacheDriver: VERBOSE: Added entry is MRRT
info:    Fri, 08 Apr 2016 07:23:00 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - CacheDriver: VERBOSE: Updating 1 cached refresh tokens.
info:    Fri, 08 Apr 2016 07:23:00 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - CacheDriver: VERBOSE: Remove many: 1
info:    Fri, 08 Apr 2016 07:23:00 GMT:39ce6885-d5cb-4e53-a326-b4930aee5c39 - CacheDriver: VERBOSE: Add many: 1
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - Authority: VERBOSE: Performing instance discovery: https://login.chinacloudapi.cn/common
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - Authority: VERBOSE: Performing static instance discovery
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - Authority: VERBOSE: Authority validated via static instance discovery.
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - TokenRequest: INFO: Getting token from cache with refresh if necessary.
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - CacheDriver: VERBOSE: finding with query:{"clientId":"04b07795-8ddb-461a-bbee-02f9e1bf7b46","userId":"xxxxxxxxxxxxxxxxxxxxxxxx"}
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - CacheDriver: VERBOSE: Looking for potential cache entries:
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - CacheDriver: VERBOSE: {"_clientId":"04b07795-8ddb-461a-bbee-02f9e1bf7b46","userId":"xxxxxxxxxxxxxxxxxxxxxxxx"}
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - CacheDriver: VERBOSE: Found 1 potential entries.
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - CacheDriver: VERBOSE: Resource specific token found.
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - CacheDriver: VERBOSE: Returning token from cache lookup, AccessTokenId: /HXEbwp1w+FVjfEtOnMvuevLaUfVhmcNonRnHnRO/DM=, RefreshTokenId: srhBUM6QZfSxDw5E3mGDyY7NlLK+AkfEPsKwU1/hYqI=
info:    Fri, 08 Apr 2016 07:23:00 GMT:6d427c12-f68a-4cf6-96cc-e0a122fb9cc7 - TokenRequest: INFO: Returning cached token.
error:   CERT_UNTRUSTED
info:    Error information has been recorded to /home/azureuser/.azure/azure.err
error:   login command failed
@ahmetb

This comment has been minimized.

Copy link
Contributor

ahmetb commented Apr 11, 2016

@bingosummer what's your node --version?

@bingosummer

This comment has been minimized.

Copy link
Member Author

bingosummer commented Apr 12, 2016

@ahmetalpbalkan

$ node --version
v0.10.25
@amarzavery

This comment has been minimized.

Copy link
Contributor

amarzavery commented Apr 12, 2016

@bingosummer - Please use the latest version of node (4.x) and mostly the issue should be resolved. This link provides simple steps to install the latest version of node.js on different flavors of Linux.

@bingosummer

This comment has been minimized.

Copy link
Member Author

bingosummer commented Apr 12, 2016

Thanks @amarzavery
It works for me.
Since the guide to install Azure CLI in ubuntu is to install nodejs-legacy, so by default customers will hit this issue.
Shall we update the guide to install node (4.x) by default?

@amarzavery

This comment has been minimized.

Copy link
Contributor

amarzavery commented Apr 12, 2016

@bingosummer - Thanks for notifying. I shall update it as there is no need to install nodejs-legacy anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.