[inkscope]运行过程遇到的问题及解决

来源:互联网 发布:小米手机数据不能上网 编辑:程序博客网 时间:2024/05/29 17:19

安装过程:[inkscope]安装的ceph的监控平台inkscope 1.1


inkscope安装不复杂,但是运行起来问题还是挺多的,网上资料太少,特此记录。其实还有pools/pgs/osds/显示的问题没解决,但是因为临时被抽调搞别的项目了,只能暂时搁置了,希望有知道的人能告知。


1)页面不能访问,但apache服务还在,apache的error日志报如下错:

[mem_event:error]AH00484:server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting


改大/etc/apache2/mods-available/mpm_event.conf里的MaxRequestWorkers参数


2)查看hosts、osd等信息页面报500错误

把inkscopeCtrlcore.py中59行——68行,即 if db.inkscope_user.count()==0这段判断注释掉即可。

if db.inkscope_users.count() == 0:    print "list users is empty: populating with default users"    user = {"name":"admin",            "password": hash_pass("admin"),            "roles":["admin"]}    db.inkscope_users.insert(user)    user = {"name":"guest",            "password": hash_pass(""),            "roles":["supervizor"]}    db.inkscope_users.insert(user)

但是,这段代码是用来创建用户的,注释掉的话初次使用平台时,会因为没有用户而无法登陆。

0 0
原创粉丝点击