GVKun编程网logo

打开 Openstack dashboard 出现 Internal Server Error(openstack dashboard打不开)

17

对于想了解打开Openstackdashboard出现InternalServerError的读者,本文将提供新的信息,我们将详细介绍openstackdashboard打不开,并且为您提供关于(最全

对于想了解打开 Openstack dashboard 出现 Internal Server Error的读者,本文将提供新的信息,我们将详细介绍openstack dashboard打不开,并且为您提供关于(最全)No dashboards are active for the current data set. 解决tensorboard无法启动和显示问题、ajax 返回 data 的 statusText : "Internal Server Error" 解决办法、centos7 安装配置openstack-dashboard (官网openstack-juno版)、destoon安装出现Internal Server Error的解决方法的有价值信息。

本文目录一览:

打开 Openstack dashboard 出现 Internal Server Error(openstack dashboard打不开)

打开 Openstack dashboard 出现 Internal Server Error(openstack dashboard打不开)

这次的问题是在 openstack 搭建好之后,dashboard 本身是能用的,但是在某一天后,突然发现打开 dashboard 后出现 Internal Server Error. 于是乎在网上找答案但是没有,那就自己动手解决吧。

首先打开 dashboard 的 log 文件,我的是:etc/httpd/logs/horizon_error.log.

发现下面的 error 信息:

2015-04-28 01:39:55.380169 Traceback (most recent call last):
2015-04-28 01:39:55.380313   File "/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi", line 14, in <module>
2015-04-28 01:39:55.380466     application = get_wsgi_application()
2015-04-28 01:39:55.380557   File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
2015-04-28 01:39:55.380659     django.setup()
2015-04-28 01:39:55.380740   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 20, in setup
2015-04-28 01:39:55.380837     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2015-04-28 01:39:55.380939   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in __getattr__
2015-04-28 01:39:55.381056     self._setup(name)
2015-04-28 01:39:55.381140   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2015-04-28 01:39:55.381250     self._wrapped = Settings(settings_module)
2015-04-28 01:39:55.381337   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 94, in __init__
2015-04-28 01:39:55.381435     mod = importlib.import_module(self.SETTINGS_MODULE)
2015-04-28 01:39:55.381518   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
2015-04-28 01:39:55.381665     __import__(name)
2015-04-28 01:39:55.381751   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 263, in <module>
2015-04-28 01:39:55.381886     from local.local_settings import *  # noqa
2015-04-28 01:39:55.381977   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 117, in <module>
2015-04-28 01:39:55.382078     os.path.join(LOCAL_PATH, ''.secret_key_store''))
2015-04-28 01:39:55.382174   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/secret_key.py", line 63, in generate_or_read_from_file
2015-04-28 01:39:55.382377     raise FilePermissionError("Insecure key file permissions!")
2015-04-28 01:39:55.382494 FilePermissionError: Insecure key file permissions!

初步判断是文件的权限问题,根据 os.path.join (LOCAL_PATH, ''.secret_key_store'') 找到 /opt/stack/horizon/openstack_dashboard/local/.secret_key_store, 并发现对这个文件拥有所有的权限,很奇怪为啥会出现 permission 的问题 于是查看源码,发现没有这个文件,所以这个文件应该是新生成的,至于为什么会生成,不知道。

然后决定删除这个文件,再次刷新 dashboard 的 url, 很神奇的是 work 了,然后再次查看该文件夹,发现该目录下还是新产生了这个文件,并且权限和上图一样。

SECRET_KEY(New in version 2012.1 (Essex)) 设置一个自定义的密钥:你可以将它设置为一个特定的值,或者你可以让 horizon 上生成一个默认的密钥在本机上,无论 Python WSGI(如果使用在 Apache + mod_wsgi)。在许多情况下,你会想把它设定,例如当多个 dashboard 实例分布在不同的机器上(通常在一个负载均衡器)。你必须确保会话获取所有请求路由到相同的 dashboard 实例或你为它们设置相同的 secret_key。 From horizon.utils import secret_key:

SECRET_KEY = secret_key.generate_or_read_from_file(
os.path.join(LOCAL_PATH, ''.secret_key_store''))

local_settings.py.example 文件包括一个快速和容易的方法来生成一个单一的安装密钥。

(最全)No dashboards are active for the current data set. 解决tensorboard无法启动和显示问题

(最全)No dashboards are active for the current data set. 解决tensorboard无法启动和显示问题

按照网上的教程,我无法正常启动tensorboard,全过程没有报错,但是打开tensorboard显示No dashboards are active for the current data set.这就很奔溃了。为此,找了很多博客,特地总结一番。

本文包含TensorBoard的使用及启动方法,以及针对该问题的一些解决方案。

 

TensorBoard的使用及启动方法

先看一个例子,代码如下:

import tensorflow as tf

# 定义一个简单的计算图,实现向量加法的操作。
input1 = tf.constant([1.0, 2.0, 3.0], name = ''input1'')
input2 = tf.Variable(tf.random_uniform([3]), name = ''input2'')
output = tf.add_n([input1, input2], name = ''add'')

