MAAS 安装在数据库迁移时失败(渲染模型状态)

MAAS 安装在数据库迁移时失败(渲染模型状态)

我正在尝试按照以下说明在 Ubuntu Xenial (16.04) 上安装 MAAShttps://docs.ubuntu.com/maas/2.1/en/installconfig-package-install。我使用图像将其作为 Vagrant 框运行ubuntu/xenial64。我添加了ppa:maas/next(我也尝试过ppa:maas/stable2.1 版本,但同样失败)存储库,然后在使用sudo apt install maas它安装时失败:

Setting up maas-region-controller (2.2.0+bzr6054-0ubuntu1~16.04.1) ...
dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf

Creating config file /etc/dbconfig-common/maas-region-controller.conf with new version
creating postgres user maas:  success.
verifying creation of user: success.
creating database maasdb: success.
verifying database maasdb exists: success.
dbconfig-common: flushing administrative password
Operations to perform:
  Synchronize unmigrated apps: messages, staticfiles
  Apply all migrations: piston3, maasserver, contenttypes, sessions, sites, auth, metadataserver
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
  Installing custom SQL...
Running migrations:
  Rendering model states...dpkg: error processing package maas-region-controller (--configure):
 subprocess installed post-installation script returned error exit status 247
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of maas:
 maas depends on maas-region-controller (= 2.2.0+bzr6054-0ubuntu1~16.04.1); however:
  Package maas-region-controller is not configured yet.

dpkg: error processing package maas (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Errors were encountered while processing:
 maas-region-controller
 maas
E: Sub-process /usr/bin/dpkg returned an error code (1)

我已经将其追踪到迁移命令,该命令具有更详细的选项,但似乎没有提供更多输出:

ubuntu@maas:~$ sudo maas-region dbupgrade -v 3
Operations to perform:
  Synchronize unmigrated apps: messages, staticfiles
  Apply all migrations: auth, sessions, sites, contenttypes, piston3, maasserver, metadataserver
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
  Installing custom SQL...
Running migrations:
  Rendering model states...ubuntu@maas:~$ echo $?
247

/var/log/maas我在、/var/log/apt或中找不到任何相关日志/var/log/dpkg.log。但如果您认为它们有用,我可以发布它们。我不太清楚如何进一步调试该dbupgrade命令。

我做错了什么导致我无法安装 MAAS?

相关内容