rakudo / rakudo.org

Code for rakudo.org website
https://rakudo.org/
Artistic License 2.0
8 stars 18 forks source link

Е500 on the download page #26

Closed code-hunger closed 4 years ago

code-hunger commented 5 years ago

I'm excited about perl6 and I'm trying to install Rakudo, though I seem to be unable to get it on my computer.

The download button for Rakudo for Linux on http://rakudo.perl6.org/files leads to http://rakudo.perl6.org/latest/star/source, which gives Error 500 and asks to report the behaviour here. This is what I've been getting for the last few days.

The instructions to install from source on http://perl6.org/downloads/ make use of wget with http://rakudo.perl6.org/downloads/star/rakudo-star-2019.03.tar.gz as an address, which gives Error 404.

Are there some official mirrors from which I could get the tarball? I'm thinking of building directly from the rakudo github repo, though I'm unsure of which branch to use. I'd love to get any hints of this!

lizmat commented 5 years ago

The hardware on which the downloads are hosted, has crashed and maybe beyond repair. The current perl6.org servers are temporary replacements that apparently don't contain everything.

If you're on linux, there is also an external repo from which you can download: https://nxadm.github.io/rakudo-pkg/ .

We expect to return to normal services soon. Thank you for our patience.

code-hunger commented 5 years ago

Thanks for the link, but I'm not sure how to make use of it. I'm running ArchLinux, so I tried downloading the source I found in the link in the "Build your own packages" section.
I'm not sure what to do with it, though - I guess I have to use docker somehow, but I have no idea how it works, and also everything docker-related in that folder is targeted at a specific linux distro.

The README in the archive is the same as the link you provided, so it isn't of much help either.
Do I need docker to install rakudo? The page shows this command:

$ docker run -ti --rm -v /var/tmp:/staging -e RAKUDO_VERSION=$RAKUDO_URL -e NQP_VERSION=$NQP_VERSION -e MOARVM_VERSION=$MOARVM_VERSION -e REVISION:$REVISION -e OS=$OS -e RELEASE=$RELEASE -e ARCH=$ARCH -e MAINTAINER=$MAINTAINER nxadm/rakudo-pkg:$TAG

which refers to a lot of variables I'm not sure how to set even if I had docker.

Is this the way you suggested to install it? And if yes, how should I set e.g. $RAKUDO_URL or $REVISION?
I see nqp is referred there, too, which I also cannot install because the package builder tries to fetch the source from rakudo.org, but unsuccessfully.

Thank you for your assistance!

Altai-man commented 5 years ago

@code-hunger hi! If you are using Arch Linux, you can try rakudo package from AUR, and then install zef using instructions at https://github.com/ugexe/zef Another option is using https://github.com/skaji/p6env

code-hunger commented 5 years ago

That was my initial attempt to install it, even before going to the webpage to download it manually.

When I try to install the rakudo package from the AUR, it fails with an error for missing nqp>=2019.03.

