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.

Azure CLI Commands Hang - Possibly due to telemetry_upload.py

See original GitHub issue

I am currently running docker containers that execute azure cli commands. Some of the azure cli commands involve “az group create” / “az group deploy” / “az vm create” / “az vm extension set” etc. It is not all the time, but these commands hang at times.

Delving deeper into the processes that are being run, I found many such following processes by running htop.

113 jenkins    20   0 93708 18324  3152 S  0.0  0.1  0:00.38 /usr/lib/python2.7/site-packages/azure/cli/core/telemetry_upload.pyc

These processes run for hours at times. When I kill these processes, my scripts and commands continue so I believe there is some connection to my scripts hanging due to these telemetry_upload calls.

I saw that there used to be issues with the telemetry_upload in the past, but I thought that the issues were patched. Can I get some eyes on this possible issue?

This situation has been happening for the past week and hitting a stumping point.


Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

Installation Method: pip install azure-cli

Environment that uses the azure-cli: Docker Containers

CLI version

azure-cli (2.0.31)

acr (2.0.23)
acs (2.0.31)
advisor (0.5.1)
appservice (0.1.31)
backup (1.1.1)
batch (3.2.0)
batchai (0.2.0)
billing (0.1.8)
cdn (0.0.14)
cloud (2.0.13)
cognitiveservices (0.1.12)
command-modules-nspkg (2.0.1)
configure (2.0.15)
consumption (0.3.0)
container (0.1.22)
core (2.0.31)
cosmosdb (0.1.20)
dla (0.0.19)
dls (0.0.21)
eventgrid (0.1.12)
eventhubs (0.1.2)
extension (0.0.12)
feedback (2.1.1)
find (0.2.9)
interactive (0.3.19)
iot (0.1.19)
keyvault (2.0.21)
lab (0.0.21)
monitor (0.1.5)
network (2.0.28)
nspkg (3.0.2)
profile (2.0.22)
rdbms (0.2.1)
redis (0.2.12)
reservations (0.1.2)
resource (2.0.27)
role (2.0.22)
servicebus (0.1.2)
servicefabric (0.0.12)
sql (2.0.25)
storage (2.0.31)
vm (2.0.30)

Python location '/usr/bin/python'
Extensions directory '/jenkins/.azure/cliextensions'

Python (Linux) 2.7.14 (default, Feb 22 2018, 22:05:16) 
[GCC 6.2.1 20160822]

Legal docs and information: aka.ms/AzureCliLegal

Linux 5df116efa954 3.10.0-514.21.2.el7.x86_64 #1 SMP Tue Jun 20 12:24:47 UTC 2017 x86_64 GNU/Linux```


Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
troydaicommented, May 1, 2018

thanks for the information @steveyang95 . the blocking is at the client.flush() where the application insight is blocked trying to transmit data. I’ll see what I can do.

0reactions
steveyang95commented, Jun 13, 2018

@troydai I have disabled the telemetry overall and have not seen any issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Portal - Browser based Command line interface hang
I am using browser-based Azure CLI for creating managed app definition for my azure managed application. Previously I was using a storage ...
Read more >
Az cli Usage Issues - Microsoft Q&A
I understand that you are running "az network nic ip-config update" Azure CLI command but it is executing very slowly and you would...
Read more >
Azure CLI Tutorial - YouTube
Azure CLI ( Command Line Interface) allows developers and operations to complete nearly any scenario for management and automation of Azure ...
Read more >
What are Azure CLI Extensions? - DEV Community ‍ ‍
Sometimes, the commands that the Azure CLI offers aren't enough. Or maybe you want to use them differently than they allow you to....
Read more >
Troubleshooting AWS CLI errors - AWS Command Line Interface
Diagnose and fix common AWS Command Line Interface (AWS CLI) errors. ... MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.215 Python/3.7.3 ...
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