Skip to content

File extraction decompression fails in clp-text #1711

@quinntaylormitchell

Description

@quinntaylormitchell

Bug

Use clp-text to compress logs, then try to decompress with decompress.sh x. Error appears:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/opt/clp/lib/python3/site-packages/clp_package_utils/scripts/native/decompress.py", line 354, in <module>
    sys.exit(main(sys.argv))
  File "/opt/clp/lib/python3/site-packages/clp_package_utils/scripts/native/decompress.py", line 346, in main
    return handle_extract_file_cmd(parsed_args, clp_home, default_config_file_path)
  File "/opt/clp/lib/python3/site-packages/clp_package_utils/scripts/native/decompress.py", line 252, in handle_extract_file_cmd
    CLP_DB_USER_ENV_VAR_NAME: credentials[ClpDbUserType.CLP].username,
AttributeError: 'dict' object has no attribute 'username'
2025-12-02T16:38:45.845 ERROR [decompress] file extraction failed.

#1655 changed the line that’s failing in native/decompress.py. Decompression with decompress.sh i is unaffected.

CLP version

Commit cb2505d

Environment

Ubuntu jammy

Reproduction steps

Compress logs with clp-text and then attempt to decompress them with decompress.sh x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions