[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

MySQL not working #555

Open
umardraz opened this issue Apr 12, 2022 · 0 comments
Open

MySQL not working #555

umardraz opened this issue Apr 12, 2022 · 0 comments
Assignees
Labels

Comments

@umardraz
Copy link

Hi I am trying to configure Nettacker with mysql database, but it is not working. here is my config

def nettacker_database_config():
    return {
        "DB": "mysql",
        "DATABASE": "nettacker",
        "USERNAME": "owasp",
        "PASSWORD": "mypasswd",
        "HOST": "localhost",
        "PORT": "3306"
    }

And here is the error that appear whenever submit new scan


Process Process-1:1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/root/Nettacker/core/scan_targers.py", line 114, in start_scan_processes
    options.targets = expand_targets(options, scan_unique_id)
  File "/root/Nettacker/core/targets.py", line 97, in expand_targets
    multi_processor(
  File "/root/Nettacker/core/scan_targers.py", line 72, in multi_processor
    remove_old_logs(
  File "/root/Nettacker/database/db.py", line 130, in remove_old_logs
    session.query(HostsLog).filter(
AttributeError: 'bool' object has no attribute 'query'

Note: the mysql database is empty there is no table in it

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

No branches or pull requests

2 participants