mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.94k stars 359 forks source link

wget: Micromamba Download link is corrupted #2998

Open rgasper opened 12 months ago

rgasper commented 12 months ago

Troubleshooting docs

How did you install Mamba?

Micromamba

Search tried in issue tracker

1675

Latest version of Mamba

Tried in Conda?

Not applicable

Describe your issue

Attempting to install micromamba via download link fails.

wget -qO- http://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba

(same bug happens with https url) output:

bzip2: Compressed file ends unexpectedly;
 perhaps it is corrupted?  *Possible* reason follows.
 bzip2: Inappropriate ioctl for device
    Input file = (stdin), output file = (stdout)

 It is possible that the compressed file(s) have become corrupted.
 You can use the -tvv option to test integrity of such files.

 You can use the `bzip2recover' program to attempt to recover
 data from undamaged sections of corrupted files.

 tar: Child returned status 2
 tar: Error is not recoverable: exiting now

however...

"${SHELL}" <(curl -L micro.mamba.pm/install.sh)

does work!

mamba info / micromamba info

No response

Logs

No response

environment.yml

No response

~/.condarc

No response

jonashaag commented 12 months ago

Works for me

$ wget -qO- http://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
x bin/micromamba
$ ls bin/
micromamba*
rgasper commented 12 months ago

weird! It definitely doesn't for me. Installing on a debian-11.4-slim docker image

wolfv commented 12 months ago

I also just tried with your exact command line and it worked for me.

jonashaag commented 12 months ago

Try running wget individually. What does file latest (or whatever the download file name is) report?

rgasper commented 12 months ago

replicable in a debian container on my machine. curl the url has the same error

>  docker run -it debian:11.4
root@c6671ddde46a:/# apt-get install --fix-missing -y --no-install-recommends bzip2 wget
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package bzip2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'bzip2' has no installation candidate
E: Unable to locate package wget
root@c6671ddde46a:/# apt-get --allow-releaseinfo-change-suite update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8062 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [258 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [17.7 kB]
Fetched 8546 kB in 2s (4601 kB/s)                     
Reading package lists... Done
root@c6671ddde46a:/# apt-get install --fix-missing -y --no-install-recommends bzip2 wget
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libpsl5
Suggested packages:
  bzip2-doc
Recommended packages:
  publicsuffix ca-certificates
The following NEW packages will be installed:
  bzip2 libpsl5 wget
0 upgraded, 3 newly installed, 0 to remove and 22 not upgraded.
Need to get 1071 kB of archives.
After this operation, 3782 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 bzip2 amd64 1.0.8-4 [49.3 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libpsl5 amd64 0.21.0-1.2 [57.3 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 wget amd64 1.21-1+deb11u1 [964 kB]
Fetched 1071 kB in 0s (5113 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package bzip2.
(Reading database ... 6661 files and directories currently installed.)
Preparing to unpack .../bzip2_1.0.8-4_amd64.deb ...
Unpacking bzip2 (1.0.8-4) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../libpsl5_0.21.0-1.2_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1.2) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.21-1+deb11u1_amd64.deb ...
Unpacking wget (1.21-1+deb11u1) ...
Setting up libpsl5:amd64 (0.21.0-1.2) ...
Setting up wget (1.21-1+deb11u1) ...
Setting up bzip2 (1.0.8-4) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...

> root@c6671ddde46a:/# wget -qO- http://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba

bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
    Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error is not recoverable: exiting now
rgasper commented 12 months ago

Try running wget individually. What does file latest (or whatever the download file name is) report?

It's a binary file, curl ${micromamba_url} > somewhere; cat somewhere dumps a big pile of binary on the terminal quickly followed by terminal crash

jonashaag commented 12 months ago

What does file say?

Can you untar it manually?

bfabiandev commented 12 months ago

I also managed to reproduce the above. If you turn off -q i.e. quiet mode it shows a certificate error.

root@b95f2df591dd:/# wget http://micromamba.snakepit.net/api/micromamba/linux-64/latest
--2023-11-22 13:15:37--  http://micromamba.snakepit.net/api/micromamba/linux-64/latest
Resolving micromamba.snakepit.net (micromamba.snakepit.net)... 141.95.105.229, 152.228.167.221
Connecting to micromamba.snakepit.net (micromamba.snakepit.net)|141.95.105.229|:80... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: //api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2 [following]
--2023-11-22 13:15:37--  http://api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2
Resolving api.anaconda.org (api.anaconda.org)... 104.17.16.67, 104.17.15.67, 2606:4700::6811:f43, ...
Connecting to api.anaconda.org (api.anaconda.org)|104.17.16.67|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2 [following]
--2023-11-22 13:15:37--  https://api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2
Connecting to api.anaconda.org (api.anaconda.org)|104.17.16.67|:443... connected.
ERROR: The certificate of 'api.anaconda.org' is not trusted.
ERROR: The certificate of 'api.anaconda.org' doesn't have a known issuer.

Then if you install ca-certificates you get a different error.

root@b95f2df591dd:/# apt-get install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  openssl
The following NEW packages will be installed:
  ca-certificates openssl
0 upgraded, 2 newly installed, 0 to remove and 22 not upgraded.
Need to get 1017 kB of archives.
After this operation, 1897 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main amd64 openssl amd64 1.1.1w-0+deb11u1 [859 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 ca-certificates all 20210119 [158 kB]
Fetched 1017 kB in 0s (24.2 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package openssl.
(Reading database ... 6788 files and directories currently installed.)
Preparing to unpack .../openssl_1.1.1w-0+deb11u1_amd64.deb ...
Unpacking openssl (1.1.1w-0+deb11u1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20210119_all.deb ...
Unpacking ca-certificates (20210119) ...
Setting up openssl (1.1.1w-0+deb11u1) ...
Setting up ca-certificates (20210119) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
root@b95f2df591dd:/# wget http://micromamba.snakepit.net/api/micromamba/linux-64/latest
--2023-11-22 13:22:16--  http://micromamba.snakepit.net/api/micromamba/linux-64/latest
Resolving micromamba.snakepit.net (micromamba.snakepit.net)... 141.95.105.229, 152.228.167.221
Connecting to micromamba.snakepit.net (micromamba.snakepit.net)|141.95.105.229|:80... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: //api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2 [following]
--2023-11-22 13:22:16--  http://api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2
Resolving api.anaconda.org (api.anaconda.org)... 104.17.15.67, 104.17.16.67, 2606:4700::6811:f43, ...
Connecting to api.anaconda.org (api.anaconda.org)|104.17.15.67|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2 [following]
--2023-11-22 13:22:16--  https://api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2
Connecting to api.anaconda.org (api.anaconda.org)|104.17.15.67|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27linux-64%252Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFPC6CMZFP%2F20231122%2Fus-east-1%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bxjp0rRMJdTy7OE6e0TpNqv7Tibd8uTjx2QMFmmqbv%2FpvhCgVmUY9CfmZjY4j%2BQICu0kw2YD4qgY6mQFaSMTiOSZWsyQH3Y9%2BsZotj1Mw1RoPrzW3KxlK1GjAjxLaHQ5D0t9pg3sDgxA9sTOzranbh%2BmGUOB3E1vDc8znv1UOeJMmX89Md%2FyZ0Jvw0RxZea0u425ozddc7xX37RQuRvgt9uIr4R9Jnzg41RaJDV03PQPj5ZVisD8tJHhKVSAOs%2BvNT1dC93MErxJ%2BEeJp%2F5%2Bga4CNcdw%3D&X-Amz-Signature=c8fabe45c3f30031ee2e02dd7ad871ebf072bb520cbbc4599a79b5a9507e8bd0 [following]
--2023-11-22 13:22:17--  https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename*%3DUTF-8''linux-64%2Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFPC6CMZFP%2F20231122%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231122T132217Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjENb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQCKjEgfmK52WYVXt9ri7c6xNotISBLoxmpTui3QGCVYHAIhAJf4jSqbr4E4CrFLw7PE46a7SiDUKoHEdapMA27J%2F71eKv4ECC4QABoMNDU1ODY0MDk4Mzc4IgwTXnydLuOEJb2ege4q2wQlJ3FyoJsQBtqLJ1MEvTR0taoQU8t84YC3sHiI1xqmRe9F4ukYfyPYFXWRvpbHNK%2BevVyzLk8UIDJxYRukWq6VVpBlCTPiQ7%2BA92lPOZ89DqZeQXTcnRyeGL%2F25982ZdIZDU3uxE5YZacAoVlf7IMvt44I13pBtz0bPxKDG3BP7dEhN2Bg31imhKell419tg1h9xFV3SkvmLHu6rs9kE6WqcSW8SZ%2Bq%2B9yMxerxleRD%2FhKuRhB4UrR3co1IqRHFrOSsgQyC6TiAr6ba815vwvLjMPZnTpcgTOs4qmPNVCf7bZgORJYyARyA28eOZrAfmgBzFwZoEZj%2BkXSuN6GZTJKrEROtMMvYF%2FSvHUjULbbra6O3QaPUvoPU5F6kU4dgn7sNec9SC%2FRko8%2FBsK0quX5%2F0Mcf%2Fp6xXeRvd7%2BrNlnFA%2BrLwtWgka9TKOHWWzrqdGnysqltpDkZMukTZMX57T%2FaWu9%2FmgCT5EANJnD%2FOY8jixzIILvA5AZEbfHq%2BxbwY9nNEzh%2BMDcTBon8Uqb%2FVCwML08ORh32MFPXug%2F17UMuOz6Bl8hhEneurBYJpEPxhaA3AkUmtuIqxxncTFB2V7QVmPkk8NwKTokNeLm7%2F1uMebJ1s0j%2B%2BhxO8hHJLwBM90Fv0TLQgYDn3zzjmrmYGuaxupRJHkcLVyN4c2SLk%2F%2B54EVk2FMeLM4ARK1m8TL05xD1HVaELPEIiF4KtcuO8Q5dipjoMV2XK9bxjp0rRMJdTy7OE6e0TpNqv7Tibd8uTjx2QMFmmqbv%2FpvhCgVmUY9CfmZjY4j%2BQICu0kw2YD4qgY6mQFaSMTiOSZWsyQH3Y9%2BsZotj1Mw1RoPrzW3KxlK1GjAjxLaHQ5D0t9pg3sDgxA9sTOzranbh%2BmGUOB3E1vDc8znv1UOeJMmX89Md%2FyZ0Jvw0RxZea0u425ozddc7xX37RQuRvgt9uIr4R9Jnzg41RaJDV03PQPj5ZVisD8tJHhKVSAOs%2BvNT1dC93MErxJ%2BEeJp%2F5%2Bga4CNcdw%3D&X-Amz-Signature=c8fabe45c3f30031ee2e02dd7ad871ebf072bb520cbbc4599a79b5a9507e8bd0
Resolving binstar-cio-packages-prod.s3.amazonaws.com (binstar-cio-packages-prod.s3.amazonaws.com)... 54.231.168.1, 52.217.95.17, 54.231.193.177, ...
Connecting to binstar-cio-packages-prod.s3.amazonaws.com (binstar-cio-packages-prod.s3.amazonaws.com)|54.231.168.1|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2023-11-22 13:22:17 ERROR 403: Forbidden.

Hope this helps fix this issue

lukasjelonek commented 11 months ago

I observe the same error with alpine:3.12 and wget.

> wget -O- https://micromamba.snakepit.net/api/micromamba/linux-64/latest
--2023-11-28 07:09:25--  https://micromamba.snakepit.net/api/micromamba/linux-64/latest
Resolving micromamba.snakepit.net (micromamba.snakepit.net)... 141.95.105.229, 152.228.167.221
Connecting to micromamba.snakepit.net (micromamba.snakepit.net)|141.95.105.229|:443... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: //api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2 [following]
--2023-11-28 07:09:26--  https://api.anaconda.org/download/conda-forge/micromamba/1.5.3/linux-64/micromamba-1.5.3-0.tar.bz2
Resolving api.anaconda.org (api.anaconda.org)... 104.17.15.67, 104.17.16.67
Connecting to api.anaconda.org (api.anaconda.org)|104.17.15.67|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27linux-64%252Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFBSCP4INU%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231128T070928Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF8aCXVzLWVhc3QtMSJHMEUCIHftx2hojzB5O43j42JRQLUVLk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Z7QqXYttCgcvha4Mwb8JHqrFjzSPS61R9zexnIVdS4dh5ctvs9ohDR24Tj%2Fb4i%2Bi%2Fw8llk7yGHmPTrTQqDUrDNy6xlY4QQ0noWCf3CNnY7MHL8z7pV3%2B7sxQNtneAwwIRqghl2yZstCdlOKaptlo0WhW7r0EGNd8%3D&X-Amz-Signature=3b704944f029d151904f57f5a3be914cfcd8296536ee3a669723f1ed15d47c8d [following]      
--2023-11-28 07:09:27--  https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename*%3DUTF-8''linux-64%2Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFBSCP4INU%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231128T070928Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF8aCXVzLWVhc3QtMSJHMEUCIHftx2hojzB5O43j42JRQLUVLk561uPRq%2F4OugRoP4vrAiEAhLg1HhItcZPjd9OOhTE7Ag1lpHARUaDQcELIp0UFr8gqhwUIuP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw0NTU4NjQwOTgzNzgiDP3I2aBo2Vwx5dqDAyrbBF1lBje58XjJG%2BFiijq5TRyThmlrVfpBpdi5ToIBQKr0jaTlz%2BiO%2FRYE4nc5EXoQOXhex1e%2F6%2B%2B8zl9K9QQcHDoUacxmPg8AFCtuLB7Rnvfw%2FDCz2f4JGVX8VfMkTX2PgesRCbMQMV0y%2Fu%2BTDca4WSQ%2BhyWvktdOD%2BP12kF6DsL%2BxZDcth%2B9w8jqX9tkVicdUV%2F%2F7DjsD22RzCJMIsllKdg%2BAEWKMcL%2Bi3M2QnUqK6MROBeeZC8xR2MVUK8jToGphVmaU1EhSX7864rEWUvcZNwwiBrHCgTuUjq4HreQpdzZYulE7E6HAXyQ93SduuDwK0%2BX0oXSzR8z9Q76NVPhM38SJoIsTZu4O34jEHt3lCAKnZU5NZjwXpEI0HTnl54Rz1XxGg7Iw6RB5V%2FbsvWwI%2BDYWQvw6yhcCojlWy7botxrc6%2FDD3EPf%2FSNx60YLnLLp5pJ8jgG66AEYvjWEVvH6arKYRfC%2BPWfHNoIYsdXhg6Wwe6ksFxu05Hkymx9pmT%2Fkg4VfFlC7y506Sl08HLh8NaRuLRf9qZGeywP8anHwbk0Qy1IF5MJXBQ1fm7dllHl%2B%2BMq74hvirlPxiGK3vVULbVTYrhakFMN0YjDB3yo0taAQijeOesthWk5Xe910o4aAt5YCW4U8CndTsXPH4grysbj5fx%2FR5w1pHKSB%2BqefcuCDDx3o9Wu5KVYaNu8lba%2F9yvchAQmKTbWe0M%2F71a6Lj4c9wsOnaqhLP1EOAz0%2FoBeHjsFv0G7hkXDG1IR%2FwGGQOtHX6%2FhKXKimYFSaLXhHM%2BBLnlETTVUgcFYszCkmZarBjqaAbO9AveV4gPjOV64w9ACopSkchAQ57f0QFiiYtQYYEResvYZ7QqXYttCgcvha4Mwb8JHqrFjzSPS61R9zexnIVdS4dh5ctvs9ohDR24Tj%2Fb4i%2Bi%2Fw8llk7yGHmPTrTQqDUrDNy6xlY4QQ0noWCf3CNnY7MHL8z7pV3%2B7sxQNtneAwwIRqghl2yZstCdlOKaptlo0WhW7r0EGNd8%3D&X-Amz-Signature=3b704944f029d151904f57f5a3be914cfcd8296536ee3a669723f1ed15d47c8d
Resolving binstar-cio-packages-prod.s3.amazonaws.com (binstar-cio-packages-prod.s3.amazonaws.com)... 16.182.32.129, 52.216.216.65, 52.216.53.233, ...
Connecting to binstar-cio-packages-prod.s3.amazonaws.com (binstar-cio-packages-prod.s3.amazonaws.com)|16.182.32.129|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2023-11-28 07:09:29 ERROR 403: Forbidden.

I assume that the cloud provider generates incorrect presigned s3-links in for alpine wget.

lukasjelonek commented 11 months ago

Correction:

wget reports some uri conversion when running in debug mode:

URI content encoding = None
converted 'https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27linux-64%252Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFCTLR4Z42%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231128T072926Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEF8aCXVzLWVhc3QtMSJGMEQCIBXDddLxBIbimaxORARZGyC9jlOSMCZdWv4OZR9zcz33AiAaiZUVhNEASl5lui0pMy6mZzV5xC94SakK22u2Yts0XCqHBQi4%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDQ1NTg2NDA5ODM3OCIM1R8SFKkJxINUxd%2BoKtsEJexW%2Bndqkni5xKkpuABu8JN4IFRSFjVlYiyuDFdB2SJlf2Mc4C7kqRi0orQblELulBOQ4E5oe4yBHzQH1nAuq9pgt6k2try9fgpz%2FZhnHVjcA321BH88qK%2B8%2FWvu3RpXhOk1Vcd9IJGzAn9iRfaRHqTQ%2F8Avvq3Q9zuTEz0d%2F6YvSq%2FE76tvvQVIn0j%2Bfzebfri%2FeMDZeX7nw83i8UQfG7LyTEUhjrA%2BB7kRuW76m6CQKbtNdQHRecXJqPdnWIie6zF7RZcFIratnH2AmgamEjTlL6lbp%2FhVa84rDjybBO%2FbQZCPlAtfJD11zE56n1vTcaarEBm3Zj8%2BDabFpEXHQiEQz2lIeLthALC5csPNmN2xQAM3YFBlKbFkXaMdDKR87nmwsjCpSC9Zk3XtYgaywyMqZdIAk4MafCklN3E1prE0c14F0pkYrUZ9xK0VHtvCxG8Hk9xYrldia525oapJiMPYQ04BGfEM5nxVtxNQsbVgM1Zl53h0An7CUrPPnNTLbPdyalMFdKt1C%2FevqCBwG7heLHRsxczrkcPBtNVngwmAUGEBGrVCrZoBhq3VNIa6C5cEtCixq2LJec4Xm%2BIyGm0nuCqiFPH0Twqif6e3X5mzcS9d5aVcx4SlJ2ABjBQjpqFAVZ8W0i%2FuqvfZjmXCkEMBXdb5zdgieid0NFaymn%2F0QLLYX7Z%2BOL7Jn7K062GeRna2meM9U4ZTi17ox8seJvgK2J1xPD1fgxWxQmULiAz9Q1pGE2gKu5av69eI8DGITUb7k8l%2F54pRvv0J08BAVmjwg86RqPDpt8ZfMKmblqsGOpsB2y58UL95Z9zFx%2FNQSdkFMkLE9sBe2%2F6%2FD%2Bqm1RUcpsLm7Go2uZ2zIDG1rrKldGGLa%2FunTIW9a2IbV5ccVMzj0RGZ1zRkeqtlDe4%2BbDoP1U6AeDCH%2F7pe%2BgFP%2FZUCk496TJi0KDo2529QWrv2RRRd8pLdLkj7skTqQuwSwLwMFShNhsMDLCulL4p%2B6e6KIHxV%2B%2B04u0%2B57CKLoaY%3D&X-Amz-Signature=c9ee5d373fc7b80da39959327e216735bfa19ae109795292821139e2c5a78771' (ASCII) -> 'https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B filename%3D"linux-64%2Fmicromamba-1.5.3-0.tar.bz2"%3B filename*%3DUTF-8''linux-64%2Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFCTLR4Z42%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231128T072926Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2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Be2%2F6%2FD%2Bqm1RUcpsLm7Go2uZ2zIDG1rrKldGGLa%2FunTIW9a2IbV5ccVMzj0RGZ1zRkeqtlDe4%2BbDoP1U6AeDCH%2F7pe%2BgFP%2FZUCk496TJi0KDo2529QWrv2RRRd8pLdLkj7skTqQuwSwLwMFShNhsMDLCulL4p%2B6e6KIHxV%2B%2B04u0%2B57CKLoaY%3D&X-Amz-Signature=c9ee5d373fc7b80da39959327e216735bfa19ae109795292821139e2c5a78771' (UTF-8)

Downloading the uri before the conversion works fine. After the conversion it results in the 403 error.

So it's not an cloud provider issue, but an issue of wget on alpine (and maybe also on debian:slim?)

lukasjelonek commented 11 months ago

I found the solution for me: wget --no-iri -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba

The --no-iri option disables the uri-conversion as a side-effect and the download works again.

jonashaag commented 11 months ago

Wow but why does it do it?

lukasjelonek commented 11 months ago

Probably wget changed it's default behaviour in recent versions. I tried to download micromamba on ubuntu:23:10 and got the same 403 error.

lukasjelonek commented 11 months ago

After a look to the wget man-page I found another option:

wget --remote-encoding=utf-8 -O /dev/null https://micromamba.snakepit.net/api/micromamba/linux-64/latest

This may be another option to get rid of the conversion.

Eventually the download server that generates the s3-download-links should report the correct encoding in its response, so that users won't need to override it manually.

jonashaag commented 11 months ago

Is there anything we should fix in the docs?

lukasjelonek commented 11 months ago

In the long term it would be good if you can find out why wget converts the url and to fix the problem at the communication between the server and wget.

As a guess: The server should somehow tell wget that the link is already in utf-8 encoding.

> wget -d -O /dev/null https://micromamba.snakepit.net/api/micromamba/linux-64/latest

[...]
Skipping 512 bytes of body: [<!doctype html>
<html lang=en>
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to the target URL: <a href="https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27linux-64%252Fmicromamba-1.5.3-0.tar.bz2&amp;response-content-type=application%2Fx-tar&amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&ampSkipping 512 bytes of body: [;X-Amz-Credential=ASIAWUI46DZFJ3FY2MPJ%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20231128T101032Z&amp;X-Amz-Expires=600&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Security-Token=IQoJb3JpZ2luX2VjEGIaCXVzLWVhc3QtMSJIMEYCIQDMHb81eZYTGweqqwumPXjsOwkibsni%2BAu2k8r8uIRdggIhAKyudwVN8G6fTt%2FT326LX6Tg5zSH3vsUMlMtyDI5HhyUKocFCLv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQABoMNDU1ODY0MDk4Mzc4IgynfFibZiQpF%2B3jBHgq2wQc8x10irBl03w2j6pdlo154AoCcAA%2B8aUPWpHfo9xVWtBnzCD%2BwRoU%2BsYn08h8wyvgn9wfNSCbshIcag6Hz3Nvd%2BCK1LFNSkipping 512 bytes of body: [1KUwfxhK45UOXpIX%2BuNS79VMM3xU3zEj67wqqi%2BCHgkK2cXBI7uJ2LFEhamzHtYPHK4xTcrN%2BNZKMz6cqwbQjd52b1BjkPtxh0PqYVu3FZnqqndmXAbxOZEsOUUySdTkSmamaDF%2Bqmig62QlowLlVye3EHEHEHnkYdOq5Lp%2ByxDlFPmuIIo%2BFPKVyOq%2B2PGTWqzGYbFYRAQuWD3vI5Nom6SM4M7%2FMNHQBlkXq8kRlPtojhv4m%2BCycAo8LS5CLjTR%2FdFS%2Bqv1Al8AC9ZuUVzLs880APvvHG%2F2kC2%2BHcftkSL3hpoK4CTm%2FSlSkipping 512 bytes of body: [BUNVCIeoUO9r7Nk82UXea1t3mK%2Fpp%2BrhMHz1KFmhQ1Nq1FnAfJxUZ8okU9jasYrHXn%2BKPEAR3EiQ6R%2BptyPxBb3YTmaCrOW%2BYFjnBYS7DIoQ%2BA83ciZybS7tB39KWUP10TSVp9f%2FLHZcQqAuLYlW0P0Y6XmlZjkQe1Cfzw4SPpGqM7TglKfcre8gOQhYL1xKMGW%2FiKkW510h22GoK8pnR8S92RsiLjx5p1iBOu%2B5l6AdhsEbGb3BUEnra2PNdZSBnli41g45CofSRiSpgXZeo2sJirOI%2F6%2B%2BW5j1SeAOcBr3OCGiQ4lCy%2FVY3mf%2FwKvGsnwq7NqigrX11xoSMm%2FPLDJunuNhm1ERtuE%2FR9Xo%2F1MKeqSUdXRWLcyjbfe58zZ%2FUyHXQeJ0oHmfKs8gw1%2ByWqwY6mQGcOJnTJtLwvqirdExVxJa3FduEOLrL5qBuQf9wDP370Z9nKhPT3%2B%2FVqDRWQSkipping 512 bytes of body: [DG5gtLyTBhG01pqIN77J4u9JZwPELuHWlZnmQ%2FmNHmUBepcYERyiKUyhNou0x46aH01IcxZY%2FTZOWDiv0mI5IRroIU5rv%2BSepBmdvnSi%2FvOn3Qi2jWz8VuTwV10vRd0vMQ9fcgS0q94lqsfGso%3D&amp;X-Amz-Signature=012e1a3dad3f5dd5a2ea3451a934b9fc31a0274b7786192b8315c3eeead3f290">https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27linux-64%252Fmicromamba-1.5.3-0.tar.bSkipping 512 bytes of body: [z2&amp;response-content-type=application%2Fx-tar&amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=ASIAWUI46DZFJ3FY2MPJ%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20231128T101032Z&amp;X-Amz-Expires=600&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Security-Token=IQoJb3JpZ2luX2VjEGIaCXVzLWVhc3QtMSJIMEYCIQDMHb81eZYTGweqqwumPXjsOwSk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[HmfKs8gw1%2ByWqwY6mQGcOJnTJtLwvqirdExVxJa3FduEOLrL5qBuQf9wDP370Z9nKhPT3%2B%2FVqDRWQDG5gtLyTBhG01pqIN77J4u9JZwPELuHWlZnmQ%2FmNHmUBepcYERyiKUyhNou0x46aH01IcxZY%2FTZOWDiv0mI5IRroIU5rv%2BSepBmdvnSi%2FvOn3Qi2jWz8VuTwV10vRd0vMQ9fcgS0q94lqsfGso%3D&amp;X-Amz-Signature=012e1a3dad3f5dd5a2ea3451a934b9fc31a0274b7786192b8315c3eeead3f290</a>. If not, click Skipping 388 bytes of body: [the link.
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" 
data-cf-beacon='{"rayId":"82d1d25aeb3f3a73","b":1,"version":"2023.10.0","token":"9835535e595041178af91778049237e7"}' crossorigin="anonymous"></script>
] done.
URI content encoding = None
converted 'https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B%20filename%3D%22linux-64%2Fmicromamba-1.5.3-0.tar.bz2%22%3B%20filename%2A%3DUTF-8%27%27linux-64%252Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFJ3FY2MPJ%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231128T101032Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEGIaCXVzLWVhc3QtMSJIMEYCIQDMHb81eZYTGweqqwumPXjsOwkibsni%2BAu2k8r8uIRdggIhAKyudwVN8G6fTt%2FT326LX6Tg5zSH3vsUMlMtyDI5HhyUKocFCLv%2F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%2FmNHmUBepcYERyiKUyhNou0x46aH01IcxZY%2FTZOWDiv0mI5IRroIU5rv%2BSepBmdvnSi%2FvOn3Qi2jWz8VuTwV10vRd0vMQ9fcgS0q94lqsfGso%3D&X-Amz-Signature=012e1a3dad3f5dd5a2ea3451a934b9fc31a0274b7786192b8315c3eeead3f290' (ASCII) -> 'https://binstar-cio-packages-prod.s3.amazonaws.com/5ef2fca5fe6b2a019b74a98b/6553a9662eea042f73ba02ac?response-content-disposition=attachment%3B filename%3D"linux-64%2Fmicromamba-1.5.3-0.tar.bz2"%3B filename*%3DUTF-8''linux-64%2Fmicromamba-1.5.3-0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWUI46DZFJ3FY2MPJ%2F20231128%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231128T101032Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEGIaCXVzLWVhc3QtMSJIMEYCIQDMHb81eZYTGweqqwumPXjsOwkibsni%2BAu2k8r8uIRdggIhAKyudwVN8G6fTt%2FT326LX6Tg5zSH3vsUMlMtyDI5HhyUKocFCLv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQABoMNDU1ODY0MDk4Mzc4IgynfFibZiQpF%2B3jBHgq2wQc8x10irBl03w2j6pdlo154AoCcAA%2B8aUPWpHfo9xVWtBnzCD%2BwRoU%2BsYn08h8wyvgn9wfNSCbshIcag6Hz3Nvd%2BCK1LFN1KUwfxhK45UOXpIX%2BuNS79VMM3xU3zEj67wqqi%2BCHgkK2cXBI7uJ2LFEhamzHtYPHK4xTcrN%2BNZKMz6cqwbQjd52b1BjkPtxh0PqYVu3FZnqqndmXAbxOZEsOUUySdTkSmamaDF%2Bqmig62QlowLlVye3EHEHEHnkYdOq5Lp%2ByxDlFPmuIIo%2BFPKVyOq%2B2PGTWqzGYbFYRAQuWD3vI5Nom6SM4M7%2FMNHQBlkXq8kRlPtojhv4m%2BCycAo8LS5CLjTR%2FdFS%2Bqv1Al8AC9ZuUVzLs880APvvHG%2F2kC2%2BHcftkSL3hpoK4CTm%2FSlBUNVCIeoUO9r7Nk82UXea1t3mK%2Fpp%2BrhMHz1KFmhQ1Nq1FnAfJxUZ8okU9jasYrHXn%2BKPEAR3EiQ6R%2BptyPxBb3YTmaCrOW%2BYFjnBYS7DIoQ%2BA83ciZybS7tB39KWUP10TSVp9f%2FLHZcQqAuLYlW0P0Y6XmlZjkQe1Cfzw4SPpGqM7TglKfcre8gOQhYL1xKMGW%2FiKkW510h22GoK8pnR8S92RsiLjx5p1iBOu%2B5l6AdhsEbGb3BUEnra2PNdZSBnli41g45CofSRiSpgXZeo2sJirOI%2F6%2B%2BW5j1SeAOcBr3OCGiQ4lCy%2FVY3mf%2FwKvGsnwq7NqigrX11xoSMm%2FPLDJunuNhm1ERtuE%2FR9Xo%2F1MKeqSUdXRWLcyjbfe58zZ%2FUyHXQeJ0oHmfKs8gw1%2ByWqwY6mQGcOJnTJtLwvqirdExVxJa3FduEOLrL5qBuQf9wDP370Z9nKhPT3%2B%2FVqDRWQDG5gtLyTBhG01pqIN77J4u9JZwPELuHWlZnmQ%2FmNHmUBepcYERyiKUyhNou0x46aH01IcxZY%2FTZOWDiv0mI5IRroIU5rv%2BSepBmdvnSi%2FvOn3Qi2jWz8VuTwV10vRd0vMQ9fcgS0q94lqsfGso%3D&X-Amz-Signature=012e1a3dad3f5dd5a2ea3451a934b9fc31a0274b7786192b8315c3eeead3f290' (UTF-8)
[...]

As the problematic redirect returns a html document, I would add a <meta charset="UTF-8"> tag to the html-head section and check if this solves the problem.

rgasper commented 11 months ago

tricky tricky certs and encoding... Thanks folks

KristinaGagalova commented 11 months ago

Unfortunately, these solutions did not work for me. I ended up using

curl -Ls https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba

That's sounds tricky to fix