Centos7
cobbler_web 在 CentOS 7.6 上不可用
當我嘗試載入 cobbler 2.8.4 網頁時,我在 /var/log/httpd/ssl_error_log 中看到以下錯誤
Traceback (most recent call last): File "/usr/share/cobbler/web/cobbler.wsgi", line 26, in application _application = get_wsgi_application() File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application django.setup(set_prefix=False) File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__ self._setup(name) File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/share/cobbler/web/settings.py", line 89, in <module> from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS ImportError: cannot import name TEMPLATE_CONTEXT_PROCESSORS
python2-django-1.11.20-1.el7.noarch
cobbler-2.8.4-4.el7.x86_64
cobbler-web-2.8.4-4.el7.noarch
看起來 Django 已經在 EPEL 中更新到 1.11,這對上下文處理器的處理方式進行了一些更改。程式碼 cobbler 試圖在這裡呼叫已被棄用並在不久前從 Django 中刪除,因此 cobbler 需要更新。在 Red Hat Bugzilla 中送出針對 cobbler 的錯誤報告。