google / turbinia

Automation and Scaling of Digital Forensics Tools
Apache License 2.0
746 stars 163 forks source link

[Bug]: turbiniactl in turbinia-server docker results in invalid choice #1488

Closed kyt999 closed 4 months ago

kyt999 commented 4 months ago

What steps will reproduce the bug?

Follow the documentation outlined in develop local - https://turbinia.readthedocs.io/en/latest/developer/develop-local.html

What is the expected behavior?

No response

What do you see instead?

Step 6 results in an error:

docker exec -ti turbinia-server turbiniactl compresseddirectory -l /evidence/history.tgz usage: turbiniactl [-h] [-q] [-d] [-c CONFIG_FILE] [-o OUTPUT_DIR] [-L LOG_FILE] [-V] [-j JOBS_ALLOWLIST] [-J JOBS_DENYLIST] <command> ... turbiniactl: error: argument <command>: invalid choice: 'compresseddirectory' (choose from 'config', 'celeryworker', 'server', 'api_server')

docker exec -ti turbinia-server turbiniactl 2024-05-31 14:33:44 [INFO] turbinia | Turbinia version: 20240412.1 2024-05-31 14:33:44 [INFO] turbinia | Done.

Additional information

No response

jleaniz commented 4 months ago

Hey apologies for the outdated documentation. you should run turbinia-client submit compresseddirectory --source_path <dir> instead. This is the new client which you can install via pip install turbinia-client

https://turbinia.readthedocs.io/en/latest/user/turbinia-client.html#turbinia-api-cli-tool-turbinia-client

kyt999 commented 4 months ago

No worries. Thanks @jleaniz

The latest turbinia-client results in #1386

pip install turbinia-client==1.0.5 ERROR: Could not find a version that satisfies the requirement turbinia-client==1.0.5 (from versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3) ERROR: No matching distribution found for turbinia-client==1.0.5

jleaniz commented 4 months ago

Check your pip installation, the package is released in pypi: https://pypi.org/project/turbinia-client

kyt999 commented 4 months ago

Found the issue. TY. Newer version of turbinia-client requires-python:>=3.9,<4.0