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

[BUG] The OS handle's position is not what FileStream expected. Do not use a handle simultaneously in one FileStream and in Win32 code or another FileStream. This may cause data loss. #18

Closed
ferventcoder opened this issue Jan 2, 2014 · 46 comments · Fixed by #49
Assignees
Milestone

Comments

@ferventcoder
Copy link
Contributor

I thought someone had already mentioned this issue before?

@rismoney
Copy link
Contributor

rismoney commented Jan 3, 2014

Is there a way to reproduce this? Does it only happen on a particular OS? And has it been verified on the newest choco with the newest provider rev? I recall a posh error in 2.0 related to this.

I haven't tried it with the new shims, and some of the more recent changes.

I have been meaning to switch the provider to powershell execution similar to the powershell and the wsus providers, instead of the bat files. That or the new shim method.

@ferventcoder
Copy link
Contributor Author

We have a documented reproduction of this! http://pastebin.com/wz5peZbG

Conversation is happening at https://groups.google.com/forum/#!msg/puppet-users/B2166yoTiD0/XS061RY8SFYJ

@ferventcoder
Copy link
Contributor Author

Note that the user is/was on 0.9.8.20 and using the current forge module (0.0.2)

@ferventcoder
Copy link
Contributor Author

Same error with v0.9.8.23 - http://pastebin.com/BFd90qkb

@rismoney
Copy link
Contributor

should this be handled in puppetprovider or in chocolatey.cmd

does it not surface in v3?

@ferventcoder
Copy link
Contributor Author

It might still be there in POSH v3, but I wasn't for sure when reading over the different comments. I haven't seen this on chocolatey itself, only when using the chocolatey provider.

@ferventcoder
Copy link
Contributor Author

I'm pretty sure I might be able to reproduce this as simply as having a package that writes a good message then throws an error message.

@ferventcoder
Copy link
Contributor Author

The following package tries to write to many streams:

$packageName = 'badpackage'

try {

  Write-Host "Ya!"
  Write-Debug "A debug message"
  Write-Warning "A warning!"
  Write-Error "Oh no! An error"
  throw "We had an error captain!"

  Write-ChocolateySuccess "$packageName"
} catch {
  Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
  throw
}
package {'badpackage':
  ensure => latest,
  provider => chocolatey,
  source => 'https://www.myget.org/F/killerpackages/'
}

And I get the expected error (this issue):

Error: Could not update: Execution of 'C:\Chocolatey\chocolateyInstall\chocolatey.cmd update badpackage  -source https://www.myget.org/F/killerpackages/' returned 1: Chocolatey (v0.9.8.24-alpha1) is installing 'badpackage' and dependencies. By installing you accept the license for 'badpackage' and each dependency you are installing.
______ badpackage v1.0 ______
Ya!
WARNING: A warning!
The pipeline has been stopped.
Command 'update' failed (sometimes this indicates a partial failure). Additional  info/packages: badpackage
The OS handle's position is not what FileStream expected. Do not use a handle simultaneously in one FileStream and in Win32 code or another FileStream. This may  cause data loss.
Reading environment variables from registry. Please wait... Done.

Error: /Stage[main]/Main/Package[badpackage]/ensure: change from absent to latest failed: Could not update: Execution of 'C:\Chocolatey\chocolateyInstall\chocolatey.cmd update badpackage  -source https://www.myget.org/F/killerpackages/' returned 1: Chocolatey (v0.9.8.24-alpha1) is installing 'badpackage' and dependencies. By installing you accept the license for 'badpackage' and each dependency you are installing.
______ badpackage v1.0 ______
Ya!
WARNING: A warning!
The pipeline has been stopped.
Command 'update' failed (sometimes this indicates a partial failure). Additional info/packages: badpackage
The OS handle's position is not what FileStream expected. Do not use a handle simultaneously in one FileStream and in Win32 code or another FileStream. This may cause data loss.
Reading environment variables from registry. Please wait... Done.

@rismoney
Copy link
Contributor

ugh - thats harsh

@ferventcoder
Copy link
Contributor Author

Basically if any package fails using the provider, boom shakalaka... and we have pipeline stoppage.

@ferventcoder
Copy link
Contributor Author

And what's worse, you have no idea why it failed.

@ferventcoder
Copy link
Contributor Author

I was slightly wrong there, we do have the error in the chocolateyInstall.log file.

20140218-14:46:16 [CHOCO] ################################################################################
20140218-14:46:16 [CHOCO] #                  Going Chocolatey on 2014-02-18 14:46:16Z                    #
20140218-14:46:16 [CHOCO] ################################################################################
20140218-14:46:16 [DEBUG] Arguments: $command = 'update'|$packageNames='badpackage'|$source='https://www.myget.org/F/killerpackages/'|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False|$force=False|$prerelease=False|$localonly=False|$verbosity=False|$debug=False|$name=''|$ignoreDependencies=False|$forceX86=False|$packageParameters=''|PowerShellVersion=2.0
20140218-14:46:16 [DEBUG] Invoke-ChocolateyFunction is calling: $ChocoFunction='Chocolatey-Update'|@paramlist='@paramlist'
20140218-14:46:16 [DEBUG] Running 'Chocolatey-Update' for badpackage with source:'https://www.myget.org/F/killerpackages/'.
20140218-14:46:16 [DEBUG] Running 'Chocolatey-Version' for badpackage with source:'https://www.myget.org/F/killerpackages/'.
20140218-14:46:16 [DEBUG] Using '-Source "https://www.myget.org/F/killerpackages/"' as the source arguments
20140218-14:46:17 [DEBUG] based on: '-Source "https://www.myget.org/F/killerpackages/"' feed
20140218-14:46:17 [DEBUG] Long version of  is '000000000000'
20140218-14:46:17 [DEBUG] Using  as the latest version
20140218-14:46:17 [DEBUG] Calling 'C:\Chocolatey\chocolateyInstall\nuget.exe' list "badpackage" -Source "https://www.myget.org/F/killerpackages/" -NonInteractive
20140218-14:46:23 [DEBUG] badpackage 1.0
20140218-14:46:23 [DEBUG] Long version of 1.0 is '000000000001.000000000000'
20140218-14:46:23 [DEBUG] Running 'Chocolatey-NuGet' for badpackage with source:'https://www.myget.org/F/killerpackages/'. Force? False
20140218-14:46:23 [CHOCO] Chocolatey (v0.9.8.24-alpha1) is installing 'badpackage' and dependencies. By installing you accept the license for 'badpackage' and each dependency you are installing.
20140218-14:46:23 [DEBUG] Installing packages to "C:\Chocolatey\lib".
20140218-14:46:23 [DEBUG] Running 'Run-NuGet' for badpackage with source: 'https://www.myget.org/F/killerpackages/', version:''
20140218-14:46:23 [DEBUG] ___ NuGet ____
20140218-14:46:23 [DEBUG] Using '-Source "https://www.myget.org/F/killerpackages/"' as the source arguments
20140218-14:46:23 [DEBUG] Calling 'C:\Chocolatey\chocolateyInstall\nuget.exe' install badpackage -Outputdirectory "C:\Chocolatey\lib" -Source "https://www.myget.org/F/killerpackages/" -NonInteractive -NoCache
20140218-14:46:26 [DEBUG] Successfully installed 'badpackage 1.0'.

20140218-14:46:26 [DEBUG] Evaluating NuGet output for line: Successfully installed 'badpackage 1.0'.
20140218-14:46:26 [DEBUG] NuGet installed badpackage. If we are ignoring dependencies (False) then we will clean this up.
20140218-14:46:26 [CHOCO] ______ badpackage v1.0 ______
20140218-14:46:26 [DEBUG] Running 'Delete-ExistingErrorLog' for badpackage
20140218-14:46:26 [DEBUG] Looking for failure log at 'C:\Users\rob\AppData\Local\Temp\chocolatey\badpackage\failure.log'
20140218-14:46:26 [DEBUG] Found the failure log. Deleting it...
20140218-14:46:26 [DEBUG] Running 'Run-ChocolateyPS1' for badpackage with packageFolder:'C:\Chocolatey\lib\badpackage.1.0', action: 'install'
20140218-14:46:26 [DEBUG]   __ PowerShell install (chocolateyinstall.ps1) __
20140218-14:46:26 [DEBUG]   Looking for chocolateyinstall.ps1 in folder 'C:\Chocolatey\lib\badpackage.1.0'. If chocolateyinstall.ps1 is found, it will be run.
20140218-14:46:26 [DEBUG] Action file is 'chocolateyInstall.ps1'
20140218-14:46:26 [DEBUG] Running 'C:\Chocolatey\lib\badpackage.1.0\tools\chocolateyInstall.ps1'
20140218-14:46:26 [CHOCO] Ya!
20140218-14:46:26 [DEBUG] A debug message
20140218-14:46:26 [ERROR] Oh no! An error
20140218-14:46:26 [ERROR] badpackage did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] The pipeline has been stopped.
-----------------------
20140218-14:46:27 [DEBUG] Running 'Move-BadInstall' for badpackage version: '1.0', packageFolder:'C:\Chocolatey\lib\badpackage.1.0'
20140218-14:46:27 [DEBUG] Moving bad package 'badpackage v1.0' to 'C:\Chocolatey\lib-bad'.
20140218-14:46:27 [ERROR] Package 'badpackage v1.0' did not install successfully: The pipeline has been stopped.
20140218-14:46:27 [DEBUG] Caught 'The pipeline has been stopped.'
20140218-14:46:27 [CHOCO] The pipeline has been stopped.
20140218-14:46:27 [CHOCO] Command 'update' failed (sometimes this indicates a partial failure). Additional info/packages: badpackage
20140218-14:46:27 [DEBUG] Exiting with non-zero exit code.

@rismoney
Copy link
Contributor

boom shakalaka to killerpackages. lmao!

I thought the powershell.exe calling via cmd was the culprit, and one of those links above with piping to out-default might be a workaround...

@ferventcoder
Copy link
Contributor Author

From the possible workaround: http://www.leeholmes.com/blog/2008/07/30/workaround-the-os-handles-position-is-not-what-filestream-expected/

"This is bug in PowerShell, and happens when:

  • a PowerShell command generates both regular and error output
  • you have used cmd.exe to redirect the output to a file
  • you have used cmd.exe to merge the output and error streams

How does this work, and why does this happen in the first place? When PowerShell sends output to its output stream the first time, it keeps a reference to the output stream for future use. However, this output stream is really a wrapper around a lower-level stream. When cmd.exe writes to the output stream, it writes to the lower-level stream. This makes the .NET wrapper complain that the underlying stream has changed from beneath it."

Puppet writes stdout and others out to a tempfile, which seems to be the cause of this - from looking at it a little further we are going to want to look into working around this. I tried

chocolatey(*args, :combine => false, :failonfail => true)

(thanks @joshcooper !)

but on Windows it doesn't seem to gather the stderr stream for the output and believes the exit status was zero. It also doesn't log the output at all to chocolateyInstall.log.

@patant
Copy link
Contributor

patant commented Apr 4, 2014

Got the same problem with a package. I was able to install and uninstall the package manually by cmd and chocolatey commands. With puppet I was able to install the package. But when I tried to uninstall it I got the same error. The package is on a shared disk.

Did the development of puppet module and chocolatey package on a VM on my laptop. On that VM I was able to install and uninstall the same package with puppet. The only diffrens between the servers was internet access. So I ran the uninstall on my VM with the network adapter disconnected. And the uninstallation failed.

Does the chocolatey provider require internet access to be able to uninstall packages?

@ferventcoder
Copy link
Contributor Author

Not that I know of. If you look at the chocolatey log you will likely see that it threw an error and powershell has a bug in it (v2, v3, and possibly v4) that causes it to puke because puppet is writing the log to a tmpfile and there is something written to any stream but stdout. I wrote a package that will show you this exact behavior. https://github.com/ferventcoder/nugetpackages/tree/master/badpackage

@rismoney
Copy link
Contributor

rismoney commented Apr 4, 2014

does the package in question have a chocolateyuninstall.ps1 ?
chocolatey provider does not req access. it simply makes the appropriate chocolatey calls.

@rismoney
Copy link
Contributor

rismoney commented Apr 4, 2014

@ferventcoder any thoughts on how we can work around this bug? perhaps we look at using the ps1 via poweshell.exe passed as a command vs, the .cmd files? would that potentially alleviate the issue?

@ferventcoder
Copy link
Contributor Author

Get out of powershell business as soon as possible. ;)

@rismoney
Copy link
Contributor

rismoney commented Apr 4, 2014

in general, or for this?

@ferventcoder
Copy link
Contributor Author

No I mean provide an executable. Less chance for issue if we are marshalling the output through that and then something like puppet is using that, it won't run into these errors.

@jumanjiman
Copy link
Contributor

golang would be an interesting choice.

  • fully self-contained. iow no external deps, which is good for a package manager.
  • (somewhat) easy to interface with system APIs
  • testable

@ferventcoder
Copy link
Contributor Author

@jumanjiman :) I think we are going to start with something we know so we are not learning a language while trying to provide a working tool (I already did that once).

@jumanjiman
Copy link
Contributor

hehe, that's the fun part :-)
oh, and ack.

@ferventcoder
Copy link
Contributor Author

Yes as long as it is on a project that is not critical. :)

@patant
Copy link
Contributor

patant commented Apr 4, 2014

Found the problem. Actually has nothing to do with this bug but gives the same error message.
I ran the cuninst command without internet:
Y:\shared\demo\choco\myapp>cuninst myapp
Chocolatey (v0.9.8.23) is uninstalling myapp...
Unable to connect to the remote server <- I think this gives a exit 1. Causing puppet to fail

