Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with running most scripts based on file dependency locations #17

Open
jaw2ay opened this issue Dec 17, 2021 · 1 comment
Open

Comments

@jaw2ay
Copy link

jaw2ay commented Dec 17, 2021

I want to set up the db locally, attempted to run Packetforwader.py
I get this error
Traceback (most recent call last):
File "PacketForwarderCollector.py", line 7, in
from auditing.datacollectors.utils.PacketPersistence import save
File "/home/jack/laf/auditing/datacollectors/utils/PacketPersistence.py", line 2, in
import auditing.db.Service as db_service
File "/home/jack/laf/auditing/db/init.py", line 16, in
DB_HOST = os.environ["DB_HOST"]
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'DB_HOST'

I cant seem to find an easy way to build the DB schema. Is there a quick solution for this locally?

@matiassequeira
Copy link
Collaborator

Hello, sorry for the delay. A couple of questions:

  • Are you using the tool locally, or with Docker?
  • If trying to run it without Docker, are you trying to use Postgres or SQLite?

I highly recommend you using Docker, since it requires less configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants