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

Unable to run command! #10409

Closed
AzureEzy opened this issue Jun 19, 2018 — with docs.microsoft.com · 10 comments
Closed

Unable to run command! #10409

AzureEzy opened this issue Jun 19, 2018 — with docs.microsoft.com · 10 comments

Comments

Copy link

Hi Team,

I've Windows 10 VM and trying to run Powershell command but it's failing with following error message.

"Run command extension execution is in progress. Please wait for completion before invoking a run command."

Earlier I'd Stopped-deallocated and restarted the VM still the same issue. Earlier it was working until I ran a script which had interactive input with following command.

$Password = Read-Host -AsSecureString

Since then it's stuck and will never let me execute any new script. Please help!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@femsulu
Copy link
Member

femsulu commented Jun 19, 2018

@KloudEzy, sorry for the issues you are experiencing. From the error you stated, looks like there's an active extension execution in progress. AFAIK you can only run one extension at a time on the Azure VM. Try waiting for the extension to finish before proceeding. Alternatively, retest with a different VM to see if this is a persistent issue. If yes, please let me know and we can investigate further.

@georgewallace
Copy link
Contributor

@KloudEzy Also to add, interactive cmdlets like Read-Host are not supported, I submitted an update to the doc this morning to make this clear, as the script is ran in a remote host there is no way for it to get information from a prompt.

Copy link
Author

Hi Team,

Thanks for the update! I did find out the problem. My script had input request from user and learned it hard way that system won't show input prompt and it'll only accept parameterized input. Anyways, my script i.e. invisible input prompt timed out in 90 minutes and then I could run another script.

Thanks for your help! Really appreciate it!

@georgewallace
Copy link
Contributor

The docs have been updated to correctly reflect @KloudEzy 's experience, we now specify that interactive user prompts are not supported. #please-close

Copy link
Author

@georgewallace thanks for updating the documentation! Amazing customer experience and thank you for listening to customer's feedback!

@vasivara-MSFT
Copy link
Contributor

@KloudEzy We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

@amoghnatu
Copy link
Contributor

@georgewallace, @vasivara-MSFT Hello George, Vairavan, Can you please tell me if there is a possibility to check what exactly is running? Because I'm getting the same exception and despite stopping and re-starting the VM again, I still keep getting the same exception. Is there a chance to see somewhere exactly what is running? and if possible some way to kill it?

Any help or pointers would be greatly appreciated!

@ljtill
Copy link
Contributor

ljtill commented Dec 14, 2018

Within the directory below, there are two batch files (disable.cmd and enable.cmd), executing these batch files has resolved issues for me in the past when the RunCommand when it goes into hung 'Running' state.

C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows\1.1.0\Status

@kakins
Copy link

kakins commented Feb 29, 2020

Within the directory below, there are two batch files (disable.cmd and enable.cmd), executing these batch files has resolved issues for me in the past when the RunCommand when it goes into hung 'Running' state.

C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows\1.1.0\Status

This solution no longer works for me. Is there any way to cancel an active command in progress? This is especially annoying for timed out commands. I shouldn't have to wait 90 minutes if I know the command is hanging due to an error.

@PRMerger8 PRMerger8 added the Pri1 label Feb 29, 2020
@roman-rr
Copy link

Still actual for me, faced issue

(Conflict) Run command extension execution is in progress. 
Please wait for completion before invoking a run command.
Code: Conflict

With no timeout. Passed few days, but doesn't fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants