Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Weird error, "k" cmd broken on my VM ONLY in Powershell and won't reinstall properly #350

Closed
glennblock opened this issue Jun 18, 2014 · 3 comments

Comments

@glennblock
Copy link

All of K commands were working on my VM both in Powershell and in the cmd prompt. Then I did an upgrade and for some strange reason "K" cmd stopped working ONLY in Powershell.

PS C:\Users\gblock> k
Program 'K.cmd' failed to run: The system cannot find the file specifiedAt line:1 char:1
+ k
+ ~.
At line:1 char:1
+ k
+ ~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

At @davidfowl's suggestion I cleaned my path, removed the environment variable and deleted the c:/%user%/.kre folder.

Then when I run the installation script from the cmd prompt I get the following output.

C:\Users\gblock>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "i
ex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com
/aspnet/Home/master/kvminstall.ps1'))"
Using temporary directory: C:\Users\gblock\AppData\Local\Temp\2\kvminstall
Downloading KVM.ps1 to C:\Users\gblock\AppData\Local\Temp\2\kvminstall\kvm.ps1
Downloading KVM.cmd to C:\Users\gblock\AppData\Local\Temp\2\kvminstall\kvm.cmd
Installing KVM
Program 'kvm.cmd' failed to run: The system cannot find the file specifiedAt
line:15 char:1
+ & $kvmCmdPath setup
+ ~~~~~~~~~~~~~~~~~~~.
At line:15 char:1
+ & $kvmCmdPath setup
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedEx
   ception
    + FullyQualifiedErrorId : NativeCommandFailed

If I clone the repo and then manually run "kvm setup" the setup finishes. Closing Powershell and reopening then "kvm" works. But k does not and I get the same error.

This is a VM, and I can easily create a new one using the Azure image, but the behavior is troubling.

Has anyone else seen this after upgrade?

If anyone on the team wants to check out my VM, email me, glenn.block@gmail.com and I'll send them the info to login.

@glennblock
Copy link
Author

Was this fixed?

@davidfowl
Copy link
Member

Moved to the new kvm repo

@glennblock
Copy link
Author

Got it, thanks

On Thursday, July 3, 2014, David Fowler notifications@github.com wrote:

Moved to the new kvm repo


Reply to this email directly or view it on GitHub
#350 (comment).

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

No branches or pull requests

2 participants