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

404 with ghcup install ghc 9.8.1-alpha1 #102

Closed
Tracked by #6746
minoki opened this issue Jul 30, 2023 · 6 comments
Closed
Tracked by #6746

404 with ghcup install ghc 9.8.1-alpha1 #102

minoki opened this issue Jul 30, 2023 · 6 comments

Comments

@minoki
Copy link

minoki commented Jul 30, 2023

The URL in metadata seems to be wrong: metadata says https://downloads.haskell.org/~ghc/9.8.0.20230727/ but the correct URL is https://downloads.haskell.org/~ghc/9.8.1-alpha1/.

Log:

$ ghcup install ghc 9.8.1-alpha1
[ Info  ] downloading: https://downloads.haskell.org/~ghc/9.8.0.20230727/ghc-9.8.0.20230727-x86_64-apple-darwin.tar.xz as file $HOME/.ghcup/tmp/ghcup-d515ee862ba6ad4e/ghc-9.8.0.20230727-x86_64-darwin.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   146    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
[ Error ] [GHCup-05841] Download failed: Process "curl" with arguments ["-fL", "-o",
[ ...   ]                                                 "$HOME/.ghcup/tmp/ghcup-d515ee862ba6ad4e/ghc-9.8.0.20230727-x86_64-darwin.tar.xz.tmp",
[ ...   ]                                                 "https://downloads.haskell.org/~ghc/9.8.0.20230727/ghc-9.8.0.20230727-x86_64-apple-darwin.tar.xz"] failed with exit code 22.
[ Error ] Also check the logs in $HOME/.ghcup/logs
@bgamari
Copy link
Collaborator

bgamari commented Jul 31, 2023

Thanks; now fixed!

@bgamari bgamari closed this as completed Jul 31, 2023
@phadej
Copy link

phadej commented Jul 31, 2023

@bgamari how is this fixed? the metadata is still the same, and https://downloads.haskell.org/~ghc/9.8.0.20230727/ returns 404

@phadej
Copy link

phadej commented Jul 31, 2023

@andreasabel
Copy link
Member

Note: https://downloads.haskell.org/~ghc/9.8.0.20230727/ with tilde is 404, https://downloads.haskell.org/ghc/9.8.0.20230727/ without tilde works.

Now these two seem to point to the same directory.

@phadej
Copy link

phadej commented Aug 1, 2023

Screenshot from 2023-08-01 13-27-29

and also in Firefox (which I never use, so it's not my cache). But curl from console seems to get the directory listing.

Is some cache somewhere too aggressive?

@phadej
Copy link

phadej commented Aug 1, 2023

Screenshot from 2023-08-01 13-30-26

which is different from curls:

x-served-by: cache-dfw-kdfw8210105-DFW, cache-hel1410023-HEL
x-cache: HIT, HIT
x-cache-hits: 1, 1
x-timer: S1690885563.566476,VS0,VE5

so I guess the cache is too aggressive.

EDIT: That is not good, as a nasty person could just poll https://downloads.haskell.org/~ghc/9.8.1/ and https://downloads.haskell.org/ghc/9.8.1/ to annoy other people, if caches are not purged when new directory/files are addded

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