Error: The remote "" doesn't exist


(Vanzent) #1

Hi.
vesion 3.0.3
On any command one answer. For example:

lxc list
Error: The remote “” doesn’t exist

lxc launch ubuntu-minimal:bionic
Error: The remote “” doesn’t exist

But before i run command:

lxc remote add --protocol simplestreams ubuntu-minimal https://cloud-images.ubuntu.com/minimal/releases/

only this command have good answer:

lxc remote list

> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> |      NAME      |                        URL                        |   PROTOCOL    | AUTH TYPE | PUBLIC | STATIC |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | local          | unix://                                           | lxd           | tls       | NO     | YES    |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | ubuntu         | https://cloud-images.ubuntu.com/releases          | simplestreams |           | YES    | YES    |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | ubuntu-daily   | https://cloud-images.ubuntu.com/daily             | simplestreams |           | YES    | YES    |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | ubuntu-minimal | https://cloud-images.ubuntu.com/minimal/releases/ | simplestreams |           | YES    | NO     |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+

What can i do?


(Stéphane Graber) #2

lxc remote set-default local

Looks like your default remote has been cleared somehow, this should fix it.