新規インストール後、Maas Web インターフェイスにアクセスできません。

新規インストール後、Maas Web インターフェイスにアクセスできません。

次のような問題があります。テストサーバーが 2 台あり、そのうちの 1 台を maas サーバーとして、もう 1 台をノードとして構成したいと考えています。最新の 12.10 をダウンロードし、インストール プロセス中に maas オプションを使用しました。再起動後、apache2 は実行されていますが、maas を開くと次のようになります。

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

マシンは古い HP DL180 G3 で、12.04.2 LTS でスムーズに動作していました。var/log/apache2/error.log に次のエラーが表示されます。

[Thu Apr 04 17:06:01 2013] [error] mod_wsgi (pid=1929): Target WSGI script '/usr/share/maas/wsgi.py' cannot be loaded as Python module.
[Thu Apr 04 17:06:01 2013] [error] mod_wsgi (pid=1929): Exception occurred processing WSGI script '/usr/share/maas/wsgi.py'.
[Thu Apr 04 17:06:01 2013] [error] Traceback (most recent call last):
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/share/maas/wsgi.py", line 30, in <module>
[Thu Apr 04 17:06:01 2013] [error]     start_up()
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 59, in start_up
[Thu Apr 04 17:06:01 2013] [error]     inner_start_up()
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 81, in inner_start_up
[Thu Apr 04 17:06:01 2013] [error]     setup_maas_avahi_service()
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/maasserver/maasavahi.py", line 52, in setup_maas_avahi_service
[Thu Apr 04 17:06:01 2013] [error]     service.publish()
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/maasserver/maasavahi.py", line 44, in publish
[Thu Apr 04 17:06:01 2013] [error]     self.service.publish()
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/maasserver/zeroconfservice.py", line 46, in publish
[Thu Apr 04 17:06:01 2013] [error]     bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER),
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
[Thu Apr 04 17:06:01 2013] [error]     follow_name_owner_changes=follow_name_owner_changes)
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
[Thu Apr 04 17:06:01 2013] [error]     self._named_service = conn.activate_name_owner(bus_name)
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
[Thu Apr 04 17:06:01 2013] [error]     self.start_service_by_name(bus_name)
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
[Thu Apr 04 17:06:01 2013] [error]     'su', (bus_name, flags)))
[Thu Apr 04 17:06:01 2013] [error]   File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
[Thu Apr 04 17:06:01 2013] [error]     message, timeout)
[Thu Apr 04 17:06:01 2013] [error] DBusException: org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.Avahi timed out
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121] mod_wsgi (pid=1928): Target WSGI script '/usr/share/maas/wsgi.py' cannot be loaded as Python module.
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121] mod_wsgi (pid=1928): Exception occurred processing WSGI script '/usr/share/maas/wsgi.py'.
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121] Traceback (most recent call last):
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/share/maas/wsgi.py", line 30, in <module>
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     start_up()
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 59, in start_up
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     inner_start_up()
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 81, in inner_start_up
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     setup_maas_avahi_service()
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/maasserver/maasavahi.py", line 52, in setup_maas_avahi_service
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     service.publish()
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/maasserver/maasavahi.py", line 44, in publish
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     self.service.publish()
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/maasserver/zeroconfservice.py", line 46, in publish
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER),
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     follow_name_owner_changes=follow_name_owner_changes)
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     self._named_service = conn.activate_name_owner(bus_name)
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 175, in activate_name_owner
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     return self.get_name_owner(bus_name)
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 361, in get_name_owner
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     's', (bus_name,), **keywords)
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]   File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121]     message, timeout)
[Thu Apr 04 17:06:05 2013] [error] [client 10.6.22.121] DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.Avahi': no such name

ここで何が起こっているのか全く分かりません。何か提案はありますか?

答え1

avahi サービスに問題があるようです。次のコマンドを実行してみてください: $ sudo service avahi-daemon restart これで問題が解決するかどうか確認してください。

関連情報