intelowlproject / IntelOwl

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

File Not Found Error: daphne.log #2367

Closed nebu10uz closed 1 week ago

nebu10uz commented 3 weeks ago

What happened

For intelowl_daphne container, I get the following error:

image

Environment

  1. OS: Ubuntu-22.04.2

  2. IntelOwl version: v6.0.4

What did you expect to happen

Successfully started Intel Owl.

How to reproduce your issue

Updated Intel Owl to the latest v6.0.4 from 5.x.x and then issued the following command: ./start prod up

Error messages and logs

FileNotFoundError: [Errno 2] No such file or directory: '/var/log/intel_owl/asgi/daphne.log'

However, I verified and the directory and log file are there:

$ ls /var/log/intel_owl/asgi/daphne.log
/var/log/intel_owl/asgi/daphne.log
drosetti commented 3 weeks ago

Hey @nebu10uz thanks for your report, we are going to replicate the bug and respond to you asap

fgibertoni commented 3 weeks ago

Hi @nebu10uz. I was not able to replicate the exact same issue that you mentioned. I found another issue that could be related to yours and fixed it. You can find the fix in develop branch. Can you please move to that branch and try running ./start test up ? if you're missing dependencies try running ./start test up -- --build

nebu10uz commented 3 weeks ago

Hi @nebu10uz. I was not able to replicate the exact same issue that you mentioned. I found another issue that could be related to yours and fixed it. You can find the fix in develop branch. Can you please move to that branch and try running ./start test up ? if you're missing dependencies try running ./start test up -- --build

Hi @fgibertoni, I switched to the develop branch and ran both commands, however, I got errors for both. Thx for helping out.

drosetti commented 1 week ago

It's strange, do you check it exist in the path inside the container ? Because outside the file should be located in /var/lib/docker/volumes/intel_owl_generic_logs/_data/asgi

nebu10uz commented 1 week ago

It's strange, do you check it exist in the path inside the container ? Because outside the file should be located in /var/lib/docker/volumes/intel_owl_generic_logs/_data/asgi

I checked this path and I don't have this directory. Once I created this directory mkdir /var/lib/docker/volumes/intel_owl_generic_logs/_data/asgi I was able to start Intel Owl.

Thanks @drosetti for this information! I was able to resolve this issue.

mlodic commented 1 week ago

great, I'll add a note in the documentation for other users