Skip to content
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

wget cmd silently finishes without any files downloaded #13

Open
hernanmd opened this issue Feb 28, 2018 · 6 comments
Open

wget cmd silently finishes without any files downloaded #13

hernanmd opened this issue Feb 28, 2018 · 6 comments

Comments

@hernanmd
Copy link
Member

Using MSYS in Windows 10 the command

wget -O- https://get.pharo.org | bash

or

wget -O- --no-check-certificate https://get.pharo.org | bash

Does not download any file. The output is:

$ wget -O- --no-check-certificate https://get.pharo.org | bash
--2018-02-28 21:28:14--  https://get.pharo.org/
Resolving get.pharo.org... 164.132.235.17
Connecting to get.pharo.org|164.132.235.17|:443... connected.
WARNING: cannot verify get.pharo.org's certificate, issued by `/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA':
  Self-signed certificate encountered.
WARNING: certificate common name `cluster023.hosting.ovh.net' doesn't match requested host name `get.pharo.org'.
HTTP request sent, awaiting response... 200 OK
Length: 15652 (15K) [text/html]
Saving to: `STDOUT'

100%[===========================================================================================================>] 15,652      59.2K/s   in 0.3s

2018-02-28 21:28:16 (59.2 KB/s) - written to stdout [15652/15652]


Command was tested with no antivirus installed and firewall disabled.

$ wget --version
GNU Wget 1.12 built on msys.

$ echo $0
bash

@MarcusDenker
Copy link
Member

yes, this is a problem... but --no-check-certificate kind of defeats the whole reason of ssl.

I will check if we can change the setup at the provider.

@demarey
Copy link
Contributor

demarey commented Mar 5, 2018

On OS X, it works as expected:

wget -O- --no-check-certificate https://get.pharo.org | bash
--2018-03-05 09:43:49--  https://get.pharo.org/
Resolving get.pharo.org... 164.132.235.17, 2001:41d0:301::23
Connecting to get.pharo.org|164.132.235.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15652 (15K) [text/html]
Saving to: 'STDOUT'

-                                       100%[===============================================================================>]  15.29K  --.-KB/s    in 0.009s  

2018-03-05 09:43:49 (1.61 MB/s) - written to stdout [15652/15652]

Downloading the latest 61 Image:
    http://files.pharo.org/get-files/61/pharo.zip
Pharo.image
Downloading the latest pharoVM:
	http://files.pharo.org/get-files/61/pharo-mac-stable.zip
pharo-vm/Pharo.app/Contents/MacOS/Pharo
Downloading PharoV61.sources:
	http://files.pharo.org/get-files/61/sources.zip
Creating starter scripts pharo and pharo-ui

And with certificate check:

wget -O- https://get.pharo.org | bash
--2018-03-05 09:43:23--  https://get.pharo.org/
Resolving get.pharo.org... 164.132.235.17, 2001:41d0:301::23
Connecting to get.pharo.org|164.132.235.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15652 (15K) [text/html]
Saving to: 'STDOUT'

-                                       100%[===============================================================================>]  15.29K  --.-KB/s    in 0.009s  

2018-03-05 09:43:23 (1.60 MB/s) - written to stdout [15652/15652]

Downloading the latest 61 Image:
    http://files.pharo.org/get-files/61/pharo.zip
Pharo.image
Downloading the latest pharoVM:
	http://files.pharo.org/get-files/61/pharo-mac-stable.zip
pharo-vm/Pharo.app/Contents/MacOS/Pharo
Downloading PharoV61.sources:
	http://files.pharo.org/get-files/61/sources.zip
Creating starter scripts pharo and pharo-ui

@MarcusDenker
Copy link
Member

For me not:

MACBOOKAIR-9AC0:Desktop denker$ wget -O- https://get.pharo.org | bash
--2018-03-05 10:01:14-- https://get.pharo.org/
Resolving get.pharo.org... 164.132.235.17
Connecting to get.pharo.org|164.132.235.17|:443... connected.
ERROR: no certificate subject alternative name matches
requested host name get.pharo.org'. To connect to get.pharo.org insecurely, use --no-check-certificate'.

@PharoProject
Copy link
Member

PharoProject commented Mar 5, 2018 via email

@hernanmd
Copy link
Member Author

hernanmd commented Mar 5, 2018

It would help if there is a way to disable the --quiet parameter in line 18 of view-source:http://get.pharo.org/:

DOWNLOAD_TO="wget --quiet --output-document=";

@hernanmd
Copy link
Member Author

I can also reproduce it in a Windows 8.1

$ wget -O- https://get.pharo.org/ | bash
--2018-07-19 20:58:27--  https://get.pharo.org/
Resolving get.pharo.org... 164.132.235.17
Connecting to get.pharo.org|164.132.235.17|:443... connected.
ERROR: cannot verify get.pharo.orgâ?Ts certificate, issued by â?o/C=GB/ST=Greate
r Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secur
e Server CAâ??:
  Self-signed certificate encountered.
ERROR: certificate common name â?ocluster023.hosting.ovh.netâ?? doesnâ?Tt match
requested host name â?oget.pharo.orgâ??.
To connect to get.pharo.org insecurely, use â?~--no-check-certificateâ?T.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants