Installs and Upgrades failing

Support and questions for using and managing Chocolatey NuGet inside of Labtech
Post Reply
bfrizie
Posts: 9
Joined: Mon Nov 05, 2018 2:38 pm
5

Installs and Upgrades failing

Post by bfrizie »

I'm running into a similar problem reported in this post, viewtopic.php?f=5&t=5805&sid=b34c5b78c5 ... 31ae742352.

I have modified the P4L Maintenance script and will check back with an update.

I'm also seeing a lot of 429 Rate limiting errors.
Would it be possible to use the Automate repository to deploy the powershell script?
http://myautomateurl/ChocolateyInstall.ps1
viewtopic.php?f=5&t=5778&sid=b34c5b78c5 ... 31ae742352

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Installs and Upgrades failing

Post by Cubert »

yea, let me see how best to do that.

bfrizie
Posts: 9
Joined: Mon Nov 05, 2018 2:38 pm
5

Re: Installs and Upgrades failing

Post by bfrizie »

I'm still running into issues installing and upgrading applications. I have tried setting up an alternate repository and can install from that repo if it is manually added.

This message appears in the script logs:
Application List may have failed during POSH execute -> [@APPVERSIONPOSH@]

This error appears in the commands:
At C:\Users\administrator\AppData\Local\9aae408480964e5f9fbd895931266f1e.ps1:8 char:4171
+ ... A????A??,??,?A??'A??,???A???sA,Acpo|bbwin|beacon|beebeep|beeftext.ins ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token

I cut out the application list

And this is at the bottom:
$ChocoPath = test-path C:\programdata\chocolatey\bin\choco.exe
if($ChocoPath -eq "True"){
$OutputFile = "C:\Windows\LTSvc\AppRepo.txt"
$ErrorActionPreference = 'SilentlyContinue'
#write-host $data.count total lines read from file
$j = 0
$MyApps = $Applist.split("|")
foreach($Application in $MyApps){
$i = 0
$Version = ""
$PB = 0
$AP = 0
$Status = ""
$Checksum = ""
$Desc = ""
$Title = ""
$Pub = ""
$data2 = C:\programdata\chocolatey\bin\choco.exe search $Application --exact --detailed
foreach ($line2 in $data2)
{
$i++
if($i -eq 2){
$myString = $line2.split(" ")
$Version = $myString[1]
}
$APPROVED = $line2 -match "[Approved]"
if($APPROVED -eq "True"){
$AP = 1
}
$BROKEN = $line2 -match "Possibly broken"
if($BROKEN -eq "True"){
$PB = 1
}
$APPSTATUS = $line2 -match "Package testing status:"
if($APPSTATUS -eq "True"){
$element_name = $line2.split(':')
$Status = $element_name[1].Trim() + ":" + $element_name[2].Trim()
}
$APPCHECKSUM = $line2 -match "Package Checksum:"
if($APPCHECKSUM -eq "True"){
$element_name = $line2.split(':')
$Checksum = $element_name[1].Trim()
$Checksum = $Checksum -replace "'",""
}
$APPDESC = $line2 -match "Description:"
if($APPDESC -eq "True"){
$element_name = $line2.split(':')
$Desc = $element_name[1].Trim()
$Desc = $Desc -replace "'",""
$Desc = $Desc -replace ";",","
$Desc = $Desc -replace "#","+"
$Desc = $Desc -replace "\","/"
}
$APPTITLE = $line2 -match "Title:"
if($APPTITLE -eq "True"){
$element_name = $line2.split(':')
$TitleSplit = $element_name[1].split("|")
$Title = $TitleSplit[0].Trim()
$Title = $Title -replace "'",""
$Title = $Title -replace "' in expression or statement.
At C:\Users\administrator\AppData\Local\9aae408480964e5f9fbd895931266f1e.ps1:76 char:4
+ }
+ ~
Unexpected token '}' in expression or statement.
At C:\Users\administrator\AppData\Local\9aae408480964e5f9fbd895931266f1e.ps1:77 char:3
+ }
+ ~
Unexpected token '}' in expression or statement.
At C:\Users\administrator\AppData\Local\9aae408480964e5f9fbd895931266f1e.ps1:84 char:2
+ }
+ ~
Unexpected token '}' in expression or statement.
At C:\Users\administrator\AppData\Local\9aae408480964e5f9fbd895931266f1e.ps1:85 char:1
+ }
+ ~
Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

Post Reply

Return to “Chocolatey For Labtech”