-
Notifications
You must be signed in to change notification settings - Fork 384
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
(build) Appveyor reports that SSL/TLS secure channel couldn't be created #718
Comments
@AdmiringWorm do we know what version of Chocolatey is running on AppVeyor? |
In which case, I think that is the issue. Newer versions of Chocolatey now better handles the SSL/TLS handshake. |
I think what we need is a |
Shipped in 0.10.1. |
I don't think it's related to choco, it happens when we try to get the upstream version (usually), so it's pure powershell |
Of course, we could just try upgrading choco on appveyor first and see if it helps. |
If I understand that issue correctly, then what you are describing is the same problem. i.e. the upstream web server is using a newer version of TLS, which Chocolatey/PowerShell doesn't understand. The newer version of Chocolatey 0.10.1, jumps through some hoops to make it work. That is my rudimentary understanding though. @ferventcoder would obviously know more. |
I guess I'm bad at explaining then, so lets try again. The problem isn't with chocolatey, as its functions isn't used unless the update script uses automatic checksums (which Ghostscript.app doesn't (see the first link)). |
I've updated the appveyor.yml file to see if it helps updating chocolatey, if it doesn't fail for a few runs I'm satisfied it fixes the issue and this issue can be closed. |
Nah, updating chocolatey wont help as it obviously isn't related to it. This looks suspiciously similar to what happens here: |
There is nothing specific in error logs so I added everything to export #718
Detailed eventlogs I added showed this under
According to table I found here this is:
I guess this represents random network error that is unfixable per se. Option may be Ignoring on all packages such error, maybe repeating I will leave eventlogs for now to see if this is the only error reported for packages that fail. |
I've been thinking about this, doing it per package would be to much work I believe. But having an a way to tell AU to ignore package with such an error would be nice (perhaps allowing AU to accept a regex option for failure messages to ignore?) |
I will try to find a time to add error settings (majkinetor/au#76). Feedback on how it would look like would be welcome. |
I do wonder why it happens so often tho. Perhaps its something related to too-many background jobs. |
that would be my guess, or it could be some kind of memory allocation failure (like it was mentioned in the blog post you've linked to previously) |
I think this will happen rarely now and certainly not cause any errors because it is also in the ignore list. Here is the one sample output:
Notice that build time will now be at least 5 minutes when this happens because of this 250s sleep that I intentionally set this way in order for all other packages to finish. We could experiment with this value and repeat count, its probably that just repeating is enough without any sleep and with this seetings we will not exceed 10 minutes per run with repeats in foreseeable future. |
I've noticed on most appveyor build runs that 1 or more packages fail to check for update with the following error message:
The request was aborted: Could not create SSL/TLS secure channel.
A few times it fails with a different error message which may or may not be related:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
The packages that fail are rarely the same one, so although it won't matter in the long run it's quite annoying.
A few reports that mentions this error:
https://gist.github.com/gep13/bd2eaa76f2a9ab739ca0544c502dca6e/af0268e9e5f3047ae1a0add0bb140bacd6e12fb9#errors
https://gist.github.com/gep13/bd2eaa76f2a9ab739ca0544c502dca6e/3bcc07e3f8efbd0619210b30e5a400ef44cd8d69#errors
https://gist.github.com/gep13/bd2eaa76f2a9ab739ca0544c502dca6e/479233b8fe410d64adba09db9e33b2dd5de554d1#errors
The text was updated successfully, but these errors were encountered: