chocolatey Package ...
 
Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Closed] chocolatey Package problem

16 Posts
2 Users
0 Reactions
5,334 Views
(@mitiya)
Active Member Registered
Joined: 5 years ago
Posts: 9
Topic starter   [#344]

hello. I am a maintainer of desktopinfo package on chocolatey.org.
I have a "verification testing failed", because of this

2021-07-26 08:22:05,389 2580 [DEBUG] - Running Get-WebFile -url ' https://www.glenn.delahoy.com/downloads/desktopinfo/DesktopInfo3000.zip'  -fileName 'C:UsersAdministratorAppDataLocalTempchocolateydesktopinfo3.0desktopinfoInstall.zip' -options 'System.Collections.Hashtable' 
2021-07-26 08:22:05,389 2580 [DEBUG] - Setting request timeout to  30000
2021-07-26 08:22:05,389 2580 [DEBUG] - Setting read/write timeout to  2700000
2021-07-26 08:22:05,389 2580 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2021-07-26 08:22:07,982 2580 [ERROR] - ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url ' https://www.glenn.delahoy.com/downloads/desktopinfo/DesktopInfo3000.zip'.  Exception calling "GetResponse" with "0" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."

full log url

something on your host is prevent to download file with non browser client.

wget  https://www.glenn.delahoy.com/downloads/desktopinfo/DesktopInfo3000.zip 
--2021-07-26 18:21:48--   https://www.glenn.delahoy.com/downloads/desktopinfo/DesktopInfo3000.zip 
Resolving www.glenn.delahoy.com (www.glenn.delahoy.com)... 103.42.110.31
Connecting to www.glenn.delahoy.com (www.glenn.delahoy.com)|103.42.110.31|:443... connected.
HTTP request sent, awaiting response... 418 reauthentication required
2021-07-26 18:21:50 ERROR 418: reauthentication required.

can you do something about it?



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

I'll chase it up.



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

from the host:

From the looks of the error you're receiving, its in relation to the outdated browser you're using.

- https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418

"Out-dated browser accessing wp-login.php. Please update your browser."

Whatever service you're using to try and wget this is out of date.

You will need to update your browser agent to a new version



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

Have you enabled SSL on wget?



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

From the host:

If only wget is being employed then it's possible that it isn't connecting to our server over an up-to-date version of encryption, as all our web hosting servers are PCI Compliant and require connections over TLS v1.2 encryption or better.

They could try ensuring that TLS v1.2 is enforced on the wget command - If issues persist, could you please confirm the IP Address that the connection would be reaching us from for this wget connection to retrieve the .zip file? This will ensure we're checking over our logs with relation to the correct connection.

When was the last time they tried to run the command?



   
(@mitiya)
Active Member Registered
Joined: 5 years ago
Posts: 9
Topic starter  

wget is just the example.

chocolatey use powershell to download.
Problem is this error takes place on chocolatey.org side.
On my machine no error.

1. I upload package to chocolatey.org
2. Automatic tests on on chocolatey.org side.
3. Error



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

well then whatever you're using the retrieve the file:

1. Have you enabled TLS v1.2 ?

2. Try setting the user agent to impersonate an up to date browser.



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

I was messing with the Indy HTTP library today in Desktop Info and having great difficulties getting a connection to glenn.delahoy.com. I notice that "Force HTTPS Redirect" is on.

I eventually set up a TLS connection but that wasn't good enough. I had to set the user agent string:

client.Request.UserAgent := 'Mozilla/4.0';

and that got my connection working.



   
(@mitiya)
Active Member Registered
Joined: 5 years ago
Posts: 9
Topic starter  

Step by step.
1. I create package.
2. I tested it on my PC. It worked fine. Download etc.
3. I upload package on chocolatey.org
4. Automated testing perform with error. I can't change anything on choco side.

choco not use wget. I used wget just to illustrate problem.

The best way could be to use github to host releases? )



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

2. why does it work on your pc?



   
(@mitiya)
Active Member Registered
Joined: 5 years ago
Posts: 9
Topic starter  

I say more, it's worked on any PC I tried.
But until it past verification on chocolatey.org, it can't be published.

May be chocolatey.org ips in some kind of blacklist on your web host?



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

From the host:

This might be caused by us recently making TLS 1.2 or higher necessary to connect, so we stay within regulations.

I suggest making sure that the service making the connection is capable of using TLS 1.2 as this is not something we can disable.



   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2067
 

Let me know the IP of the machine making the request so we can search the logs and see what's going on.



   
(@mitiya)
Active Member Registered
Joined: 5 years ago
Posts: 9
Topic starter  

I have no idea about their ip



   
(@mitiya)
Active Member Registered
Joined: 5 years ago
Posts: 9
Topic starter  

I made an experiment.
I used https://www.glenn.delahoy.com/desktopcalendar, because
https://www.glenn.delahoy.com/downloads/calendar/readme.txt
and
https://www.glenn.delahoy.com/downloads/calendar/Calendar140.zip
in the same folder.

And that I got:

wget  https://www.glenn.delahoy.com/downloads/calendar/readme.txt 
--2021-07-31 11:17:21--   https://www.glenn.delahoy.com/downloads/calendar/readme.txt 
Resolving www.glenn.delahoy.com (www.glenn.delahoy.com)... 103.42.110.31
Connecting to www.glenn.delahoy.com (www.glenn.delahoy.com)|103.42.110.31|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14692 (14K) [text/plain]
Saving to: 'readme.txt'

readme.txt                   100%[==============================================>]  14,35K  50,6KB/s    in 0,3s

2021-07-31 11:17:22 (50,6 KB/s) - 'readme.txt' saved [14692/14692]
wget  https://www.glenn.delahoy.com/downloads/calendar/Calendar140.zip 
--2021-07-31 11:17:51--   https://www.glenn.delahoy.com/downloads/calendar/Calendar140.zip 
Resolving www.glenn.delahoy.com (www.glenn.delahoy.com)... 103.42.110.31
Connecting to www.glenn.delahoy.com (www.glenn.delahoy.com)|103.42.110.31|:443... connected.
HTTP request sent, awaiting response... 418 reauthentication required
2021-07-31 11:17:52 ERROR 418: reauthentication required.

txt downloading ok
zip downloading bad



   
Page 1 / 2
Glenn's Page