GithubHelp home page GithubHelp logo

fiy's Introduction

fiy's People

Contributors

jiang-boyang avatar lanyulei avatar xiaolei-shuai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fiy's Issues

阿里云ECS同步bug

只能同步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

fiy-ui编译问题

项目里面的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

页面报错: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
.....

文档太匮乏了

希望能补充下相关的使用文档,不然全靠扒代码,太累了。
谢谢!

无语中

大佬是认真的吗?没得部署文档,我好不容易用docker-compose部署完成,打开一看是个博客----
image

直接无法登录

通过脚本跑起来后,点登陆出现服务器错误。看后端那里也没任何告警

使用fiy遇到的一些问题和bug!!

录入云资源账号后无法新增同步
image
如图,没法选择区域,开了F12看也没有看到获取区域的相关请求,资源类型不知道为啥不能填

统一搜索不知为啥无响应,且是瞬间返回报错
image

#5 编辑资源信息报错,最新代码依然有问题
image

#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")
}```
才能正常运行

审计日志业务解耦

你好, 从源码看, 审计日志是业务的service层做DB操作时, 绑定一起进行的.
不知道是否考虑过使用GORM的callback来实现哈? 目前想尝试这样的实现方式.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.