Not possible to download LXC images

Hi, it is not possible to download index-system.asc. Bug seems to be similar to this issue:

Reproduction:
$ lxc-create -n test -t download

Setting up the GPG keyring
Downloading the image index
ERROR: Failed to download http://repo.turris.cz/lxc//meta/1.0/index-system.asc
lxc-create: test: lxccontainer.c: create_run_template: 1621 Failed to create container from template
lxc-create: test: tools/lxc_create.c: main: 319 Failed to create container test

1 Like

I confirm. I have the same issue:

@turris:~# /usr/share/lxc/templates/lxc-download --list
Setting up the GPG keyring
Downloading the image index
ERROR: Failed to download http://repo.turris.cz/lxc//meta/1.0/index-system.asc
root@turris:~# lxc-create -n hass -t download -- --dist Debian --release Bullseye --arch armv7l --server rep
o.turris.cz/lxc
Setting up the GPG keyring
Downloading the image index
ERROR: Failed to download http://repo.turris.cz/lxc//meta/1.0/index-system.asc
lxc-create: hass: lxccontainer.c: create_run_template: 1621 Failed to create container from template
lxc-create: hass: tools/lxc_create.c: main: 319 Failed to create container hass
root@turris:~#

This seems to be a regression as I found several reports on the forum over the years with this same error.

I think it a problem with the Turris LXD, meta files are not in the server.

I think @mvasilek should look into this. :arrow_heading_up:

1 Like

Anyone working on this? Is it working again? Having trouble to properly setting up lxc-containers is a big problem in my project. Keen on any new Information! Thanks!

1 Like

Same is happening here.
Please get this fixed.

The only way I could get it working was through Luci and unchecking Enable SSL.

There is no file like: http://repo.turris.cz/lxc//meta/1.0/index-system.asc

Just index-system without suffix:

image

I opened a ticket few months ago about similar issue.

At the time, Canonical repo was working ok.

1 Like

I can confirm that the “images.linuxcontainers.org” repo works both from Luci and in ssh.

1 Like