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

Atom does not install on EC2 Windows 2012R2 with Powershell 3 #109

Closed
burtlo opened this Issue Mar 2, 2016 · 6 comments

Comments

Projects
None yet
2 participants
@burtlo

burtlo commented Mar 2, 2016

I have been building Windows nodes and workstations for Chef Training (https://github.com/chef-training/chefdk-image/tree/master/scripts). None of it was working with Packer but that is another story.

I use the Nordstrom chefdk_bootstrap to prepare the AMI.

Write-Output "Execute Nordstrom ChefDK Bootstrap"
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/Nordstrom/chefdk_bootstrap/master/bootstrap.ps1).Content | Invoke-Expression

I receive this errror. I Assume maybe all of my problems stem from having Powershell 3 installed on these EC2 instances.

2016-03-02_14-15-10

When it comes time to install Atom. It never installs and instead prompts me to open a file.

2016-03-02_14-15-11

@dougireton

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Mar 3, 2016

Contributor

@burtlo The Get-Filehash error is coming from within the ChefDK install script itself, not from our ChefDK_Bootstrap cookbook code. I think it's safe to ignore that since it seems to correctly install the ChefDK.

Contributor

dougireton commented Mar 3, 2016

@burtlo The Get-Filehash error is coming from within the ChefDK install script itself, not from our ChefDK_Bootstrap cookbook code. I think it's safe to ignore that since it seems to correctly install the ChefDK.

@dougireton

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Mar 3, 2016

Contributor

@burtlo As to your second issue, it seems like it's getting past the Atom install and choking on the Virtualbox install.

Does AtomSetup.exe get cached in the local-mode-cache?
screen shot 2016-03-02 at 5 16 37 pm

Does Atom show up in Add/Remove Programs?

Contributor

dougireton commented Mar 3, 2016

@burtlo As to your second issue, it seems like it's getting past the Atom install and choking on the Virtualbox install.

Does AtomSetup.exe get cached in the local-mode-cache?
screen shot 2016-03-02 at 5 16 37 pm

Does Atom show up in Add/Remove Programs?

@dougireton

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Mar 3, 2016

Contributor

Also can you run this on the EC2 instance and let me know if you get the file popup again? This assumes the script hasn't run the commands to clean up the temp directories and files it lays down.

# run PowerShell in an elevated Admin console
cd $env:TEMP\chefdk_bootstrap
chef-client -A -z -l debug -c $env:TEMP\chefdk_bootstrap\client.rb -o chefdk_bootstrap
Contributor

dougireton commented Mar 3, 2016

Also can you run this on the EC2 instance and let me know if you get the file popup again? This assumes the script hasn't run the commands to clean up the temp directories and files it lays down.

# run PowerShell in an elevated Admin console
cd $env:TEMP\chefdk_bootstrap
chef-client -A -z -l debug -c $env:TEMP\chefdk_bootstrap\client.rb -o chefdk_bootstrap

@dougireton dougireton self-assigned this Mar 3, 2016

@dougireton dougireton added this to the 1.6 milestone Mar 3, 2016

@dougireton

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Mar 3, 2016

Contributor

@burtlo you should consider setting Virtualbox (and maybe Vagrant) install attributes to false via the JSON Attributes env var if you don't need them. That way the cookbook won't try to install them which will save you time.

Example .json attributes file here: https://gist.github.com/dougireton/0cb600b020732004596f

Contributor

dougireton commented Mar 3, 2016

@burtlo you should consider setting Virtualbox (and maybe Vagrant) install attributes to false via the JSON Attributes env var if you don't need them. That way the cookbook won't try to install them which will save you time.

Example .json attributes file here: https://gist.github.com/dougireton/0cb600b020732004596f

@dougireton

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Mar 4, 2016

Contributor

@burtlo I have reproduced this once on a Windows 2012r2 Vagrant box. Looking into this a bit deeper now.

Contributor

dougireton commented Mar 4, 2016

@burtlo I have reproduced this once on a Windows 2012r2 Vagrant box. Looking into this a bit deeper now.

@burtlo

This comment has been minimized.

Show comment
Hide comment
@burtlo

burtlo Mar 4, 2016

You're right I don't need VirtualBox. It successfully installs. Atom never makes it on the desktop. I will check to see if it gets in the Add/Remove programs. I have a guess that it does not.

I'll attempt running that script.

burtlo commented Mar 4, 2016

You're right I don't need VirtualBox. It successfully installs. Atom never makes it on the desktop. I will check to see if it gets in the Add/Remove programs. I have a guess that it does not.

I'll attempt running that script.

dougireton added a commit that referenced this issue Mar 7, 2016

dougireton added a commit that referenced this issue Mar 7, 2016

dougireton added a commit that referenced this issue Mar 7, 2016

dougireton added a commit that referenced this issue Mar 7, 2016

@oifland oifland closed this in #112 Mar 7, 2016

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