finally had time to play around with lxd-migrate and the new ./bin.linux.lxd-migrate script following the steps from here
→ https://linuxcontainers.org/lxd/docs/master/howto/import_machines_to_instances/#import-machines-to-instances
but after migrating it i have the following problem
lxc exec freepbx bash
Exception: SQLSTATE[HY000] [2002] Connection refused::SQLSTATE[HY000] [2002] Connection refused in file /var/www/html/admin/libraries/utility.functions.php on line 120
Caused by
PDOException: SQLSTATE[HY000] [2002] Connection refused in file /var/www/html/admin/libraries/BMO/Database.class.php on line 144
Stack trace:
- Exception->() /var/www/html/admin/libraries/utility.functions.php:120
- die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:150
- PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
- PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
- FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:77
- FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
- require_once() /etc/freepbx.conf:11
- include_once() /var/lib/asterisk/bin/fwconsole:12
Exception: SQLSTATE[HY000] [2002] Connection refused::SQLSTATE[HY000] [2002] Connection refused in file /var/www/html/admin/libraries/utility.functions.php on line 120
Caused by
PDOException: SQLSTATE[HY000] [2002] Connection refused in file /var/www/html/admin/libraries/BMO/Database.class.php on line 144
Stack trace:
- Exception->() /var/www/html/admin/libraries/utility.functions.php:120
- die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:150
- PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:144
- PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:144
- FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:77
- FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
- require_once() /etc/freepbx.conf:11
- include_once() /var/lib/asterisk/bin/fwconsole:12
[root@freepbx ~]#
[root@freepbx ~]# systemctl start mysql
Failed to get D-Bus connection: No such file or directory
[root@freepbx ~]#
If anyone can help I would be grateful
host LXD ubuntu 22.04 installed with snap lxd version 5.10
this is from log of container
lxc freepbx7 20230523140549.865 ERROR conf - …/src/src/lxc/conf.c:turn_into_dependent_mounts:3948 - No such file or directory - Failed to recursively turn old root mount tree into dependent mount. Continuing…