# 生成一个写日志的writer,并将当前的tensorflow计算图写入日志。
# tensorflow提供了多种写日志文件的API
writer = tf.summary.FileWriter(''C:/logfile'', tf.get_default_graph())
writer.close()

运行之后,会在指定目录下生成如下文件

 

接着进入log文件(这里即图中的events.out.tfevents.1557416553.DESKTOP-GNQH2VN文件)的上级目录(本例中即E盘根目录),在路径栏中直接输入cmd启动dos对话框。
 输入命令tensorboard --logdir=path\to\log,本例中为tensorboard --logdir=logfile(等号后面为log文件所在的文件夹名称)
启动方式有三种:
#tensorboard --logdir=C:\Users\dbsdz\Desktop\TensorBoardTest\log 可以
#cd E://TensorBoardTest      tensorboard --logdir=log  可以
#e: cd TensorBoardTest     tensorboard --logdir=log  可以

注意新版的需要将=改成“”,这点巨坑……

敲回车,如下图所示:
 
然后打开浏览器,在地址栏中输入上图中的网址,即可正常打开tensorboard,如下图所示:
 
至此,问题解决。
 
 
 
 
TensorBoard使用过程中的问题
 (1)命令tensorboard --logdir=path\to\log路径问题
1.我生成的events.out.tfevents.1512031768.ACER文件在其他盘,如下所示
 
2.打开cmd命令窗口,根据上述我的events.out.tfevents文件路径
应该输入:tensorboard --logdir=PycharmProjects\Lucayan\DeepQA\logs
运行如下图
 
 
 
