Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
n3rd4i
@n3rd4i
Hi, I've tried adding kb2919355 to fix the error, but with no success.:
"The request was aborted: Could not create SSL/TLS secure channel."
Package: https://chocolatey.org/packages/mental-omega/3.3.4
Paul Broadwith
@pauby
@n3rd4i The link the Verifier is trying (https://www.moddb.com/downloads/mirror/115776/115/b01122bc16305be9600384db0cc32f05) is invalid.
image.png
Looks like it's time sensitive.
n3rd4i
@n3rd4i
@pauby ideally the link can be recalculated for the "Verifier"? for that the verifier needs to use the extension used for the original download link.
Paul Broadwith
@pauby
@n3rd4i The Verifier will install your package just as an end user does.
So whatever URL is passed, in your scripts, to Install-ChocolateyZipPackage is what it uses.
n3rd4i
@n3rd4i
There is a permanent link which is used within a download-url-generator from choco extension. The actual download needs to be very close to when the link is calculated. It could be that there is a mismatch between these 2 points in time which can create this issue.
Paul Broadwith
@pauby
The time between the mental-omega package starting to install and the failure, is only 12 seconds.
n3rd4i
@n3rd4i
I suspect if we run the Verifier now, the link will still be valid, for us to check it
but past link will not
2020-05-21 14:24:55,865 1156 [INFO ] - Attempt to get headers for https://www.moddb.com/downloads/mirror/115776/115/b01122bc16305be9600384db0cc32f05 failed.
  The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://www.moddb.com/downloads/mirror/115776/115/b01122bc16305be9600384db0cc32f05'. Exception calling "GetResponse" with "0" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."
I suspect the actual cause is forbidden in this case?
Paul Broadwith
@pauby
If you have to run the Verifier twice, that says to me the process for generating the link is broken ?
n3rd4i
@n3rd4i
I can try to run this locally, but the process of generating link is the same for many packages which they passed in past many times.
Paul Broadwith
@pauby
When you say locally, do you mean in the Chocolatey Test Environment, locally?
n3rd4i
@n3rd4i
yes
Paul Broadwith
@pauby
:+1:
Paul Broadwith
@pauby
@n3rd4i I get the same error in the Chocolatey Test environment here as the Verifier gets.
n3rd4i
@n3rd4i
@pauby but then the link is still available?
Paul Broadwith
@pauby
I ran it a while ago and got distracted so I just ran it again and it failed. I'm running it a third time (right after the second) and will let you know.
Still fails.
I'm going to reboot the VM and see if it works after that.
n3rd4i
@n3rd4i
I'm also trying to run this, but my VM is still downloading...
Kim J. Nordmo
@AdmiringWorm
@n3rd4i most likely you are missing a cookie that gets returned by the downloads start page, and would need to be passed to the actual call to download the file
it may possibly also require a referer header as well
Paul Broadwith
@pauby

@n3rd4i After a reboot there is the same error. If it's always worked and doesn't work now could be they've changed something so I'd look at what @AdmiringWorm said.

If you don't need some of those KB's (you mentioned you added KB2919355 to get it through the Verifier) please also remove them.

n3rd4i
@n3rd4i
ok
Paul Broadwith
@pauby
image.png
@n3rd4i I got it to work. I destroyed the Vagrant machine, brought it back up again, installed, rebooted and installed again.
Based on that you could ask for an exemption.
n3rd4i
@n3rd4i
@pauby oh, does this mean that KB2919355 is actually needed?
ichooselife
@ichooselife
newbie here, hope I am asking the question properly, how can you find out if a package contains a native installer?
Joel Sallow (/u/ta11ow)
@vexx32
what do you mean by native installer, exactly?
ichooselife
@ichooselife
i am trying to figure how I can find the install folder after install using chocolatey, i noticed for the chocolatey package the default location is C/ProgramData. Will all packages be installed at that location?
Joel Sallow (/u/ta11ow)
@vexx32

all chocolatey packages will, yes... but that doesn't necessarily mean the thing they're wrapping will be installed to the same place. Typically installers aren't super aware of chocolatey and will do their own thing. That's not 100% avoidable in all cases, but some packages do expose package parameters to adjust the install location options for their installers.

There's also a more widely available option to set the install directory on everything choco knows how to handle properly (~95%+ of installers, give or take) but that's only available in the Pro / Business editions of Chocolatey :)

ichooselife
@ichooselife
then how come i installed a choco package & it appears in the window programs & features and is also located in program files?
Joel Sallow (/u/ta11ow)
@vexx32

the chocolatey package itself will be kept in C:\ProgramData -- if the installer it contains installs itself into whatever location it was told to by the chocolatey package, or whatever default was set. Same for its registration in Programs & Features.

As a rule, we don't go out modifying and re-packaging other vendors' binaries or installers; it's very hard to guarantee that's in any way safe for the end user. Instead, Chocolatey wraps the binary/installer in its own package that it can handle and can run any additional required actions on install/uninstall if the installation has specific requirements.

If the vendor intended it to register in Programs and Features, we're not going to pull that out, it's a core part of the Windows ecosystem. if they provide a way to change the default installation directory, then that can be exposed as part of the Chocolatey package's parameters.

Hopefully that makes sense, but lmk if it doesn't make sense to you 😊
ichooselife
@ichooselife
so if I install 5 completely different packages, some will install and register in Programs and Features & some will not?
Joel Sallow (/u/ta11ow)
@vexx32
yeah, depends what the original installer / distribution was designed to do by the vendor.
ichooselife
@ichooselife
@vexx32 More questions lol- What is the code for the command line to find a specific package that installed in C:\ProgramData? Also, can a package be installed in both locations after install (C:\ProgramData and Programs & Features)?
Joel Sallow (/u/ta11ow)
@vexx32
programs and features is more a registry / listing than a location, apps can install anywhere and still be registered for programs and features if they write their registry keys correctly
not sure exactly what you're after with your first question there though, can you clarify a little? 🙂
ichooselife
@ichooselife
for the 2nd question, i should have said Program Files instead of Programs Features if that makes sense
Joel Sallow (/u/ta11ow)
@vexx32
oh gotcha.

So... sort of? Chocolatey keeps the chocolatey package files in C:\ProgramData\Chocolatey by default, that's part of how it maintains its own package registry of what's installed, etc.

Application installers from those packages may still be installing things into program files as well yeah

ichooselife
@ichooselife
Oh OK, I got it now. Thanks for all your help with this.
Joel Sallow (/u/ta11ow)
@vexx32
no worries, happy to help! 😊
rgrwatson85
@rgrwatson85
first time poster here - wondering if anyone can get pointed in the right direction with an issue i am seeing with chocolatey and how it is using nuget. we are using Artifactory to host nuget/chocolatey feeds. an example is if i runchoco install nodejs i get a failure (HTTP 401) when it tries to start downloading the nodejs.install package. if i run nuget install nodejs everything works great. both chocolatey and nuget are using the same source and username/password. running a nuget install in the chocolatey lib directory followed by a choco install -f works since no packages are needed to be downloaded.