Some problems using Incus with a LXD remote server, cannot pull a file

I have Incus on my local PC. I am able to add a LXD server as a remote. So far so good.

I can also incus shell into a remote instance. A generic incus ls shows all instances on the remote.

$ incus remote ls
+-----------------+------------------------------------+---------------+-------------+--------+--------+--------+
|      NAME       |                URL                 |   PROTOCOL    |  AUTH TYPE  | PUBLIC | STATIC | GLOBAL |
+-----------------+------------------------------------+---------------+-------------+--------+--------+--------+
| images          | https://images.linuxcontainers.org | simplestreams | none        | YES    | NO     | NO     |
+-----------------+------------------------------------+---------------+-------------+--------+--------+--------+
| local (current) | unix://                            | incus         | file access | NO     | YES    | NO     |
+-----------------+------------------------------------+---------------+-------------+--------+--------+--------+
| quay            | https://quay.io                    | oci           | none        | YES    | NO     | NO     |
+-----------------+------------------------------------+---------------+-------------+--------+--------+--------+
| myremote        | https://myremote.example.com:8443  | incus         | tls         | NO     | NO     | NO     |
+-----------------+------------------------------------+---------------+-------------+--------+--------+--------+
$
$ incus shell myremote:unifi
root@unifi:~# 

$ incus ls myremote:
+---------------+---------+----------------------+------+-----------+-----------+
|     NAME      |  STATE  |         IPV4         | IPV6 |   TYPE    | SNAPSHOTS |
+---------------+---------+----------------------+------+-----------+-----------+
| arpwatch      | RUNNING | 172.16.16.129 (eth0) |      | CONTAINER | 0         |
+---------------+---------+----------------------+------+-----------+-----------+
| unifi         | RUNNING | 172.16.16.108 (eth0) |      | CONTAINER | 0         |
+---------------+---------+----------------------+------+-----------+-----------+

However, a specific incus list with an instance name on the remote side returns an empty list. If I pull a file from it I get Error: not found

$ incus ls myremote:unifi
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+

$ incus file pull myremote:unifi/etc/passwd /tmp/
Error: not found

Well, both APIs have probably diverged quite a bit… Using the Incus client on a LXD remote isn’t really supported.

Yeah, I figured that that would be the case. I’ll have to find another solution then. I may even have to consider upgrading that LXD server to Incus.

1 Like

And that’d be a great choice :smiley:

1 Like