wsl-distrod icon indicating copy to clipboard operation
wsl-distrod copied to clipboard

[ERROR] Failed to fetch a distro image.

Open HighScorePlayer opened this issue 2 years ago • 23 comments

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

HighScorePlayer avatar Mar 26 '23 08:03 HighScorePlayer

Our team facing same issue...

dgreenwald-ccs avatar Mar 27 '23 18:03 dgreenwald-ccs

Same issue

Vrashabh-Sontakke avatar Mar 29 '23 08:03 Vrashabh-Sontakke

Same issue

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

HighScorePlayer avatar Mar 29 '23 10:03 HighScorePlayer

3 days ?

Vrashabh-Sontakke avatar Mar 29 '23 14:03 Vrashabh-Sontakke

3 days ?

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

HighScorePlayer avatar Mar 30 '23 10:03 HighScorePlayer

Are you still getting that error?

vilcapomaparejaca1998 avatar Apr 01 '23 06:04 vilcapomaparejaca1998

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

essn avatar Apr 01 '23 16:04 essn

Are you still getting that error?

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

HighScorePlayer avatar Apr 05 '23 11:04 HighScorePlayer

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.

HighScorePlayer avatar Apr 05 '23 11:04 HighScorePlayer

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.

vilcapomaparejaca1998 avatar Apr 09 '23 17:04 vilcapomaparejaca1998

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.

yanorei32 avatar Apr 10 '23 09:04 yanorei32

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.

HighScorePlayer avatar Apr 11 '23 10:04 HighScorePlayer

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?

essn avatar Apr 11 '23 14:04 essn

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.

HighScorePlayer avatar Apr 12 '23 15:04 HighScorePlayer

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?

codekoala avatar May 18 '23 11:05 codekoala

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: @.***>

Vrashabh-Sontakke avatar May 18 '23 11:05 Vrashabh-Sontakke

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

RivenSkaye avatar Jun 07 '23 10:06 RivenSkaye

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

CaseyLabs avatar Jun 18 '23 21:06 CaseyLabs

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.

CompeyDev avatar Jul 11 '23 10:07 CompeyDev

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 avatar Sep 06 '23 19:09 httpete

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

httpete avatar Sep 11 '23 13:09 httpete

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?

CompeyDev avatar Sep 11 '23 14:09 CompeyDev

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.

HighScorePlayer avatar Apr 18 '24 13:04 HighScorePlayer