Giter VIP home page Giter VIP logo

Comments (6)

eliasgranderubio avatar eliasgranderubio commented on June 15, 2024

Hi @CaosFR ,

When you type python3 dagda.py start, you will check that four processes are started. Type ps -ef for checking it:

  • EDN listener
  • Docker events daemon monitor
  • Sysdig/Falco monitor
  • Dagda web server

Without shutdown the server (don't type "CTRL+C") from another terminal, you can run python3 dagda.py vuln --init for initializing the database. In this case, you must not get the "[Errno 111] Connection refused".

Please, check it and update me with more details if error persists.

from dagda.

CaosFR avatar CaosFR commented on June 15, 2024

TY for your reply and very sorry for my late response.

When I had type "type python3 dagda.py start" ans I had type "ps -ef" in other terminal I see something like that :

[...}
root 13319 2 0 13:48 ? 00:00:00 [kworker/2:2]
root 13453 12128 13 13:48 pts/0 00:00:00 python3 dagda.py start
root 13457 13453 0 13:49 pts/0 00:00:00 python3 dagda.py start
root 13458 13453 1 13:49 pts/0 00:00:00 python3 dagda.py start
root 13459 13453 2 13:49 pts/0 00:00:00 python3 dagda.py start
root 13479 1014 0 13:49 ? 00:00:00 docker-containerd-shim -namesp
root 13494 13479 0 13:49 ? 00:00:00 /usr/bin/falco
root 13555 12867 0 13:49 pts/1 00:00:00 ps -ef
[...]

Docker events daemon monitor (docker-containerd-shim -namesp), Sysdig/Falco monitor (/usr/bin/falco) and Dagda web server (python3 dagda.py start) look strat but I dont see EDN listener. I have to install them ?

Without shutdown the server, I had run python3 dagda.py vuln --init form another terminal. I dont get " "[Errno 111] Connection refused"." (nice). This time I get this message very quickly:

{
"msg": "Accepted the init db request"
}

It look good but the server dont start and the db dont look like populate. If I type command like "python3 dagda.py vuln --cve_info CVE-2009-2890" I had this message :

{
"err": 404,
"msg": "CVE not found"
}

TY for your help ! :)

from dagda.

eliasgranderubio avatar eliasgranderubio commented on June 15, 2024

Dagda server runs four processes:

  • (EDN listener) root 13453 12128 13 13:48 pts/0 00:00:00 python3 dagda.py start
  • (Docker events daemon monitor) root 13457 13453 0 13:49 pts/0 00:00:00 python3 dagda.py start
  • (Sysdig/Falco monitor) root 13458 13453 1 13:49 pts/0 00:00:00 python3 dagda.py start
  • (Dagda web server) root 13459 13453 2 13:49 pts/0 00:00:00 python3 dagda.py start

EDN listener and Dagda web server processes are Dagda internal features. The other processes watching /usr/bin/falco process and docker-containerd-shim process.

On other hand, python3 dagda.py vuln --init is not a syncronized method, I mean, only the update process is started. You can see if that process has finished with python3 dagda.py vuln --init_status and getting "Updated" state.

from dagda.

CaosFR avatar CaosFR commented on June 15, 2024

Oh I see, so my DAGDA strat correctly.

I have try type "python3 dagda.py vuln --init_status" and I get "Initializing". After more than one hours the state dont change. :[

My network work as well.
I'm a bit lost now.

TY

from dagda.

eliasgranderubio avatar eliasgranderubio commented on June 15, 2024

Step 1. Start Dagda server --> python3 dagda.py start

  • Are you MongoDB running?
  • Are you Dagda server running?
  • Have you any error?

Step 2. Run init database process --> python3 dagda.py vuln --init

Step 3. Check init database process until it ends --> python3 dagda.py vuln --init_status

  • Keep in mind that the init process depends on network and can take several minutes for finishing so be patient.
  • After more than one hour, have you any error? Is your mongoDB empty? What mongodb collections have information?

from dagda.

eliasgranderubio avatar eliasgranderubio commented on June 15, 2024

This issue has not updated for a long time so I close it.

If you can update de information about this issue feel free for reopening it.

from dagda.

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.