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

On compression failure, the path for logs is a container-internal path rather than a package-relative path. #602

Open
kirkrodrigues opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kirkrodrigues
Copy link
Member

Bug

As reported by a user on Zulip:

This is a fairly minor bug but I've noticed when compression hits an error the path it says the log file will be at is incorrect.
It says:

2024-11-13 19:52:01,028 [ERROR] [/opt/clp/lib/python3/site-packages/clp_package_utils/scripts/native/compress.py] Compression failed. task 9: See logs /opt/clp/var/log/compression_worker/compression-job-9-task-9-stderr.log

But the real path is:

[clp_installation_dir/lib/python3/site-packages/clp_package_utils/scripts/native/compress.py] Compression failed. task 9: See logs clp_installation_dir/var/log/hostname/compression_worker/compression-job-9-task-9-stderr.log

CLP version

clp-json v0.2.0

Environment

Unknown

Reproduction steps

Compress a non-json file:

sbin/compress.sh etc/clp-config.yml
@kirkrodrigues kirkrodrigues added the bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant