![MAAS 安装在数据库迁移时失败(渲染模型状态)](https://linux22.com/image/1202645/MAAS%20%E5%AE%89%E8%A3%85%E5%9C%A8%E6%95%B0%E6%8D%AE%E5%BA%93%E8%BF%81%E7%A7%BB%E6%97%B6%E5%A4%B1%E8%B4%A5%EF%BC%88%E6%B8%B2%E6%9F%93%E6%A8%A1%E5%9E%8B%E7%8A%B6%E6%80%81%EF%BC%89.png)
我正在尝试按照以下说明在 Ubuntu Xenial (16.04) 上安装 MAAShttps://docs.ubuntu.com/maas/2.1/en/installconfig-package-install。我使用图像将其作为 Vagrant 框运行ubuntu/xenial64
。我添加了ppa:maas/next
(我也尝试过ppa:maas/stable
2.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?