[LXD] Error: Failed parsing stream: Get "https://cloud-images.ubuntu.com/releases/streams/v1/index.json": remote error: tls: handshake failure

,

Hi, I have been getting this error while trying to run the command "lxc image list ubuntu: " Same happens when I use the “Images” remote repository. Can someone help me to get this issue resolved. I’m using a http and https proxy on my server.

But I’m able to do a curl on the url https://cloud-images.ubuntu.com/releases/streams/v1/index.json

root@random:~# curl -I https://cloud-images.ubuntu.com/releases/streams/v1/index.json
HTTP/1.1 200 Connection established

HTTP/1.1 200 OK
Date: Thu, 21 Dec 2023 07:55:31 GMT
Server: Apache/2.4.29 (Ubuntu)
Last-Modified: Thu, 21 Dec 2023 07:42:08 GMT
ETag: “6c24-60d003ca3eea2”
Accept-Ranges: bytes
Content-Length: 27684
Vary: Accept-Encoding
Content-Type: application/json

I’m able to successfully pull the list of images from my end:

$ lxc image list images: -f json | jq -r '.[].fingerprint'  | wc -l
1650

and:

$ lxc image list ubuntu: -f json | jq -r '.[].fingerprint'  | wc -l
10523

What version of the LXD snap are you using and are you behind any sort of filtering proxy, one that curl is configured to use but LXD is not?

Hey, Thanks for the reply.

I have the same proxy for both curl and lxd. Please see the below. Also I’m using LXD version 5.19

#> echo $https_proxy
http://172.30.180.23:8080
#> echo $http_proxy
http://172.30.180.23:8080
#> lxc config get core.proxy_https
https://172.30.180.23:8080
#> lxc config get core.proxy_http
http://172.30.180.23:8080

What does lxc remote list show? Redact any internal URLs that you don’t want to expose here.

Does it work OK with the proxy settings disabled?