nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 90 forks source link

[ERROR] Failed to fetch a distro image. #87

Open HighScorePlayer opened 1 year ago

HighScorePlayer commented 1 year ago

Using the distrod_wsl_launcher to install an image from linuxcontainers.org[the default choice to get the image.

Step1:

Run distrod_wsl_launcher.exe on win11

Step2:

Input 2 or press [Enter], then terminate forcely

Step3:

Run the distrod_wsl_launcher on powershell and show the errors below

Step4:

Network and proxy settings

THE ERRORS

When not using proxy: 0: Failed to fetch the image list. 1: Failed to parse the distro image list of the linuxcontainer.org image server. 2: Failed to fetch https://images.linuxcontainers.org/images/ 3: error sending request for url (https://images.linuxcontainers.org/images/): error trying to connect ((os error 10054))

Now using proxy: 0: Failed to fetch the image list. 1: Failed to parse the distro image list of the linuxcontainer.org image server. 2: "images/" is not available

The network are supposed to be Okay because I've alreaad set the UWP Lookback on and have tried to modify network security Settings of windows system. However it could not work conclusively. wsl_destro_launcher_error

dgreenwald-ccs commented 1 year ago

Our team facing same issue...

Vrashabh-Sontakke commented 1 year ago

Same issue

HighScorePlayer commented 1 year ago

Same issue

It seems like that the server is now under maintenance, or you can say it is updating.

Vrashabh-Sontakke commented 1 year ago

3 days ?

HighScorePlayer commented 1 year ago

3 days ?

I don' know. I don't even find where the notification is.

vilcapomaparejaca1998 commented 1 year ago

Are you still getting that error?

essn commented 1 year ago

Same here - exact same error.

I did notice the following:

# distrod/libs/src/container_org_image.rs

static LINUX_CONTAINERS_ORG_BASE: &str = "https://images.linuxcontainers.org/";

Checking Wayback Machine it looks like https://images.linuxcontainers.org recently started redirecting to https://us.lxd.images.canonical.com/.

Wayback Machine: https://web.archive.org/web/20230801000000*/images.linuxcontainers.org.

I think I successfully used Distrod with https://linuxcontainers.org before the Wayback Machine redirects, so it may not matter. I'll dig deeper, time allowing.

edit: link formatting

HighScorePlayer commented 1 year ago

Are you still getting that error?

Yeah. I tried it just now. It is definitely a headache.

HighScorePlayer commented 1 year ago

Same here - exact same error.

I did notice the following:

# distrod/libs/src/container_org_image.rs

static LINUX_CONTAINERS_ORG_BASE: &str = "https://images.linuxcontainers.org/";

Checking Wayback Machine it looks like https://images.linuxcontainers.org recently started redirecting to https://us.lxd.images.canonical.com/.

Wayback Machine: https://web.archive.org/web/20230801000000*/images.linuxcontainers.org.

I think I successfully used Distrod with https://linuxcontainers.org before the Wayback Machine redirects, so it may not matter. I'll dig deeper, time allowing.

edit: link formatting

I guessed the domain name of the source was down or changed.

Anyway, thanks man.

vilcapomaparejaca1998 commented 1 year ago

Are you still getting that error?

Yeah. I tried it just now. It is definitely a headache.

Do you know any alternative? Without considering Docker.

yanorei32 commented 1 year ago

I use this software because WSL2 (except the store version) doesn't support systemd . The store version has a critical issue and can not start in session 0. https://github.com/microsoft/WSL/issues/9231 I hope this issue resolve.

HighScorePlayer commented 1 year ago

Are you still getting that error?

Yeah. I tried it just now. It is definitely a headache.

Do you know any alternative? Without considering Docker.

essn commented 1 year ago

https://github.com/DDoSolitary/LxRunOffline looks pretty cool! Glad I was following this issue.

That said, I'd still be interested in a Distrod fix šŸ˜‚

I have not tried to use Distrod recently the download issue may or may not still be a problem.

Anyone still experiencing it?

HighScorePlayer commented 1 year ago

https://github.com/DDoSolitary/LxRunOffline looks pretty cool! Glad I was following this issue.

That said, I'd still be interested in a Distrod fix šŸ˜‚

I have not tried to use Distrod recently the download issue may or may not still be a problem.

Anyone still experiencing it?

The problem, for me is that I can not run a desktop environment (DE) on wsl2 stablely, may because AMD integrated graphics can not be identified by wsl2 or KDE plasma. I have already installed the v gpu drivers.

Finally I gave up installing the desktop application.

codekoala commented 1 year ago

I recently wiped and reinstalled everything on my laptop, and I am now encountering this issue. Do we have any solutions for distrod to actually work the way it used to?

Vrashabh-Sontakke commented 1 year ago

I guess the automation for fetching images is now outdated.

On Thu, May 18, 2023, 4:56 PM Josh VanderLinden @.***> wrote:

I recently wiped and reinstalled everything on my laptop, and I am now encountering this issue. Do we have any solutions for distrod to actually work the way it used to?

ā€” Reply to this email directly, view it on GitHub https://github.com/nullpo-head/wsl-distrod/issues/87#issuecomment-1552917076, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUQIXVMVT7YHOXKSJHJ5N7TXGYBO7ANCNFSM6AAAAAAWIBKGHA . You are receiving this because you commented.Message ID: @.***>

RivenSkaye commented 1 year ago

The issue seems to lie in the way container_org_images::fetch_apache_file_list parses the received data. It's assuming a table structure, but something forced a change that makes the path to the links body > pre > a with the date information being in the parent <pre> element. Rewriting the parser to sort of work isn't an issue, adapting the date extraction is a bit more effort, but I can't test it any changes to propose a fix in my current dev env. Will look into writing a PR to fix it soon-ish.

Luckily the URL used still works, and doesn't seem changed compared to what it used to be, making this a rather easy fix. If anyone has build instructions available in a more readable format than the GH Workflow YAML files, that'd be much appreciated

CaseyLabs commented 1 year ago

@nullpo-head - would it be possible to have a new build of distrod with the linuxcontainer URL fixed? Thanks!

CompeyDev commented 1 year ago

For those who found this and don't know what to do:

As for now, you can download a rootfs.tar.xz build artifact from LinuxContainers' public Jenkins CI Instance for the distribution of your choice.

httpete commented 11 months ago

For those who found this and don't know what to do:

As for now, you can download a rootfs.tar.xz build artifact from LinuxContainers' public Jenkins CI Instance for the distribution of your choice.

Just to add a bit more detail - this does work, for example I navigated to:

https://jenkins.linuxcontainers.org/job/image-rockylinux/lastBuild/architecture=amd64,release=9,variant=default/

And then downloaded that rootfs.tar.xz, chose option 1, and set the path to ../rootfs.tar.xz

httpete commented 11 months ago

DistroD is such a great tool - I really hope someone fixes this download thing.

CompeyDev commented 11 months ago

DistroD is such a great tool - I really hope someone fixes this download thing.

Yeah, it would be nice to have a functional fork. I'll see what I can do over this weekend.

EDIT: Took a look, seems like the entire codebase needs to be revamped. Are you looking for new maintainers @nullpo-head?

HighScorePlayer commented 4 months ago

For those who found this and don't know what to do: As for now, you can download a rootfs.tar.xz build artifact from LinuxContainers' public Jenkins CI Instance for the distribution of your choice.

Just to add a bit more detail - this does work, for example I navigated to:

https://jenkins.linuxcontainers.org/job/image-rockylinux/lastBuild/architecture=amd64,release=9,variant=default/

And then downloaded that rootfs.tar.xz, chose option 1, and set the path to ../rootfs.tar.xz

I have tried to use linux distributions with "tar.gz"-like file suffix to deploy the arch distribution directly but in the end it seams like the tool Distro with tar.xz is best.