(2)无法用浏览器访问tensorboard问题
1.注意:使用360浏览器、火狐浏览器等都不能正常打开,只可以使用Chrome打开,下载网址:http://www.google.cn/chrome/browser/desktop/index.html
2.问题(1)第2步生成的网址为http://Acer:6006,但我在Chrome中无法访问,这是因为tensorflow版本不同造成,这个时候应该输入网址http://localhost:6006,即可成功登陆界面 
 
 
(3)在Pycharm中运行tensorboard,生成网址
1.打开pycharm,执行.py文件,生成log文件夹
2.在pycharm的菜单栏,选择View--Tool Windows--Terminal
3.在pycharm下面的命令栏输入上述的logs文件夹位置,本例为:tensorboard --logdir=PycharmProjects\Lucayan\DeepQA\logs
4.enter运行即可生成网址,在chrome中打开tensorboard(注意,部分电脑输入网址为http://localhost:6006)
 
 
 
(4)出现问题:forrtl: error (200): program aborting due to control-C event
你会发现使用chrome输入网址怎样都无法打开tensorboard
这是因为你摁了Ctrl+C,终止了运行(上图最后一行黄线画了出来)
你只需要再重新在pycharm下面的命令栏输入上述的logs文件夹位置,本例为:tensorboard --logdir=PycharmProjects\Lucayan\DeepQA\logs,不要摁Ctrl+C,再在chrome输入网址,即可打开tensorboard,解决问题
 
(5)tensorboard安装问题
一般安装完tensorflow就会自动安装好tensorboard
1.安装tensorflow,打开cmd命令窗口,输入   pip install tensorflow,等候安装即可
2.安装完成,在命令窗口输入pip list即可查看tensorflow和tensorboard安装好没有
 
 
 
ps:
1. 不知道我遇到此问题与win7系统有没有关系。
2. 最好使用谷歌浏览器来打开tensorboard,我试过ie和360,均无法正常显示tensorboard界面。
3. 据观察,如果你想要开启另外一个新的计算图,一定要把原来的cmd命令行窗口关闭,再重复上述步骤,不然打开的将依然是上一个计算图。
4. 有些朋友输入“tensorboard --logdir=log文件所在目录”后,并没有任何网址输出,但是这不会影响tensorboard的启动,只需要正常打开谷歌浏览器,输入http://localhost:6006即可正常打开tensorboard。这是由于tensorflow版本不同导致的。
 
由于时间宝贵,后面有些图就直接盗图的,没时间一一截图。但重点是有所收获就行。欢迎大家互相交流学习,一起进步!

参考链接:https://blog.csdn.net/sinat_20729643/article/details/78683677

 

ajax 返回 data 的 statusText :

ajax 返回 data 的 statusText : "Internal Server Error" 解决办法

javascript 部分

$.ajax({
    type: "POST",
    async: false,
    url: actionUrl,
    data: { "id": id, "name": typeName, "parentid": selectVal },
    success: reset_Data,
    error: error_callback
});

c# mvc 后台部分

public void AddType(lirObjModel.Boj_SYS_TYPE type)
{
    AppendType(type);
}

ajax 返回的 data 里面 statusText : "Internal Server Error" 这个错误

原因是我 mvc 后台方法的参数 lirObjModel.Boj_SYS_TYPE 这个 Boj_SYS_TYPE 的访问级别是 private

public partial class Boj_SYS_TYPE 
    {
     //工具生成,默认私有,修改为 public ,ajax 就可以正常传递参数
private Boj_SYS_TYPE () { /* Require use of factory methods */ } private Boj_SYS_TYPE(Tbl_SYS_TYPE tbl) { _tblItem = tbl; } #region Original Property internal Tbl_SYS_TYPE _tblItem = new Tbl_SYS_TYPE(); public Int32 ID { get { return _tblItem.ID; } set { if (_tblItem.ID != value) { _tblItem.ID = value; } } } public String NAME { get { return _tblItem.NAME; } set { if (_tblItem.NAME != value) { _tblItem.NAME = value; } } } public Int32? Parentid { get { return _tblItem.Parentid; } set { if (_tblItem.Parentid != value) { _tblItem.Parentid = value; } } } #endregion }

我自己将 lirObjModel.Boj_SYS_TYPE 实体类的访问级别从 private 改为 public ajax 就可以正常返回数据了

解决办法就到这里了,有更好的解决办法欢迎交流。

centos7 安装配置openstack-dashboard (官网openstack-juno版)

centos7 安装配置openstack-dashboard (官网openstack-juno版)

感谢朋友支持本博客,欢迎共同探讨交流,由于能力和时间有限,错误之处在所难免,欢迎指正!
如果转载,请保留作者信息。
博客地址:http://blog.csdn.net/qq_21398167

原博文地址:http://blog.csdn.net/qq_21398167/article/details/47036395

System requirements

Before you install theOpenStack dashboard, you must meet the following system require­ments:

 OpenStack Compute installation.Enable the Identity Service for user and project man­agement.

Note the URLs of the IdentityService and Compute endpoints.

 Identity Service user withsudo privileges. Because Apache does not serve content from a root user, usersmust run the dashboard as an Identity Service user with sudo privileges.[1]


Python 2.6 or 2.7. The Pythonversion must support Django. The Python version should run on any system,including Mac OS X. Installation prerequisites might differ by plat­form.

Then, install and configurethe dashboard on a node that can contact the Identity Service.

Provideusers with the following information so that they can access the dashboardthrough a web browser on their local machine:

•  The public IP address fromwhich they can access the dashboard

•  The user name and password withwhich they can access the dashboard

Your web browser, and that of your users, must support HTML5 andhave cookies and JavaScript enabled.


 Install the packages:

# yum install openstack-dashboard httpd mod_wsgi memcached python-memcached

 To configure the dashboard

• Edit the /etc/openstack-dashboard/local_settings file and complete the following actions:

a.         Configure the dashboard to use OpenStack services on the controller node:

OPENSTACK_HOST = " controller''

b.        Allow all hosts to access the dashboard:

ALLOWED_HOSTS =  [''*'']

c.         Configure the memcached session storage service:

CACHES = {

''default'': {

''BACKEND'': ''django.core.cache.backends.memcached.

MemcachedCache'',

''LOCATION'': ''127.0.0.1:11211'',

}

}

To finalize installation

1.       On RHEL and CentOS, configureSELinux to permit the web server to connect to Open- Stack services:

#   setsebool -P httpd_can_network_connect on

2.       Due to a packaging bug, thedashboard CSS fails to load properly. Run the following command to resolve thisissue:

#   chown -R apache:apache /usr/share/openstack-dashboard/static

For more information, see the bug report.

3.       Start the web server andsession storage service and configure them to start when the system boots:

#   systemctl enable httpd.service memcached.service

#   systemctl start httpd.service memcached.service

Verify operation

This section describes how to verify operation ofthe dashboard.

1.        Access the dashboard using aweb browser:http://controller/dashboard .

2.        Authenticate using admin or demouser credentials.





----------------------------------------------------------------------------------------------------------------------------------------------------------------------

参考:H版本


http://blog.csdn.net/qq_21398167/article/details/46385667


笔者是结合这两个版本一起搭建的环境并成功!



destoon安装出现Internal Server Error的解决方法

destoon安装出现Internal Server Error的解决方法

这篇文章主要介绍了destoon安装出现Internal Server Error的解决方法,需要的朋友可以参考下

很多朋友在安装destoon的时候出现“internal server error”的错误提示信息,导致无法安装,,其解决方法如下:

方法一、删除根目录下.htaccess文件,如果无效,请尝试方法二;

方法二、对于Liunx/Unix服务器,如果不支持0777属性,可修改根目录config.inc.php:

$CFG[''file_mod''] = 0777;

改为:

$CFG[''file_mod''] = 0755 ;

然后,FTP修改已经被系统自动修改为0777属性的目录和文件为0755属性。

关于打开 Openstack dashboard 出现 Internal Server Erroropenstack dashboard打不开的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于(最全)No dashboards are active for the current data set. 解决tensorboard无法启动和显示问题、ajax 返回 data 的 statusText : "Internal Server Error" 解决办法、centos7 安装配置openstack-dashboard (官网openstack-juno版)、destoon安装出现Internal Server Error的解决方法的相关知识,请在本站寻找。

本文标签: