Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Linux CLI errors - DNS and credentials issues

$
0
0

Hi,

We have started to experience two error types recently (in the past month). They appear randomly and quite often, and they are affecting our operations in a negative way. I searched the internet for similar issues, but couldn't find any significant information. I'm hoping someone here could help. We are using Azure version 0.8.5

ERROR 1 seems to be related to DNS:

00:00:14.62363 ^[[0mLaunching command /usr/local/bin/azure vm list  --json 2>&1^[[0m
00:00:17.6766 ^[[0mCommand output: Array
(
    [0] => getaddrinfo ENOTFOUND
    [1] => Error information has been recorded to azure.err
    [2] => vm list command failed
    [3] =>
)
Return status: 1

azure.err doesn't hold much more info:

{ [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
Error: getaddrinfo ENOTFOUND
    at errnoException (dns.js:37:11)
    at Object.onanswer [as oncomplete] (dns.js:124:16)

ERROR 2 is related to credentials/subscription:

14:34:25.52073 ^[[0mLaunching command /usr/local/bin/azure vm show <MACHINE_NAME>--json 2>&1^[[0m
14:34:26.23581 ^[[0mCommand output: Array
(
    [0] => There is no current subscription. Please use the azure login command to set your current subscription.
    [1] => Error information has been recorded to azure.err
    [2] => vm show command failed
    [3] =>
)
Return status: 1

azure.err shows this trace:

[Error: There is no current subscription. Please use the azure login command to set your current subscription.]
Error: There is no current subscription. Please use the azure login command to set your current subscription.
    at Profile._.extend.getSubscription (/usr/local/lib/node_modules/azure-cli/lib/util/profile/profile.js:176:15)
    at VMClient._.extend.createComputeManagementClient (/usr/local/lib/node_modules/azure-cli/lib/commands/asm/vm/vmclient.js:1482:55)
    at VMClient._.extend.getDeployments (/usr/local/lib/node_modules/azure-cli/lib/commands/asm/vm/vmclient.js:1315:40)
    at VMClient._.extend.showVM (/usr/local/lib/node_modules/azure-cli/lib/commands/asm/vm/vmclient.js:185:10)
    at AzureCli.<anonymous> (/usr/local/lib/node_modules/azure-cli/lib/commands/asm/vm._js:82:14)
    at AzureCli._.extend.execute (/usr/local/lib/node_modules/azure-cli/lib/cli.js:188:12)
    at AzureCli.Command.action (/usr/local/lib/node_modules/azure-cli/node_modules/commander/lib/commander.js:235:8)
    at AzureCli.EventEmitter.emit (events.js:126:20)
    at AzureCli.Command.parseArgs (/usr/local/lib/node_modules/azure-cli/node_modules/commander/lib/commander.js:405:12)
    at AzureCli.Command.parse (/usr/local/lib/node_modules/azure-cli/node_modules/commander/lib/commander.js:351:15) 

Thanks,

Marius


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>