botherder / kraken

Cross-platform Yara scanner written in Go
GNU General Public License v3.0
330 stars 43 forks source link

Server installation instructions lack details of how to create DB #4

Closed hw8665 closed 5 years ago

hw8665 commented 5 years ago

It might be obvious to an experienced Django dev but I can't work out how to properly populate the database for the server component.

I created a kraken database in MySQL and the user + password to go with it (and updated the relevant parts of .env accordingly) so 'manage.py dbshell' works to connect correctly. I ran 'manage.py migrate' and 'manage.py createsuperuser' so I can log into the admin web UI but the DB lacks the hosts, detections, downloads or heartbeat tables so the hosts, detections and api end-points don't work

Would it be possible to add to the Web Interface instructions a HOWTO on creating the DB tables correctly?

botherder commented 5 years ago

That bit of documentation is lacking, true. This should work:

$ python3 manage.py makemigrations autoruns detections downloads hosts
$ python3 manage.py migrate

That of course requires that you have properly set up the .env file with the database configuration.