Closed mlalkaka closed 2 years ago
You might want to add --trace
(and use choco list -lo
)
Sure, I've included that below. Still, I figure it's informative that this is happening even for choco list -?
, because that doesn't do as much as choco list -lo
.
PS C:\windows\system32> Measure-Command { choco list -lo --debug --verbose --trace }
Days : 0
Hours : 0
Minutes : 0
Seconds : 1
Milliseconds : 962
Ticks : 19620069
TotalDays : 2.27084131944444E-05
TotalHours : 0.000545001916666667
TotalMinutes : 0.032700115
TotalSeconds : 1.9620069
TotalMilliseconds : 1962.0069
PS C:\windows\system32> Measure-Command { choco list -lo --debug --verbose --trace }
Days : 0
Hours : 0
Minutes : 0
Seconds : 19
Milliseconds : 581
Ticks : 195818694
TotalDays : 0.000226642006944444
TotalHours : 0.00543940816666667
TotalMinutes : 0.32636449
TotalSeconds : 19.5818694
TotalMilliseconds : 19581.8694
It was suggested that IPv6 may be the culprit of some of this. You might check into that.
PREFACE: I do a lot of Chocolatey re-installs in testing new versions of InstChoco - https://chocolatey.org/packages/InstChoco
I've noticed that if I've re-installed Chocolatey, cleanup on the next choco run can add a delay.
When run with administrative privileges I don't see any errors, just an abnormal delay. When run without administrative privileges I see:
C:\>clist -l Chocolatey v0.10.8 Professional This is try 1/3. Retrying after 300 milliseconds. Error converted to warning: Access to the path 'C:\ProgramData\chocolatey\choco.exe.old' is denied. This is try 2/3. Retrying after 400 milliseconds. Error converted to warning: Access to the path 'C:\ProgramData\chocolatey\choco.exe.old' is denied. Maximum tries of 3 reached. Throwing error.
OK, that didn't display very well!
Here's this...
It was suggested that IPv6 may be the culprit of some of this. You might check into that.
Not the first time I've had to disable IPv6 for my networking device to fix general network slowness. This worked for me.
As we have a solution, for this case, and there have been no updates for some time on this issue, I'm going to go ahead and close it. We can always reopen it again if necessary.
What You Are Seeing?
Hello, simple
choco
commands have started taking very long to run. Below, I've pasted the output of runningchoco list -?
with theMeasure-Command
cmdlet to measure how long the Chocolatey command took to run. I'm running Chocolatey v0.10.8, but the problem was occurring on a previous version as well. Is this a known issue?What is Expected?
Here is the measured result on a machine that doesn't exhibit this problem.
How Did You Get This To Happen? (Steps to Reproduce)
Here is the measured result on the machine that does exhibit this problem.
Output Log
Here are the logs from the machine exhibiting this issue: https://gist.github.com/mlalkaka/8db0943728f830089e553fc8f8125093.