Giter Club home page Giter Club logo

Comments (14)

lamont-granquist avatar lamont-granquist commented on July 19, 2024
   [2017-06-19T09:07:53-07:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out
   [2017-06-19T09:07:53-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report

the contents of that file would be useful

from chef_client_updater.

ABrehm264 avatar ABrehm264 commented on July 19, 2024

I'll see if I can get that for you. The main problem seemed to have been that the update script was needing c:/opscode/chef to exist, after the code moved it. But yeah, I'll see what I can do.

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

I would think that would have produced a Mixlib::ShellOut exception, not the Errno::ENOENT which is showing up. The stacktrace.out would shed more light on that.

from chef_client_updater.

ABrehm264 avatar ABrehm264 commented on July 19, 2024

Here ya go:
stacktrace.out.txt

and thank you for looking into this for me.

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

yeah the error formatting is blowing up because it expects the files in the stack trace to exist which is masking everything that is going on....

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

>>>> Caused by Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Windows/Temp/chef-script20170627-3004-wwbo6o.ps1" ----
STDOUT: Installing chef from C:\Users\vagrant\AppData\Local\Temp\chef-client-12.20.3-1-x64.msi
STDERR: C:\Windows\Temp\chef-script20170627-3004-wwbo6o.ps1 : msiexec was not 

successful. Received exit code 1603

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep 

   tion

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio 

   n,chef-script20170627-3004-wwbo6o.ps1
---- End output of "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Windows/Temp/chef-script20170627-3004-wwbo6o.ps1" ----
Ran "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File "C:/Windows/Temp/chef-script20170627-3004-wwbo6o.ps1" returned 1
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout.rb:289:in `invalid!'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout.rb:276:in `error!'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/mixin/shell_out.rb:120:in `shell_out!'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/provider/execute.rb:58:in `block in action_run'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/mixin/why_run.rb:52:in `add_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/provider.rb:202:in `converge_by'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/provider/execute.rb:56:in `action_run'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/provider/script.rb:64:in `action_run'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/provider/windows_script.rb:57:in `action_run'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/provider/powershell_script.rb:35:in `action_run'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/provider.rb:171:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib/chef/resource.rb:591:in `run_action'
C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/chef_client_updater/providers/default.rb:215:in `execute_install_script'
C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/chef_client_updater/providers/default.rb:235:in `block (2 levels) in class_from_file'

that is a lot more relevant, although I'm not parsing exactly what went wrong...

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

so to clarify: "No such file or directory @ realpath_rec - C:/opscode/chef" is a puke coming from the error formatter. once the exception has been thrown the error formatter then goes and gets very upset over its files having disappeared. that is somewhat unfortunate (also not very easily fixable, although we could do more defensive coding in the error formatter, but that doesn't help anyone upgrading from a version of chef that is already released...)

the actual error is that snippet that I pasted above. that doesn't (or doesn't obviously) reference any issues about c:\opscode\chef disappearing on it.

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

@wrightp i'm not sure if you've got any thoughts on this one. i think we're going to need a windows expert here and that's not me. its possible that this is related to a failed uninstall of the prior chef version (possibly due to the directory being moved) but we have to do that because we're running the thing which is being upgraded and if we nuke the files out from under it, the running chef-client gets very annoyed, so we had to go down the route of moving the files away...

googling "exit code 1603" seems to indicate it could be simple permissions issue, but again i don't know what to do about it, don't even know where to start debugging...

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

also paging in @mwrock @btm and @NimishaS

from chef_client_updater.

mwrock avatar mwrock commented on July 19, 2024

The best way to debug 1603 errors is to have msiexec send debug logging to a file. Almost always that output will say what specifically went wrong.

from chef_client_updater.

cmrcode avatar cmrcode commented on July 19, 2024

I was seeing the same issue. I believe this is fixed by mixlib-install 3.3.1 - chef/mixlib-install#219

I've tested this in Windows 2012 R2

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on July 19, 2024

@ABrehm264 can you confirm that the mixlib-install 3.3.1 release yesterday fixes this?

from chef_client_updater.

ABrehm264 avatar ABrehm264 commented on July 19, 2024

Sorry for not responding earlier, I've been out of pocket :(

That being said, the mixlib updates does not seem to have fixed my problem :(

Here's what I updated my recipe to:
./recipes/default.rb

chef_gem 'mixlib-install' do
  version '3.3.1'
  action :install
end

include_recipe 'chef_client_updater::default' # updates chef client
include_recipe 'chef-client::default'

gem list on my box:
image

Here's the stack trace:
stacktrace.out.txt

When I get the chance, I'll see if I can dig into this a little bit more, but yeah, I think something weird is going on with something that mixlib is doing. (IDK if it's the install script that's downloaded or what)

from chef_client_updater.

tas50 avatar tas50 commented on July 19, 2024

I believe there's a high likelihood that this issue has been resolved with the latest release of this cookbook that uses the new mixlib-install. If you're still having these problems with the 3.1 release feel free to open this issue back up.

from chef_client_updater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.