intelowlproject / IntelOwl

IntelOwl: manage your Threat Intelligence at scale
https://intelowlproject.github.io
GNU Affero General Public License v3.0
3.82k stars 432 forks source link

api_app_job"."errors", "api_app_job"."file" #112

Closed ghost closed 4 years ago

eshaan7 commented 4 years ago

Hi. It looks like the tables didn't get created in the database for some reason. With docker-compose up running, open another terminal and run this command:

docker exec -ti intel_owl_uwsgi bash

Once inside the docker container run these 2 commands,

python manage.py makemigrations api_app
python manage.py migrate api_app
ghost commented 4 years ago

Thanks Eshaan7

I recieve this after excuting the commands:

intel_owl_celery_worker | File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute intel_owl_celery_worker | return self.cursor.execute(sql, params) intel_owl_celery_worker | django.db.utils.ProgrammingError: relation "token_blacklist_outstandingtoken" does not exist intel_owl_celery_worker | LINE 1: ...ken_blacklist_outstandingtoken"."expires_at" FROM "token_bla...

eshaan7 commented 4 years ago

Ah, sorry my mistake. The correct command is python manage.py migrate. So it picks up models from the entire application.

If it still does not work, I'd recommend you to delete the current containers and local repository and start the installation again. Here's a small gist of installation steps: https://gist.github.com/ninoseki/83d65b020c86f67f822eb50c56756201

ghost commented 4 years ago

Hello @Eshaan7

Thank you so much for your support, unfortunately it didnt work in both ways, Any way, I will check our maybe the problem is of the OS itself, also I will be checking for the newr released.

Regards.

eshaan7 commented 4 years ago

@ibrahim3pf We have released v1.1.0. You can see the changelog and download it here. Follow the installation steps and it should work fine!

I'll be closing this issue now. If you need further support, feel free to re-open this issue or create a new one. :rocket:

ghost commented 4 years ago

I will check it out @Eshaan7 Thanks for the support.