Here output when i use lxc publish --force-local --debug git-web/snap0 --alias git_test_image
root@main1:~# lxc publish --force-local --debug git-web/snap0 --alias git_test_image
DBUG[08-04|10:34:58] Connecting to a local LXD over a Unix socket
DBUG[08-04|10:34:58] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
DBUG[08-04|10:34:58] Got response struct from LXD
DBUG[08-04|10:34:58]
{
"config": {
"core.https_address": "[::]:8443",
"core.trust_password": true,
"images.compression_algorithm": "pigz"
},
"api_extensions": [
"storage_zfs_remove_snapshots",
"container_host_shutdown_timeout",
"container_stop_priority",
"container_syscall_filtering",
"auth_pki",
"container_last_used_at",
"etag",
"patch",
"usb_devices",
"https_allowed_credentials",
"image_compression_algorithm",
"directory_manipulation",
"container_cpu_time",
"storage_zfs_use_refquota",
"storage_lvm_mount_options",
"network",
"profile_usedby",
"container_push",
"container_exec_recording",
"certificate_update",
"container_exec_signal_handling",
"gpu_devices",
"container_image_properties",
"migration_progress",
"id_map",
"network_firewall_filtering",
"network_routes",
"storage",
"file_delete",
"file_append",
"network_dhcp_expiry",
"storage_lvm_vg_rename",
"storage_lvm_thinpool_rename",
"network_vlan",
"image_create_aliases",
"container_stateless_copy",
"container_only_migration",
"storage_zfs_clone_copy",
"unix_device_rename",
"storage_lvm_use_thinpool",
"storage_rsync_bwlimit",
"network_vxlan_interface",
"storage_btrfs_mount_options",
"entity_description",
"image_force_refresh",
"storage_lvm_lv_resizing",
"id_map_base",
"file_symlinks",
"container_push_target",
"network_vlan_physical",
"storage_images_delete",
"container_edit_metadata",
"container_snapshot_stateful_migration",
"storage_driver_ceph",
"storage_ceph_user_name",
"resource_limits",
"storage_volatile_initial_source",
"storage_ceph_force_osd_reuse",
"storage_block_filesystem_btrfs",
"resources",
"kernel_limits",
"storage_api_volume_rename",
"macaroon_authentication",
"network_sriov",
"console",
"restrict_devlxd",
"migration_pre_copy",
"infiniband",
"maas_network",
"devlxd_events",
"proxy",
"network_dhcp_gateway",
"file_get_symlink",
"network_leases",
"unix_device_hotplug",
"storage_api_local_volume_handling",
"operation_description",
"clustering",
"event_lifecycle",
"storage_api_remote_volume_handling",
"nvidia_runtime",
"candid_authentication",
"candid_config",
"candid_config_key",
"usb_optional_vendorid"
],
"api_status": "stable",
"api_version": "1.0",
"auth": "trusted",
"public": false,
"auth_methods": [
"tls"
],
"environment": {
"addresses": [
"10.10.2.2:8443",
"10.0.3.1:8443",
"192.168.122.1:8443",
"172.18.0.1:8443",
"172.17.0.1:8443"
],
"architectures": [
"x86_64",
"i686"
],
"certificate": "-----BEGIN CERTIFICATE-----\nMIIFVTCCAz2gAwIBAgIQDTqPyMcHPeqQ0zAQuwlngjANBgkqhkiG9w0BAQsFADAz\nMRwwGgYDVQQKExNsaW51eGNvbnRhaW5lcnMub3JnMRMwEQYDVQQDDApyb290QG1h\naW4xMB4XDTE5MTExMjE2NDEzOFoXDTI5MTEwOTE2NDEzOFowMzEcMBoGA1UEChMT\nbGlud
Xhjb250YWluZXJzLm9yZzETMBEGA1UEAwwKcm9vdEBtYWluMTCCAiIwDQYJ\nKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKvJ4t4oUXv6EjLcfQt6zaHiwKlWVKZn\nAVlzVnb8+ErFCXFtEYu5LXNa+ZjDWI8HtrVkPIfQqRuJA7fJqN0/9egSuaMtpDa9\nkk7LDy/L/00+p59W3w3f0BZKrFFbABTyqCwXxHUYH9nt024eCVuAAvK3JDFJL897\noRvTMh5GAxJg4
DPcTH/NavPUoJZgvMp3wvbSwgV09Zg40K1lKymrp5Nsj3/95bc+\ne0XOc2qcetgfPqlYA6FfGb+OT6bLU9MGA5ftsRYwCEtCjIr6mNUxWhrBaCDxSlgP\nR6YPxjUmlcGceOjJVRZKFqZwfm3jTfcHMxlex2nC2Bd+McPjKV4s7JZOM7Vp1Uil\nTwfcGQPOh4grTBMP58YYS++8f+Qa2FsjgULfK4hi/RUeZGBbyebpPSyrl8xA/uSc\nHb2YW2tclq3+TukDEoDqS
I5NjpH6DPwtE87C6A/Uy/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O8QgxyMu8eTsjeHBjFvhigaZS/x1DgzGw==\n-----END CERTIFICATE-----\n",
"certificate_fingerprint": "5d089838dbb624692d8243a8f788c528820288f58023d171c1ec00767e0c1eed",
"driver": "lxc",
"driver_version": "3.0.3",
"kernel": "Linux",
"kernel_architecture": "x86_64",
"kernel_version": "4.15.0-112-generic",
"server": "lxd",
"server_pid": 31621,
"server_version": "3.0.3",
"storage": "lvm",
"storage_version": "2.02.176(2) (2017-11-03) / 1.02.145 (2017-11-03) / 4.37.0 / ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --locals
tatedir=/var --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --exec-prefix= --bindir=/bin --libdir=/lib/x86_64-linux-gnu --sbindir=/sbin -
-with-usrlibdir=/usr/lib/x86_64-linux-gnu --with-optimisation=-O2 --with-cache=internal --with-clvmd=corosync --with-cluster=internal --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --with-default-pid-dir=/run --with-default-run-dir=/run/lvm --with-default
-locking-dir=/run/lock/lvm --with-thin=internal --with-thin-check=/usr/sbin/thin_check --with-thin-dump=/usr/sbin/thin_dump --with-thin-repair=/usr/sbin/thin_repair --enable-applib --enable-blkid_wiping --enable-cmdlib --enable-cmirrord --enable-dmeventd --enable-dbus-ser
vice --enable-lvmetad --enable-lvmlockd-dlm --enable-lvmlockd-sanlock --enable-lvmpolld --enable-notify-dbus --enable-pkgconfig --enable-readline --enable-udev_rules --enable-udev_sync",
"server_clustered": false,
"server_name": "main1",
"project": ""
}
}
DBUG[08-04|10:34:58] Connected to the websocket
DBUG[08-04|10:34:58] Sending request to LXD method=POST url=http://unix.socket/1.0/images etag=
DBUG[08-04|10:34:58]
{
"auto_update": false,
"properties": null,
"public": false,
"filename": "",
"source": {
"alias": "",
"certificate": "",
"protocol": "",
"server": "",
"mode": "",
"type": "snapshot",
"url": "",
"name": "git-web/snap0",
"fingerprint": "",
"secret": ""
},
"compression_algorithm": "",
"aliases": null
}
DBUG[08-04|10:34:58] Got operation from LXD
DBUG[08-04|10:34:58]
{
"id": "eba22fc5-c76f-46bf-ac3d-32f1920df8da",
"class": "task",
"description": "Downloading image",
"created_at": "2021-08-04T10:34:58.964701244+03:00",
"updated_at": "2021-08-04T10:34:58.964701244+03:00",
"status": "Running",
"status_code": 103,
"resources": null,
"metadata": null,
"may_cancel": false,
"err": ""
}
DBUG[08-04|10:34:58] Sending request to LXD method=GET url=http://unix.socket/1.0/operations/eba22fc5-c76f-46bf-ac3d-32f1920df8da etag=
DBUG[08-04|10:34:58] Got response struct from LXD
DBUG[08-04|10:34:58]
{
"id": "eba22fc5-c76f-46bf-ac3d-32f1920df8da",
"class": "task",
"description": "Downloading image",
"created_at": "2021-08-04T10:34:58.964701244+03:00",
"updated_at": "2021-08-04T10:34:58.964701244+03:00",
"status": "Running",
"status_code": 103,
"resources": null,
"metadata": null,
"may_cancel": false,
"err": ""
}
And this stuck about 5 hours, and then start create image