本项目因授权问题,暂无法开源。
lanyulei / fiy Goto Github PK
View Code? Open in Web Editor NEW配置管理数据库,即CMDB。
配置管理数据库,即CMDB。
本项目因授权问题,暂无法开源。
录入云资源账号后无法新增同步
如图,没法选择区域,开了F12看也没有看到获取区域的相关请求,资源类型不知道为啥不能填
#5 编辑资源信息报错,最新代码依然有问题
#10 前后端分离部署static/ui/index.html的问题:
需要再项目目录下创建static目录,并注释掉sysrouter.go的
func sysStaticFileRouter(r *gin.RouterGroup, g *gin.Engine) {
r.Static("/static", "./static")
//g.LoadHTMLGlob("static/ui/index.html")
}```
才能正常运行
麻烦补充一下说明和系统运行截图呗,感谢分享
前后端分离部署,启动后端服务报错
panic: html/template: pattern matches no files: static/ui/index.html
你好, 从源码看, 审计日志是业务的service层做DB操作时, 绑定一起进行的.
不知道是否考虑过使用GORM的callback来实现哈? 目前想尝试这样的实现方式.
项目里面的node-sass用的是4.14.x,根据这个https://www.npmjs.com/package/node-sass 得知 .最好用node14版本好一些,建议用docker node:14-alpine 这个镜像来编译,一次性编译通过,有需要的小伙伴可以使用 lz270978971/fiy-ui:latest 这个镜像,源码默认在/root/home 下面,喜欢fiy 项目小伙伴,麻烦点星
演示环境后端是不是挂掉了,接口502了
请问能添加模型继承吗
页面报错:Request failed with status code 502
日志:
2023-04-28 11:32:38 file=middleware/permission.go:27 level=info msgID[15f105f4-f1e9-45dd-a864-fed0cd12e3bd] info:admin method:GET path:/api/v1/cmdb/search
2023/04/28 11:32:38 http: panic serving 127.0.0.1:56686: runtime error: invalid memory address or nil pointer dereference
goroutine 86 [running]:
net/http.(*conn).serve.func1(0xc000364000)
/usr/local/go/src/net/http/server.go:1824 +0x153
panic(0x170c280, 0x3ec2540)
/usr/local/go/src/runtime/panic.go:971 +0x499
fiy/common/middleware.CustomError.func1(0xc00009e4b0)
/zysz/fiy/common/middleware/customerror.go:45 +0x613
panic(0x170c280, 0x3ec2540)
/usr/local/go/src/runtime/panic.go:965 +0x1b9
github.com/olivere/elastic/v7.(*Client).PerformRequest(0x0, 0x1c0e208, 0xc0000ba000, 0x19e401a, 0x4, 0xc000428340, 0x1b, 0xc002764f60, 0x16fd360, 0xc002764f90, ...)
/root/go/pkg/mod/github.com/olivere/elastic/[email protected]/client.go:1312 +0xed
github.com/olivere/elastic/v7.(*SearchService).Do(0xc002a51360, 0x1c0e208, 0xc0000ba000, 0xc000639340, 0x1, 0x1)
/root/go/pkg/mod/github.com/olivere/elastic/[email protected]/search.go:627 +0x13c
fiy/pkg/es.EsClientType.Query(0x0, 0x1660260, 0xc002770450, 0x0, 0x1, 0xc000766025, 0x1, 0x4)
/zysz/fiy/pkg/es/es.go:78 +0x416
fiy/app/cmdb/apis/search.GetData(0xc00009e4b0)
/zysz/fiy/app/cmdb/apis/search/search.go:36 +0x185
.....
希望能补充下相关的使用文档,不然全靠扒代码,太累了。
谢谢!
默认的业务树是通过sql插入的数据,如果新建一棵业务树,页面上没有入口
啥时候出搭建文档啊
本地clone代码后,执行了build.sh install,启动后项目可以正常打开,但是数据库里没有表和数据
有没有在用的朋友分享一个sql文件
通过脚本跑起来后,点登陆出现服务器错误。看后端那里也没任何告警
报没有索引
只能同步100条数据。
修改ecs.go
if response.TotalCount > 0 {
for i := 0; i < response.TotalCount/100+1; i++ {
request.PageSize = "100"
+ pageNumber := fmt.Sprintf("%d", i+1)
+ request.PageNumber = requests.Integer(pageNumber) // 设定请求的PageNumber
r, err := ecsClient.DescribeInstances(request)
if err != nil {
log.Errorf("查询ECS实例列表失败,%v", err)
return err
}
ecsList = append(ecsList, r.Instances.Instance...)
}
}
以上可解决ecs数量超过100同步不全的bug
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.