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 #15

Closed
davidfowl opened this issue Jul 3, 2014 · 2 comments

Comments

@davidfowl
Copy link
Member

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.

From aspnet/dnx#350

@Praburaj
Copy link
Contributor

Praburaj commented Jan 2, 2015

@glennc - do you still see this issue with latest scripts - If so could I can take a look at this VM. Let me know?

@glennc
Copy link
Member

glennc commented Mar 20, 2015

This was @glennblock not me :)

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

3 participants