Code Monkey home page Code Monkey logo

Comments (4)

JohnnyTTzhu avatar JohnnyTTzhu commented on July 22, 2024

这个报错nearg1e 在v0.4.3的版本已经修复了。虽然是报错了,但是命令还是执行了是吧

from yulong-hids-archived.

storyskya avatar storyskya commented on July 22, 2024

报错了,并没有执行,而且这个报错的触发前提,就是将告警加入白名单时失败

from yulong-hids-archived.

neargle avatar neargle commented on July 22, 2024

@JohnnyTTzhu 感谢解答。
这个问题和 JohnnyTTzhu 遇到不是一个问题.
这个问题以前也出现过,和 @ywolf 讨论过,因为mongodb数据库设计了 "ip", "info", "type", "status", "uptime" 作为唯一值索引。原则上是不会冲突的,现在又冲突了。
建议可以先把这条数据设置成忽略或者到数据库中删除掉该数据。
程序也可以fix,不过目前的方法不好,可以参考,https://github.com/ysrc/yulong-hids/blob/a083b4394020e79258d29d9c6914ce67705012ec/web/models/notice.go#L140

from yulong-hids-archived.

storyskya avatar storyskya commented on July 22, 2024

嗯,确实清空mongo 会恢复,但问题是如果积累时间长了的话,就没法清了

from yulong-hids-archived.

Related Issues (20)

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.