Then I ran command without internet:
Y:\shared\demo\choco\myapp>cuninst myapp -Source %cd%
Chocolatey (v0.9.8.23) is uninstalling myapp... <- No problem. Not trying to access internet.

So I did a fix and tested it https://github.com/patant/puppet-chocolatey/blob/master/lib/puppet/provider/package/chocolatey.rb#L45-L47
Worked fine with puppet now on server without internet access. Let me know if I should create a pull request.

Or perhaps it better to fix the exit code in chocolatey.

@rismoney
Copy link
Contributor

rismoney commented May 3, 2014

i see this error from powershell provider as well...

@gildas
Copy link

gildas commented Aug 21, 2014

I just got the error with the tortoisegit package on a Windows 2008R2 VM. If I install it from the command line, all is good.
If I install it via puppet, I get that OS Handle error.
Now, in the failure.txt from C:\Windows\Temp\chocolatey\tortoisegit, I get an error:

[ERROR][ERROR] msiexec with /i "C:\windows\TEMP\chocolatey\TortoiseGit\TortoiseGitInstall.MSI" \
/QN /norestart REBOOT=ReallySuppress was not successful. Exit code was '1603'.

I have installed Powershell v3 via puppet and chocolatey believes it got installed.
Though, when I get $PSVersionTable in PoSH, I get v2.
I just ran manually choco install powershell -force, to re-install, but since I fixed stuff manually...

I will need further tests, since I fix too many things manually to get a clear view.
I have a feeling that making sure PoSH 3 is the first package installed (but really installed) will help all subsequent packages.
I will also have to pay more attention to the fact chocolatey did not get installed via puppet properly as it failed installed .Net 4.
All these could be related. Stay tuned...

FWIW, everything works very well on Windows 2012R2.
I can't wait for 2008R2 to disappear into oblivion.

@tkelman
Copy link

tkelman commented Sep 18, 2014

I get this error when trying to install Chocolatey during vagrant (1.6.5, Ubuntu 14.04 host) provisioning of https://vagrantcloud.com/ferventcoder/boxes/win7pro-x64-nocm-lite - commenting out all occurences of Write-Host and write-host in https://chocolatey.org/install.ps1 works around the problem.

Edit: at least I thought it did? A different workaround that also seems to work is doing (iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1

@lmayorga1980
Copy link

I had the same problem trying to install RabbitMQ from Chocolatey.org today and a Vagrant box

screen shot 2014-10-08 at 10 58 16 am

@ferventcoder
Copy link
Contributor Author

Hopefully we are coming to an idea of where we are going with the choco.exe that should eliminate this.

@lmayorga1980
Copy link

Well it seems that the ChocolateyInstall.ps1 was calling a .bat file specially on the rabbitmq chocolatey package https://chocolatey.org/packages/rabbitmq. I just repackaged and removed that .bat file and everything is working as expected.

It seems that the ChocolateyInstall.ps1 allows you to do lots of things but i prefer to keep those in puppet for now. Otherwise, I will have to manage other logic inside my chocolatey packages.

@ferventcoder
Copy link
Contributor Author

Agreed having a provisioner removes a need for packages to do as much. For those that would use those provisioners.

If you are looking for a place to put those customized packages - https://github.com/ferventcoder/puppet-chocolatey-presentation/blob/master/demo/puppet/modules/chocolateyserver/manifests/init.pp

@lmayorga1980
Copy link

I've had the same issue with Chocolatey v0.9.8.28 and the problem was the wrong name of the Chocolatey Install Function. There was a typo in it but could not figure it because it was always saying

==> default: siteminder.agent v12.51
==> default: Installing siteminder.agent...
==> default: WARNING: Unable to generate 
==> default:
==> default: 'http://mynugetserver/puppet/siteminder-12.51-win64.exe.ignore'
==> default: The pipeline has been stopped.
==> default: Command 'install' failed (sometimes this indicates a partial failure). Additional info/packages: siteminder.agent
==> default: 
==> default: Did you know we are rewriting Chocolatey? The new
==> default: version is much more stable and secure.
==> default: 
==> default: Find out more and support the future of Chocolatey
==> default: at https://bit.ly/chocolateykickstarter
==> default: 
==> default: Disable this message by changing ksMessage to false in chocolatey.config.
==> default: The OS handle's position is not what FileStream expected. Do not use a handle simultaneously in one FileStream and in Win32 code or another FileStream. This may cause data loss.
==> default: Wrapped exception:
...

I believe the exception message was not helpful. It should say something like

The chocolatey function does not exist. or something like that.

@ferventcoder
Copy link
Contributor Author

@lmayorga1980 it probably does, but this bug is annoying and doesn't tell you anything. However if you go over to the log that chocolatey creates you can find it just before it blows up. :/

The good news is that this goes away in about a month with the rewrite.

@mukaibot
Copy link

Looking forward to the rewrite, because this bug is really causing me some grief at the moment :(

@ferventcoder
Copy link
Contributor Author

Sorry to hear that. Yes it's a pain in the butt when it occurs. I'll be so glad when this doesn't happen anymore.

@rismoney
Copy link
Contributor

I thought you were getting the error in powershell without ruby/cmd swallowing.

#18 (comment)

@lmayorga1980
Copy link

@ferventcoder Just found out that there is a rewrite process going on. Hope the get an update when it happens.

Digesting the turkey while typing this comment ... 😄

@ferventcoder
Copy link
Contributor Author

Should have an alpha version out next month.

@rismoney
Copy link
Contributor

rismoney commented Jan 9, 2015

Are all powershell executions from puppet plagued by this if they do any stderr writing and puppet writes to its tmp? ie exec or other providers calling cmdlets, etc?

Does these need to be reraised on cmsonnect or attention brought to some folks with influence at msft?

@ferventcoder
Copy link
Contributor Author

All posh if it redirects output to a file and writes to more than one
stream. As far as I know it affects up to v4.

On Thursday, January 8, 2015, Rich Siegel [email protected] wrote:

Are all powershell executions from puppet plagued by this if they do any
stderr writing and puppet writes to its tmp? ie exec or other providers
calling cmdlets, etc?

Does these need to be reraised on cmsonnect or attention brought to some
folks with influence at msft?


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

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

@vix633
Copy link

vix633 commented Jan 19, 2015

Definitely also running into this while running puppet -> boxstarter - > chocolatey

@ferventcoder
Copy link
Contributor Author

This will close with #49

@rismoney
Copy link
Contributor

rismoney commented Oct 2, 2015

interestingly, I commented the write-host commands in the template here (InstallChocolatey.ps1.erb) and the errors went away on my clean win2008r2 box. PS 2.0. .net 4.0

note - i had no issues on 2012r2, or win2008r2 with .net 4.5 and wmf 4.0

I still have 1 more error later on. I think it comes from here-ish
https://github.com/chocolatey/choco/blob/master/src/chocolatey/infrastructure.app/commands/ChocolateyUnpackSelfCommand.cs#L88

Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: Chocolatey v0.9.9.8
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: Chocolatey is unpacking requir
d files for use. Overwriting? True
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: Creating ChocolateyInstall as
n environment variable (targeting 'Machine')
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:   Setting ChocolateyInstall to
'C:\ProgramData\chocolatey'
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: WARNING: It's very likely you
ill need to close and reopen your shell
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:   before you can use choco.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: Adding Modify permission for c
rrent user to 'C:\ProgramData\chocolatey'
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: We are setting up the Chocolat
y package repository.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: The packages themselves go to
C:\ProgramData\chocolatey\lib'
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:   (i.e. C:\ProgramData\chocola
ey\lib\yourPackageName).
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: A shim file for the command li
e goes to 'C:\ProgramData\chocolatey\bin'
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:   and points to an executable
n 'C:\ProgramData\chocolatey\lib\yourPackageName'.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: Creating Chocolatey folders if
they do not already exist.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: WARNING: You can safely ignore
errors related to missing log files when
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:   upgrading from a version of
hocolatey less than 0.9.9.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:   'Batch file could not be fou
d' is also safe to ignore.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:   'The system cannot find the
ile specified' - also safe.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: Chocolatey v0.9.9.8
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: Chocolatey is unpacking requir
d files for use. Overwriting? True
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: The OS handle's position is no
 what FileStream expected. Do not use a handle simultaneously in one FileStream and in Win32 code or another FileStream
 This may cause data loss.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: out-lineoutput : The OS handle
s position is not what FileStream expected. Do not use a handle simultaneously in one Fi
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: leStream and in Win32 code or
nother FileStream. This may cause data loss.
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:     + CategoryInfo          :
otSpecified: (:) [out-lineoutput], IOException
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:     + FullyQualifiedErrorId :
ystem.IO.IOException,Microsoft.PowerShell.Commands.OutLineOutputCommand
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns:
Notice: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]/returns: executed successfully
Debug: /Stage[protozoic]/Chocolatey::Install/Exec[install_chocolatey_official]: The container Class[Chocolatey::Install
 will propagate my refresh eventy

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

Successfully merging a pull request may close this issue.

9 participants