cobbler奇葩问题

问题描述

网页端错误
在这里插入图片描述
日志

[Thu Feb 21 13:45:46.507383 2019] [:error] [pid 42965] [remote 192.168.240.201:160] mod_wsgi (pid=42965): Exception occurred processing WSGI script '/usr/share/cobbler/web/cobbler.wsgi'.
[Thu Feb 21 13:45:46.507446 2019] [:error] [pid 42965] [remote 192.168.240.201:160] Traceback (most recent call last):
[Thu Feb 21 13:45:46.507475 2019] [:error] [pid 42965] [remote 192.168.240.201:160]   File "/usr/share/cobbler/web/cobbler.wsgi", line 26, in application
[Thu Feb 21 13:45:46.507517 2019] [:error] [pid 42965] [remote 192.168.240.201:160]     _application = get_wsgi_application()
[Thu Feb 21 13:45:46.507529 2019] [:error] [pid 42965] [remote 192.168.240.201:160]   File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Thu Feb 21 13:45:46.507552 2019] [:error] [pid 42965] [remote 192.168.240.201:160]     django.setup(set_prefix=False)
[Thu Feb 21 13:45:46.507563 2019] [:error] [pid 42965] [remote 192.168.240.201:160]   File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup
[Thu Feb 21 13:45:46.507580 2019] [:error] [pid 42965] [remote 192.168.240.201:160]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Thu Feb 21 13:45:46.507590 2019] [:error] [pid 42965] [remote 192.168.240.201:160]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
[Thu Feb 21 13:45:46.507609 2019] [:error] [pid 42965] [remote 192.168.240.201:160]     self._setup(name)
[Thu Feb 21 13:45:46.507619 2019] [:error] [pid 42965] [remote 192.168.240.201:160]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
[Thu Feb 21 13:45:46.507637 2019] [:error] [pid 42965] [remote 192.168.240.201:160]     self._wrapped = Settings(settings_module)
[Thu Feb 21 13:45:46.507646 2019] [:error] [pid 42965] [remote 192.168.240.201:160]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
"/var/log/httpd/ssl_error_log" 95L, 14050C 

解决

yum install python-pip  -y
pip install Django==1.8.9
systemctl  restart httpd

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值