question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run any az commands: Blank `cli.azure.cli.core.util` error

See original GitHub issue

Describe the bug I was fine running 2.2.0 and decided to upgrade recently, but now I can’t get anything to work at all.

All commands that do any talking to Azure respond with: cli.azure.cli.core.util : and literally no error output other than that (in the --debug --verbose logs).

Is there anything I can do to get any more detailed logs?

On further exploration az rest works, for example: az rest --method get --uri https://management.azure.com/subscriptions/<sub id>/providers/Microsoft.Storage/storageAccounts?api-version=2019-06-01

To Reproduce Any az command that talks to Azure, such as az storage account list.

Expected behavior az should work.

Environment summary Windows 10 Cygwin 3.1.4 Python 3.6

I’ve tried various versions of the CLI 2.4.0, 2.3.0, 2.2.0, and also a known working from source installed into a venv, all fail with the same errors.

I’ve also tried re-installing python and pip through the Cygwin setup, and I’ve tried removing and reinstalling all pip packages after that too.

(P.S. Nope I don’t want to use WSL, WSL is hacky compared to Cygwin 🙂)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
cocowallacommented, May 15, 2020

@qianwens why has this been closed without comment?

Deleting the .azure folder is nothing more than a workaround - the underlying issue remains to be fixed, or at the very least in the interim, a meaningful error message would be helpful 😕

2reactions
ElvenSpellmakercommented, Apr 29, 2020

As it’s no longer a Cygwin problem I thought about the only thing that Windows Python 2, Cygwin Python 3, and Cygwin Python 3 with venv share, which is the ~/.azure directory.

I moved my ~/.azure directory out of the way and re-logged in and the commands now seem to be working again.

Is there anyway we can debug why it fails with my current ~/.azure directory?

It might be nice to get a better error message out of it than nothing, and just me starting again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with Azure Command-Line Interface (CLI)
In scripts and on the Microsoft documentation site, Azure CLI examples are written for the bash shell. One-line examples will run on any...
Read more >
Intermittent error when executing `az login` - Stack Overflow
If this is a self-hosted agent, you can try upgrading to the latest version of Azure CLI. If this issue is occurring on...
Read more >
Install and Configure Azure CLI on Redhat/CentOS - UnixArena
Azure is an industry leader in IaaS and PaaS service cloud. Azure CLI is a command-line interface for managing most of the Azure...
Read more >
Error: DEBUG: cli.knack.cli: Command arguments: ['extension ...
This could be caused by the agent upgrade, it caused issues with AZ CLI commands from the Azure CLI task. In particular, this...
Read more >
Getting Started with Azure CLI - Parveen Singh
In this command, the login module for Azure CLI is used to interact with the Azure Environment. The command launches an authenticated session...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found