we-cmdb icon indicating copy to clipboard operation
we-cmdb copied to clipboard

启动CMDB后台报错

Open nevinxie opened this issue 7 years ago • 5 comments

描述您遇到的bug
启动CMDB后台报错如下: /data/cmdb/log 2019-08-24 21:20:57.439 ERROR 8 --- [0.0-8080-exec-9] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServle t] in context with path [/cmdb] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [index.html], template might not exist or might not be accessible by any of the configured Template Resolvers] with ro ot cause

org.thymeleaf.exceptions.TemplateInputException: Error resolving template [index.html], template might not exist or might not be accessible by a ny of the configured Template Resolvers at org.thymeleaf.engine.TemplateManag

如何重现 按照安装文档进行部署,访问CMDB主页 https://github.com/WeBankPartners/we-cmdb/blob/master/cmdb-wiki/docs/install/wecmdb_install_guide.md

预期行为 成功访问主页

截图

附加

nevinxie avatar Aug 24 '19 17:08 nevinxie

cmdb_ui中的pom.xml在国内下包的问题,尝试切换国内的npm registry解决

brankbao avatar Aug 25 '19 05:08 brankbao

目前后台不报错了,但是依旧拒绝访问,如下: image

nevinxie avatar Aug 26 '19 15:08 nevinxie

我的cmdb.cfg如下: #cas cas_url=http://129.28.200.175:8443/cas

#cmdb-core cmdb_server_ip=129.28.200.175 cmdb_server_port=8080 cmdb_image_name=we-cmdb:d21968b cmdb_ip_whitelists=129.28.200.175

#database database_image_name=cmdb-db:dev database_init_password=mysql

其中129.28.200.175为云主机的外网IP

nevinxie avatar Aug 26 '19 15:08 nevinxie

@brankbao 谢谢

nevinxie avatar Aug 26 '19 15:08 nevinxie

这个问题确认是cas server没起来,上去看的时候,free的内存已经很低了,建议先使用echo 命令释放部分内存,再restart cas容器,我再找找有没有更合适的cas容器 image

brankbao avatar Aug 27 '19 01:08 brankbao