When I try to install nqp from the AUR (it's unavailable in the official repos), it tries to fetch the source from http://rakudo.org/downloads/nqp/nqp-2019.03.tar.gz - unsuccessfully, for that same reason I cannot download it manually.

If it worked from the AUR I wouldn't be posting here, but it turns out the AUR package just does automatically what I'm trying to do manually.

timo commented 5 years ago

Hi, I've got an explanation for the docker stuff on that repo:

the code in the repo itself is for creating the packages; it uses docker so that it's easy to get a build environment for a whole bunch of different distros and multiple versions of each distro.

HTH   - Timo

On 26/04/2019 21:35, code-hunger wrote:

Thanks for the link, but I'm not sure how to make use of it. I'm running ArchLinux, so I tried downloading the source I found in the link in the "Build your own packages" section. I'm not sure what to do with it, though - I guess I have to use docker somehow, but I have no idea how it works, and also everything docker-related in that folder is targeted at a specific linux distro. The README in the archive is the same as the link you provided, so it isn't of much help either.

Do I need docker to install rakudo? The page shows this command:

$ docker run -ti --rm -v /var/tmp:/staging -e RAKUDO_VERSION=$RAKUDO_URL -e NQP_VERSION=$NQP_VERSION -e MOARVM_VERSION=$MOARVM_VERSION -e REVISION:$REVISION -e OS=$OS -e RELEASE=$RELEASE -e ARCH=$ARCH -e MAINTAINER=$MAINTAINER nxadm/rakudo-pkg:$TAG

which refers to a lot of variables I'm not sure how to set even if I had docker.

Is this the way you suggested to install it? And if yes, how should I set e.g. $RAKUDO_URL or $REVISION? I see nqp is referred there, too, which I also cannot install because the package builder tries to fetch the source from rakudo.org, but unsuccessfully.

Thank you for your assistance!

code-hunger commented 5 years ago

@timo Thanks! Does that mean I can make an Arch package myself? But still, the problem with fetching the source persists.

I skimmed through the files in the docker/ folder; seems the *Dockerfile-* files are just some configuration and the actuall install is performed by pkg_rakudo.pl, which too downloads the sources from rakudo.perl6.org*.
So even if I make a docker config this way, I wouldn't be able to install it. At least that's how I understand it… which doesn't really leave much hope. Any suggestions?

timo commented 5 years ago

looks like we're stuck until we either rescue the older releases from the hard drive of the failed server or rebuild the historic releases ourselves.

other than that, you can just use the version tags (YYYY.MM, sometimes YYYY.MM.bugfixnumber) from the moarvm/moarvm, perl6/nqp, and rakudo/rakudo repositories by grabbing them via git (don't use the github releases tab, it gives you broken tarballs and we can't seem to get github to stop offering them)

each of the repositories has a release guide document, usually in the docs/ folder.

making a rakudo star release is a bit more involved, but for now it should be fine to get rakudo "compiler only" releases and just install zef separately.

On 27/04/2019 13:22, code-hunger wrote:

@timo does that mean I can make an Arch package myself? But still, the problem with fetching the source persists.

I skimmed through the files in the docker/ folder; seems the *Dockerfile-* files are just some configuration and the actuall install is performed by pkg_rakudo.pl, which too downloads the sources from rakudo.perl6.org*. So even if I make a docker config this way, I wouldn't be able to install it.

code-hunger commented 5 years ago

Thanks! I'll try this later today and will keep you up with the results.

Altai-man commented 5 years ago

Another option is rakudobrew, see https://github.com/tadzik/rakudobrew, just rakudobrew build 2019.03 should be enough as it uses git.

niner commented 5 years ago

Err...why don't you just do:

git clone https://github.com/rakudo/rakudo.git
cd rakudo
perl Configure.pl --backends=moar
make install

That should get you up and running in a matter of minutes

timo commented 5 years ago

please check out a tag rather than latest master; master isn't guaranteed to be suitable for production use at all times

On 27/04/2019 15:03, niner wrote:

Err...why don't you just do:

git clone https://github.com/rakudo/rakudo.git
cd rakudo
perl Configure.pl --backends=moar
make install

That should get you up and running in a matter of minutes

code-hunger commented 5 years ago

@niner that was what I thought and wrote about in my first post - to fetch directly from git, but I was a bit hesitant to do a raw-install from the master branch.

Now I looked again at http://perl6.org/downloads/ and found that the address to wget has been updated to https://perl6intro.com/files/rakudo-star-2019.03.tar.gz. I downloaded it successfully; At the moment I'm running Configure.pl on it, hope it will work.

Thanks to whoever updated the link!

@Altai-man thanks for you suggestion, too. I'm not planning to have multiple rakudo installations at the same time so unless rakudobrew does anything different from fetching the rakudo git repo, I think it will be unnecessary.

code-hunger commented 5 years ago

Thank you all for your responses! I'm happy to announce that installing from https://perl6intro.com/files/rakudo-star-2019.03.tar.gz worked;
Maybe if you leave a note on http://rakudo.org/files about this it will be easier for future visitors, though perl6.org/downloads/ now shows a working way to install rakudo and further actions might be unnecessary.

I'll submit a comment on the rakudo package in the AUR about this, though I'm not sure what is the right thing to do with it (nor it is my duty to do anything - I'm just wondering).
Currently the install fails because of the missing nqp dependency (which also fails to install because it's stored on rakudo.org). If the PKGBUILD is changed to download the source from the link above, then the modularity is lost, becase the nqp binaries will be part of the rakudo package, and they will conflict with the nqp package (when it will be available in the future).

Thanks again! Feel free to close this issue at your discretion.

pmqs commented 5 years ago

Getting the same 500 error when trying to build a perl6 module via AppVeyor. Failing on the URL https://rakudo.org/latest/star/win64

Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH% refreshenv Refreshing environment variables from registry for cmd.exe. Please wait...Finished.. if not exist "C:\Rakudo" cinst rakudostar Chocolatey v0.10.11 Installing the following packages: rakudostar By installing you accept licenses for the packages. Progress: Downloading rakudostar 2019.03... 100% rakudostar v2019.03 [Approved] rakudostar package files install completed. Performing other installation steps. Attempt to get headers for https://rakudo.org/latest/star/win64 failed. The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://rakudo.org/latest/star/win64'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (500) Internal Server Error." Downloading rakudostar 64 bit from 'https://rakudo.org/latest/star/win64' ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://rakudo.org/latest/star/win64'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (500) Internal Server Error." This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn. The install of rakudostar was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\rakudostar\tools\chocolateyinstall.ps1'. See log for details.

coke commented 4 years ago

Closing this ticket about the original server failure.