Can't copy a storage volume snapshot from remote to localhost (Error: not found)

Hi,

I try to migrate some containers from one server to an other. Therfore, I want to copy/move a storage volume.

I tried this command:
lxc storage volume copy hetzner:default/nextcloud_data/copy default/nextcloud_data
and got Error: not found

The last lines from the log:

DEBUG  [2023-01-11T10:30:19Z] Sending request to LXD                        etag= method=GET url="https://94.130.130.155:8443/1.0/storage-pools/default/volumes/custom/nextcloud_data"
DEBUG  [2023-01-11T10:30:20Z] Got response struct from LXD                 
DEBUG  [2023-01-11T10:30:20Z] 
        {
                "config": {
                        "volatile.idmap.last": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000}]",
                        "volatile.idmap.next": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000}]"
                },
                "description": "",
                "name": "nextcloud_data",
                "type": "custom",
                "used_by": [
                        "/1.0/instances/nextcloud"
                ],
                "location": "none",
                "content_type": "filesystem",
                "project": "default",
                "created_at": "2022-12-24T11:04:17.73263226Z"
        } 
DEBUG  [2023-01-11T10:30:20Z] Sending request to LXD                        etag= method=GET url="https://94.130.130.155:8443/1.0/storage-pools/default/volumes/custom/nextcloud_data/snapshots/copy"
DEBUG  [2023-01-11T10:30:20Z] Got response struct from LXD                 
DEBUG  [2023-01-11T10:30:20Z] 
        {
                "description": "",
                "expires_at": "0001-01-01T00:00:00Z",
                "name": "copy",
                "config": {
                        "volatile.idmap.last": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000}]",
                        "volatile.idmap.next": "[{\"Isuid\":true,\"Isgid\":false,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000},{\"Isuid\":false,\"Isgid\":true,\"Hostid\":1000000,\"Nsid\":0,\"Maprange\":1000000000}]"
                },
                "content_type": "filesystem",
                "created_at": "2023-01-11T10:00:51.501493837Z"
        } 
DEBUG  [2023-01-11T10:30:20Z] Connected to the websocket: wss://94.130.130.155:8443/1.0/events?target=none 
DEBUG  [2023-01-11T10:30:20Z] Sending request to LXD                        etag= method=POST url="https://94.130.130.155:8443/1.0/storage-pools/default/volumes/custom/nextcloud_data/copy?target=none"
DEBUG  [2023-01-11T10:30:20Z] 
        {
                "name": "nextcloud_data/copy",
                "pool": "default",
                "migration": true,
                "target": null,
                "volume_only": false
        } 
Error: not found

But lxc storage volume copy hetzner:default/nextcloud_data default/nextcloud_data --volume-only seems working.

So you are trying to copy a volume snapshot to another remote destination as a new volume?

If so then you are being bitten by this known bug: