On Mon, Feb 17, 2014 at 2:57 PM, Jay Benner <longri...@gmail.com> wrote:

> I tried them in chocolatey.ps1, but that just seemed to break chocolatey.
>
>
> On Monday, February 17, 2014 11:11:25 AM UTC-8, Jay Benner wrote:
>>
>> If I am going to use the workarounds mentioned in the bug article you
>> referenced, should I put that code into chocolateyinstall.ps1?
>>
>
Those workarounds will likely need to go back into chocolatey or the
provider itself. It seems to be running into some error but once it tries
to write the error it runs into the issue you are running into, making the
error harder to find.


>
>> On Friday, February 14, 2014 1:57:12 PM UTC-8, Rob Reynolds wrote:
>>>
>>> It looks to be a possible bug in the chocolatey provider that happens
>>> when we try to capture both error and regular logging when an error has
>>> occurred. Keep a watch on the issue itself for updates.
>>>
>>> In the meantime if you are using SYSTEM for the puppet agent, I would
>>> switch to something with network access and see if chocolatey works inside
>>> of puppet.
>>>
>>>
>>> On Fri, Feb 14, 2014 at 3:33 PM, Jay Benner <long...@gmail.com> wrote:
>>>
>>>> Some improvement.  I'll attach another chocolateyinstall log below.  It
>>>> still didn't install the agent, but it also didn't add an entry to /lib, so
>>>> I'm guessing it will keep trying.  Looks like the same error downloading
>>>> the file.
>>>>
>>>> http://pastebin.com/BFd90qkb
>>>>
>>>>
>>>>
>>>> On Friday, February 14, 2014 10:55:51 AM UTC-8, Rob Reynolds wrote:
>>>>
>>>>> Let's have you upgrade chocolatey to 0.9.8.23 and see if the issue
>>>>> still happens. The paste bin shows 0.9.8.20.
>>>>>
>>>>>
>>>>> On Fri, Feb 14, 2014 at 12:53 PM, Rob Reynolds <r...@puppetlabs.com>wrote:
>>>>>
>>>>>> You are running into an issue we have seen but have not been able to
>>>>>> reproduce effectively - https://github.com/chocolatey/
>>>>>> puppet-chocolatey/issues/18
>>>>>>
>>>>>>
>>>>>> On Fri, Feb 14, 2014 at 12:47 PM, Jay Benner <long...@gmail.com>wrote:
>>>>>>
>>>>>>> The following is a copy of my log:
>>>>>>> http://pastebin.com/wz5peZbG
>>>>>>> Looks like the download failed.  Perhaps a problem with puppet not
>>>>>>> being able to access my personal temp folder?
>>>>>>>
>>>>>>>
>>>>>>> On Friday, February 14, 2014 9:58:53 AM UTC-8, Rob Reynolds wrote:
>>>>>>>
>>>>>>>> I looks like it does install the package, but may be running into
>>>>>>>> something else when it is running. In C:\chocolatey\
>>>>>>>> chocolateyInstall there are some log files, what does the log file
>>>>>>>> say about the installation?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Feb 13, 2014 at 2:10 PM, Jay Benner <long...@gmail.com>wrote:
>>>>>>>>
>>>>>>>>>  I had deleted the entry in /lib.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wednesday, February 12, 2014 2:37:49 PM UTC-8, Jay Benner wrote:
>>>>>>>>>
>>>>>>>>>> I have a bunch of windows servers with NewRelic installed on them
>>>>>>>>>> and I want to start managing those installs with Puppet.  Seemed 
>>>>>>>>>> like the
>>>>>>>>>> thing to do would be to have chocolatey uninstall what is there and
>>>>>>>>>> reinstall within the framework of chocolatey so that I get 
>>>>>>>>>> addressable
>>>>>>>>>> version information and the like.  I created the following chocolatey
>>>>>>>>>> package and it works fine when run from the command line using 
>>>>>>>>>> cinst: any
>>>>>>>>>> existing version is removed and the new version, managed by 
>>>>>>>>>> chocolatey,
>>>>>>>>>> gets put in its place.  However, when I run it from Puppet, it does 
>>>>>>>>>> the
>>>>>>>>>> uninstall ok, but the install never happens, even though chocolatey 
>>>>>>>>>> seems
>>>>>>>>>> to think that the package is installed.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> stop-service "LiveVault Backup Service"
>>>>>>>>>> $app = Get-WmiObject -Class Win32_Product | Where-Object {
>>>>>>>>>>     $_.Name -match "New Relic Server Monitor"
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> $app.Uninstall()
>>>>>>>>>> $licensekey = "XXXXXXXXXXXXXX"
>>>>>>>>>>
>>>>>>>>>> $packageName = 'NewRelic_ServerMonitor'
>>>>>>>>>> $installerType = 'MSI'
>>>>>>>>>> $url = 'http://download.newrelic.com/windows_server_monitor/
>>>>>>>>>> release/NewRelicServerMonitor_x86_2.0.0.198.msi'
>>>>>>>>>> $url64 = 'http://download.newrelic.com/windows_server_monito
>>>>>>>>>> r/release/NewRelicServerMonitor_x64_2.0.0.198.msi'
>>>>>>>>>> $validExitCodes = @(0)
>>>>>>>>>> $silentArgs = "/L*v install_Agent.log /qn NR_LICENSE_KEY=`"
>>>>>>>>>> $licensekey`""
>>>>>>>>>> Install-ChocolateyPackage "$packageName" "$installerType" "$
>>>>>>>>>> silentArgs" "$url" "$url64"  -validExitCodes $validExitCodes
>>>>>>>>>>
>>>>>>>>>> start-service "LiveVault Backup Service"
>>>>>>>>>> Start-service "New Relic Server Monitor"
>>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Puppet Users" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>> send an email to puppet-users...@googlegroups.com.
>>>>>>>>> To view this discussion on the web visit
>>>>>>>>> https://groups.google.com/d/msgid/puppet-users/22e5472b-f50d
>>>>>>>>> -4d93-aadc-69ebaa2c9f74%40googlegroups.com.
>>>>>>>>>
>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Rob Reynolds
>>>>>>>> Developer, Puppet Labs
>>>>>>>>
>>>>>>>> *Join us at PuppetConf 2014, September 23-24 in San Francisco - *
>>>>>>>> http://bit.ly/pupconf14
>>>>>>>>
>>>>>>>  --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Puppet Users" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to puppet-users...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/puppet-users/34cf3a92-716b
>>>>>>> -4ef2-84d9-1da968ded783%40googlegroups.com.
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Rob Reynolds
>>>>>> Developer, Puppet Labs
>>>>>>
>>>>>> *Join us at PuppetConf 2014, September 23-24 in San Francisco - *
>>>>>> http://bit.ly/pupconf14
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Rob Reynolds
>>>>> Developer, Puppet Labs
>>>>>
>>>>> *Join us at PuppetConf 2014, September 23-24 in San Francisco - *
>>>>> http://bit.ly/pupconf14
>>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Puppet Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to puppet-users...@googlegroups.com.
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/puppet-users/90379871-8d5d-467d-955a-6bd1ad11dac2%
>>>> 40googlegroups.com.
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> --
>>> Rob Reynolds
>>> Developer, Puppet Labs
>>>
>>> *Join us at PuppetConf 2014, September 23-24 in San Francisco - *
>>> http://bit.ly/pupconf14
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/4a2e9c3a-cf04-4bfd-8138-26c0c0c795a5%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rob Reynolds
Developer, Puppet Labs

*Join us at PuppetConf 2014, September 23-24 in San Francisco - *
http://bit.ly/pupconf14

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK583NLp6cCqfy9LO%3D5ShyhO26b2FePsOJ_QaLKr7ejkBw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to