Closed ntart23 closed 5 years ago
Hi @ntart23 ,
Have you review the Dagda documentation about its CLI usage?
On the other hand, be careful with the sudo
because you look like set the environment variable with a non-sudo user and then you use the CLI with a sudo user. Please, review this issue for more information because it was some similar to your description.
Regards.
Thanks for quickly response . I referenced your answer and reinstalled ubuntu , docker, dagda with root(without sudo) and solved that problem.
but now i have a new problem. after start dagda, i typed [export DAGDA_HOST='127.0.0.1' and export DAGDA_PORT=5000 and python3 dagda.py vuln --init ] in other terminal. but when i typed init_status , it is printed status:initializing over 4hours.
and i referenced #32 , so i typed start dagda -d , but forever initializing and not became updated too.
root@ubuntu:/home/joon/Downloads/dagda-master/dagda# python3 dagda.py vuln --init { "msg": "Accepted the init db request" } root@ubuntu:/home/joon/Downloads/dagda-master/dagda# python3 dagda.py vuln --init_status { "status": "Initializing", "timestamp": "2019-05-28 02:53:58.304500" } root@ubuntu:/home/joon/Downloads/dagda-master/dagda# python3 dagda.py vuln --init_status { "status": "Initializing", "timestamp": "2019-05-28 02:53:58.304500" }
Serving on http://localhost:5000
<2019-05-28 11:53:58,363>
root@ubuntu:/home/joon/Downloads/dagda-master/dagda# netstat -an | grep 5000
tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:36200 127.0.0.1:5000 TIME_WAIT
tcp 0 0 127.0.0.1:36198 127.0.0.1:5000 TIME_WAIT
in this situation, i excuted python3 dagda.py vuln --product openldap --product_version 2.2.20,
then these error came out
{
"err": 500,
"msg": "Internal Server Error"
}
in start dagda terminal
<2019-05-28 16:03:59,356>
everytime i try, i erased and reinstalled mongodb to clean every collections, and my ubuntu RAM is 4GB. i can't find out what's wrong in my environment settings again. help me please !
Hi, I'm running the same issue, additional after some time the vuln --init_status give me the following error: { "status": "Unexpected exception of type ValueError occurred: ('substring not found',)", "timestamp": "2019-06-09 11:05:03.552788" }
I've tried with mongo 3.6 and 4.
Additional on the server I've seen the following error:
<2019-06-09 13:04:12,478>
Hi,
@3lcarry , my last commit should fix the ValueError you had when the init db process was run.
@ntart23 , if you are using the same machine for the MongoDB and the Dagda Server, you need at least 6GB RAM because MongoDB uses a lot of RAM for the indexes creation and the init db process uses RAM in the same way.
Regards.
Thank you @eliasgranderubio, now is working fine
@ntart23 I was having the same error but after initial sync disappeared (but I have 8GB of RAM)
Short description
I was trying to do start dagda with 'sudo python3 dagda start', but nothing happened in ubuntu. almost like #29:failed to start dagda, but #29 not finished and closed
Reproduction steps
and these are output of sudo ps -ef . . root 8313 8188 0 09:01 pts/0 00:00:00 sudo python3 dagda.py start root 8314 8313 0 09:01 pts/0 00:00:01 python3 dagda.py start root 8319 8314 0 09:01 pts/0 00:00:00 /usr/bin/python3 -c from mult joon 8320 7696 0 09:01 tty2 00:00:00 /usr/lib/deja-dup/deja-dup-mo root 8324 8314 0 09:01 pts/0 00:00:00 python3 dagda.py start root 8325 8314 0 09:01 pts/0 00:00:00 python3 dagda.py start root 8326 8314 0 09:01 pts/0 00:00:00 python3 dagda.py start root 10255 2 0 09:02 ? 00:00:00 [kworker/0:1-eve] root 10287 680 0 09:02 ? 00:00:00 containerd-shim -namespace mo root 10316 10287 0 09:02 ? 00:00:03 falco -pc -o json_output=true . . i can't find what's wrong in my environment settings , help me
On which platforms did you notice this:
Please complete the following information: