Skip to content

An instance of BTG is already running #37

@dspruell-s01

Description

@dspruell-s01

I started a job in BTG which output errors:

$ ~/venv.d/btg/bin/btg zief.pl
    ____ ____________
   / __ )_  __/ ____/
  / __  |/ / / / __  
 / /_/ // / / /_/ /  
/_____//_/  \____/ v2.2

Every IOCs have been enqueued, BTG is processing ...

Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
  File "/Users/darrenspruell/venv.d/btg/lib/python3.7/site-packages/BTG/lib/run_worker.py", line 19, in <module>
  File "/Users/darrenspruell/venv.d/btg/lib/python3.7/site-packages/BTG/lib/run_worker.py", line 19, in <module>
  File "/Users/darrenspruell/venv.d/btg/lib/python3.7/site-packages/BTG/lib/run_worker.py", line 19, in <module>
    from redis import Redis
ModuleNotFoundError: No module named 'redis'
    from redis import Redis
ModuleNotFoundError: No module named 'redis'
    from redis import Redis
ModuleNotFoundError: No module named 'redis'
Traceback (most recent call last):
  File "/Users/darrenspruell/venv.d/btg/lib/python3.7/site-packages/BTG/lib/run_worker.py", line 19, in <module>
    from redis import Redis
ModuleNotFoundError: No module named 'redis'
Traceback (most recent call last):
  File "/Users/darrenspruell/venv.d/btg/lib/python3.7/site-packages/BTG/lib/poller.py", line 21, in <module>
    from redis import Redis
ModuleNotFoundError: No module named 'redis'
Traceback (most recent call last):
  File "/Users/darrenspruell/venv.d/btg/lib/python3.7/site-packages/BTG/lib/hypervisor.py", line 21, in <module>
    from redis import Redis
ModuleNotFoundError: No module named 'redis'

(redis module is installed, with pip install -r requirements.txt).

I did a Ctrl-C to terminate that query.

Any future query then returns:

$ ~/venv.d/btg/bin/btg 8.8.8.8
    ____ ____________
   / __ )_  __/ ____/
  / __  |/ / / / __  
 / /_/ // / / /_/ /  
/_____//_/  \____/ v2.2

An instance of BTG is already running, we will wait 30s or until its completion
[MAIN][FATAL_ERROR] We have reached maximum waiting time, BTG is closing ...

BTG seems unusable now, as this is the same result hours later. Is a statefile or lockfile of some kind orphaned? Any solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions