## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### Activity
Kevin Weinrich
@kwein1

Now I'm working on my 2nd custom package. This one fails, which is probably due to something I'm not doing right in constructing the package. But when I look for details on precisely WHAT went wrong with the installation, I just get "See the log for details...". The log just says

2021-01-15 15:04:12,065 1316 [ERROR] - ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The operation completed successfully.
2021-01-15 15:04:12,065 1316 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\bigfix\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2021-01-15 15:04:12,065 1316 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2021-01-15 15:04:12,174 1316 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'

I just don't see what it didn't like. Is there any way to get further debugging info about why it blows up? Or how can I manually walk through the package installation?

Note: In my chocolateyinstall.ps1, I do a "reg import ..." command which IS working. So I'm pretty sure it's the "Install-ChocolateyInstallPackage ..." command that's failing.

Kevin Weinrich
@kwein1
It appears that if I manually do:
setup.exe /s /v/qn
from the chocolatey package folder on the target server, it works. But
cinst bigfix -s ordchoco
still doesn't. How can I see what command line choco is actually using to try to run the setup.exe? (As I understand, it's using my chocolateyinstall.ps1 to call Install-ChocolateyInstallPackage, and the magic happens inside there)
Sathish
@satheeshsoft
Previously created chocolatey package working fine. The same code i used in new package but some changes in install file name and descriptions. The new package created with cpack command but not installing it, install failed. https://github.com/satheeshsoft/Soft-Cleaner-CY can you say what is missing here?
@pauby
@kwein1 Do you get any more info when adding -vd to the choco command line?
5 replies
@satheeshsoft Have you looked at the gist? The error is on this line.
VoomDev
@VoomDev
Is it possible to install choco on mac?
daebenji
@daebenji
would you please stop spamming!
VoomDev
@VoomDev
ok sorry
but is it possible to run choco on mac
daebenji
@daebenji
why would you need to to use choco on mac? they have homebrew and choco is trying to automate the installation of windows packages...
@pauby
@VoomDev Chocolatey is the package manager for Windows. There is Homebrew on Mac.
(I removed the 'spam' comments)
@pauby
@satheeshsoft The specific error is at these lines - it can't find the file.
Sathish
@satheeshsoft
@pauby got it, the directory name should be same name!
@pauby
@satheeshsoft :+1:
Sathish
@satheeshsoft
again some doubts
the app directory should be inside chocolatey directory?
sorry i forgot can you explain how to overcome the error
@pauby
@satheeshsoft Have you downloaded the Chocolatey Test Environment?
Sathish
@satheeshsoft
no
@pauby
@satheeshsoft Then that would be my suggestion to allow you to troubleshoot the issue.
Sathish
@satheeshsoft
i created now but cinst not working message showing 3 attempts reached
created i think it may works fine, here checking max attempts reached
@pauby
@satheeshsoft Are you testing this in the Chocolatey Test Environment?
Sathish
@satheeshsoft
its difficult to understand, now created the pack
test environment difficult to understand & time taking
if the test environment automated its fair (like very few user inputs & also it works for the user demand without asking to user)
just saying a suggession
@pauby thanking to you
Sathish
@satheeshsoft
i used the same method in my software
Anonymous Planet
@AnonymousPlanet
Hi @pauby :) Concerning Issue chocolatey/chocolatey.org#687 about Tor Exit nodes. I just tested from about 10 various exit nodes. It's still 403 forbidden on the API no matter what.
2 replies
Anonymous Planet
@AnonymousPlanet
Also tested after resolving hCaptchas on Browser (using same exit nodes) and still forbidden unfortunately.
(hCaptchas are not required on the chocolatey.org website from a Tor Browser but are required when accessing the API). So there is no issue accessing the website in itself from Tor. Just the API URL.
Martin Bergman
@misse
Hello! I work at Electronic arts, managing an internal service that caches chocolatey (among other things) and starting today we're getting HTTP response 403 when trying to reach chocolatey. I've created a support ticket for this, but a colleague suggested I'd reach out here. Anyone up for a chat about why this happened and what we can do to get unblocked?
@pauby
Hi Martin, Gitter chat is for community support. For issues around IP blocking you did the right thing in raising a ticket which was responded to this morning.
@misse ^^
Martin Bergman
@misse
Thanks @pauby ! Has my response to the response been registered? :)
@pauby
@misse Not as yet. The last update was the response from me this morning.
Martin Bergman
@misse
Something is amiss then, I did respond to that email at 11:16 GMT but haven't seen anymore replies, I'll DM you
Miodrag Milić
@majkinetor
When testing package install using *.nupkg file directly (i.e. cinst install xyz-123.nupkg) what needs to be specified to take any dependencies from the gallery ?
ichooselife
@ichooselife
hi new to chocolatey. hope all is well. I have a question..I recently install a software called kate (program editor app). I did not like it so i uninstalled using the choco command "choco uninstall kate". However, it did uninstall it from programs & features but I still notice some files under appdata\local & C:\programdata\chocolatey. What is the safest way to remove these kate files from my system? Also, when i right click on a file, i still notice the phrase "Edit with kate"? If i unistall the software shouldnt this be removed? Anyway how to i remove this from the system?

Hello Everyone, I'm new to chocolatey. Chocolatey is not using skip tokens for FindPackagesById if we have many versions. The issue is with only the virtual repository. It's working as expected for the Remote repository.

Scenario 1: Package(git) has 70+ versions, repository type is remote.
choco install git -y
fiddler logs:
/api/nuget/choco
/api/nuget/choco/$metadata /api/nuget/choco/Packages()?$filter=(tolower(Id)%20eq%20'git')%20and%20IsLatestVersion
/api/nuget/choco/FindPackagesById()?id='git.install'

Scenario 2: Package(git) has 70+ versions, repository type is virtual.
choco install git -y
fiddler logs:
/api/nuget/chocolatey
/api/nuget/chocolatey/Packages(Id='git',Version='2.30.0.2')
/api/nuget/chocolatey/$metadata /api/nuget/chocolatey/FindPackagesById()?id='git.install' /api/nuget/chocolatey/FindPackagesById?id='git.install'&$skiptoken='git.install','2.15.0'
/api/nuget/chocolatey/FindPackagesById?id='git.install'&\$skiptoken='git.install','2.5.2'

AnshMishra2001
@AnshMishra2001
Hello everyone. I am new to open source. Can anybody help me with this issue.fossasia/pslab-desktop#653
14 replies
This is the commit I made fossasia/pslab-desktop#659
But not sure what went wrong.
JervisLam
@jervislam0911
Hi everyone, we have packaged our application using chocolatey and it has been working fine for us. but recently we're seeing message like "ShimGen has successfully created a shim for jaccessinspector.exe".. and then it failed with the non-zone return code... but looks like the packages already installed. just wondering if anyone had such issue before?