Hi,
You can check information about the log with the following command. lxc info <container_name> --show-log
You can check the error as well, lxc monitor --type=logging --pretty and restart the container which has error state and observe the log.
Regards.
I have updated to 5.4 and stopped all the containers and rebooted the server, but the long delay to “lxc list” is still there. What logs / info ought I provide?
My server is not part of a cluster.
My logs are filled with error:
`WARNING[2022-07-28T08:00:52-05:00] Transaction timed out. Retrying once err=“Failed to begin transaction: context deadline exceeded” member=1’
‘DEBUG [2022-07-28T08:01:12-05:00] Database error err=“Failed to fetch from “instance_snapshot_config” table: sql: Rows are closed”’
'DEBUG [2022-07-28T08:01:12-05:00] Database error err=“sql: transaction has already been committed or rolled back”`
I’ve just tried locally with 512 instances and lxc list returns in a couple of seconds.
Are the instances running or stopped? Does that make a difference?
Thank you for your help.
The server has 21 running instances and 6 stopped instances( AMD 5900X w/128GB – very low load).
What maybe significant is that each instance has between 90 and 100 snapshots.
Thanks, yes I suspect that is significant. I’ll re-look at the DB queries and see if there are some inefficiencies related to snapshots, as the instance list (without snapshots) seems fine now.