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

[BUG]: hashtopolis/agent-python crash on empty lock file #1028

Open
rixvet opened this issue Dec 18, 2023 · 0 comments
Open

[BUG]: hashtopolis/agent-python crash on empty lock file #1028

rixvet opened this issue Dec 18, 2023 · 0 comments
Labels
agent Hashtopolis Agent related bug Something isn't working

Comments

@rixvet
Copy link
Collaborator

rixvet commented Dec 18, 2023

Version Information

hastopolis-agent s3-python-0.7.2.1

Hashcat

No response

Description

Current behaviour

Unable to start client if empty lock.pid file exists:

$ stat lock.pid  | head -2
  File: lock.pid
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
$ python3 hashtopolis.zip
Found existing lock.pid, checking if python process is running...
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "hashtopolis.zip/__main__.py", line 360, in <module>
ValueError: invalid literal for int() with base 10: ''

Expected behaviour
Handle empty lockfile or raise more meaningful error message

@rixvet rixvet added bug Something isn't working agent Hashtopolis Agent related labels Dec 18, 2023
@rixvet rixvet changed the title [BUG]: hashtopolis/agent-python crashed on empty lock file [BUG]: hashtopolis/agent-python crash on empty lock file Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent Hashtopolis Agent related bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant