zoukankan      html  css  js  c++  java
  • openstack错误-dashboard-not found

    1 错误详细

    系统centos 7.6,按照train版本的官方文档(https://docs.openstack.org/horizon/train/install/install-rdo.html),安装了控制面板(dashborad)。

    但在进行登录,访问http://服务地址/dashboard的时候,跳转到了登录地址http://服务地址/auth/login/?next=/dashboard/

    出现错误

    Not Found

    The requested URL /auth/login/ was not found on this server.

    2 错误分析

    检查了相关日志,并没有发现有关的错误信息。从跳转后的报错,没有找到相应的url,怀疑可能是路径错误。

    于是尝试使用http://服务地址/dashboard/auth/login/进行访问,发现可以访问,但是显示不正常,如下图所示,应该是css和js文件路径有问题。

    所以定位了问题,就是服务路径配置问题。

    3 解决

    分析相关的配置文件/etc/httpd/conf.d/openstack-dashboard.conf和/etc/openstack-dashboard/local_settings。

    发现/etc/httpd/conf.d/openstack-dashboard.conf文件里的有相关的路径设置,做了如下改动(去掉了路径中的dashboard):

    #WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
    WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
    #Alias /dashboard/static /usr/share/openstack-dashboard/static
    Alias /static /usr/share/openstack-dashboard/static

    重启httpd服务后,使用http://服务地址/ 访问网站,恢复正常:

    4 结论

    该错误怀疑是red hat系操作系统上openstack软件包的bug。

  • 相关阅读:
    JavaScript完整总结
    vue引入iframe的父子页面的数据传递
    随笔开发中笔记
    关于表格(table)的操作
    es6--6.字符串相关
    ES6--5.数组4个新增方法
    ES6--4.解构赋值
    sublime 远程连接服务器编辑
    ajaxSubmit
    修改 debian 时区
  • 原文地址:https://www.cnblogs.com/learn2teach/p/12443185.html
Copyright © 2011-2022 走看看