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

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

Open
HighScorePlayer opened this issue Mar 26, 2023 · 23 comments
Open

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

HighScorePlayer opened this issue Mar 26, 2023 · 23 comments

Comments

@HighScorePlayer
Copy link

HighScorePlayer commented Mar 26, 2023

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
Copy link

Our team facing same issue...

@Vrashabh-Sontakke
Copy link

Same issue

@HighScorePlayer
Copy link
Author

HighScorePlayer commented Mar 29, 2023

Same issue

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

@Vrashabh-Sontakke
Copy link

3 days ?

@HighScorePlayer
Copy link
Author

3 days ?

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

@vilcapomaparejaca1998
Copy link

Are you still getting that error?

@essn
Copy link

essn commented Apr 1, 2023

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
Copy link
Author

Are you still getting that error?

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

@HighScorePlayer
Copy link
Author

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
Copy link

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
Copy link

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.
microsoft/WSL#9231
I hope this issue resolve.

@HighScorePlayer
Copy link
Author

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
Copy link

essn commented Apr 11, 2023

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
Copy link
Author

HighScorePlayer commented Apr 12, 2023

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
Copy link

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
Copy link

Vrashabh-Sontakke commented May 18, 2023 via email

@RivenSkaye
Copy link

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
Copy link

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

@CompeyDev
Copy link

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
Copy link

httpete commented Sep 6, 2023

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
Copy link

httpete commented Sep 11, 2023

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

@CompeyDev
Copy link

CompeyDev commented Sep 11, 2023

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
Copy link
Author

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.

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