You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I waited 1 hour (~250MBit network) for it to finish but it is still in state "Initializing". So something isn't working properly here I guess.
The status is now showing an error.
On which platforms did you notice this:
Please complete the following information:
OS: Ubuntu 18.04
Docker version: Latest
Backtrace
Unexpected exception of type TypeError occured: ('documents must be a non-empty list' ) docker.log
Same problem using the local setup on building <Updating RHSA & RHBA collections ...>
<2021-10-19 21:15:09,654> <ERROR> <DagdaServer> <dagda_server> <_init_or_update_db:155> <Unexpected exception of type TypeError occurred: ('documents must be a non-empty list',)>
Traceback (most recent call last):
File "/home/kupfer/git/dagda/dagda/api/dagda_server.py", line 150, in _init_or_update_db
db_composer.compose_vuln_db()
File "/home/kupfer/git/dagda/dagda/vulnDB/db_composer.py", line 92, in compose_vuln_db
self.mongoDbDriver.bulk_insert_rhsa(rhsa_list)
File "/home/kupfer/git/dagda/dagda/driver/mongodb_driver.py", line 112, in bulk_insert_rhsa
self.db.rhsa.insert_many(rhsa_list)
File "/usr/local/lib/python3.8/dist-packages/pymongo/collection.py", line 755, in insert_many
raise TypeError("documents must be a non-empty list")
TypeError: documents must be a non-empty list
Solution
Update README with correct commands / correct way to setup dagda using docker-compose instead of manual install.
1.1. Are the other steps still required? I am talking about: pip install requirements and kernel headers
Update docker-compose with the environment variables or include a .env to be edited
<ERROR> <DagdaServer> <dagda_server> <_init_or_update_db:155> <Unexpected exception of type TypeError occurred: ('documents must be a non-empty list',)>
issue on a CentOS 7 machine using both docker-compose and on host build / setup
Short description
Evaluate Dagda. Therefore I used the docker-compose way to no avail.
Reproduction steps
docker-compose build
docker-compose up -d
docker-compose exec dagda /bin/sh -c 'python dagda.py vuln --init'
´docker-compose exec dagda /bin/sh -c 'python dagda.py vuln --init_status'
Expected results
Get a working state of the database.
Actual results
I waited 1 hour (~250MBit network) for it to finish but it is still in state "Initializing". So something isn't working properly here I guess.
The status is now showing an error.
On which platforms did you notice this:
Please complete the following information:
Backtrace
Unexpected exception of type TypeError occured: ('documents must be a non-empty list' )
docker.log
Same problem using the local setup on building
<Updating RHSA & RHBA collections ...>
Solution
1.1. Are the other steps still required? I am talking about: pip install requirements and kernel headers
3.1. Shutdown is incomplete if these containers are still running!
The text was updated successfully, but these errors were encountered: