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

Issue with uploading tar.gz files with winrm file-upload #4

Open
brentm5 opened this issue Jan 21, 2015 · 0 comments
Open

Issue with uploading tar.gz files with winrm file-upload #4

brentm5 opened this issue Jan 21, 2015 · 0 comments

Comments

@brentm5
Copy link

brentm5 commented Jan 21, 2015

I am trying to run server spec with a windows host. I have gotten this to work however I run into weird issues with uploading files. It seems either the temp file does not get created or some other issue occurs after the temp file is created. I am simply running kitchen converge which under the hood is using the following gem: kitchen-vagrant_winrm The error I am running into is listed below. I believe this could have to do with the following commit 6858c89.

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant winrm-upload -c '/var/folders/qw/gdh2sh2n3xgcyfdjr536m09rzjxp0b/T/dotnet451-windows-server-2008-R2-sandbox-20150120-12735-cdeut0' 'C:/chef' ----
STDOUT:
STDERR: /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/communicators/winrm/file_manager.rb:76:in `binread': No such file or directory - /var/folders/qw/gdh2sh2n3xgcyfdjr536m09rzjxp0b/T/script20150120-12828-yeby4r.tar.gz (Errno::ENOENT)
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/communicators/winrm/file_manager.rb:76:in `upload_to_temp_file'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/communicators/winrm/file_manager.rb:61:in `upload_file'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/communicators/winrm/file_manager.rb:22:in `upload'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/communicators/winrm/shell.rb:70:in `upload'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/communicators/winrm/communicator.rb:101:in `upload'
    from /Users/user/.vagrant.d/gems/gems/vagrant-winrm-0.4.0/lib/vagrant-winrm/commands/winrm_upload.rb:33:in `block in execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/plugin/v2/command.rb:226:in `block in with_target_vms'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/plugin/v2/command.rb:220:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/plugin/v2/command.rb:220:in `with_target_vms'
    from /Users/user/.vagrant.d/gems/gems/vagrant-winrm-0.4.0/lib/vagrant-winrm/commands/winrm_upload.rb:17:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/cli.rb:42:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:301:in `cli'
    from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant:174:in `<main>'
---- End output of vagrant winrm-upload -c '/var/folders/qw/gdh2sh2n3xgcyfdjr536m09rzjxp0b/T/dotnet451-windows-server-2008-R2-sandbox-20150120-12735-cdeut0' 'C:/chef' ----
Ran vagrant winrm-upload -c '/var/folders/qw/gdh2sh2n3xgcyfdjr536m09rzjxp0b/T/dotnet451-windows-server-2008-R2-sandbox-20150120-12735-cdeut0' 'C:/chef' returned 1]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

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

No branches or pull requests

1 participant