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] header_cleanser fails in running in openshift #557

Open
1 of 2 tasks
dtsuzuku-ibm opened this issue Aug 30, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] header_cleanser fails in running in openshift #557

dtsuzuku-ibm opened this issue Aug 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dtsuzuku-ibm
Copy link
Collaborator

Search before asking

  • I searched the issues and found no similar issues.

Component

Transforms/Other

What happened + What you expected to happen

When running header_cleanser ray image in openshift, I see following error.

Traceback (most recent call last):
  File "/home/ray/header_cleanser_transform_ray_ibm.py", line 15, in <module>
    from header_cleanser_transform_ray import HeaderCleanserRayTransformConfiguration
  File "/home/ray/header_cleanser_transform_ray.py", line 18, in <module>
    from header_cleanser_transform import HeaderCleanserTransformConfiguration
  File "/home/ray/python-transform/src/header_cleanser_transform.py", line 23, in <module>
    from scancode import api
  File "/home/ray/anaconda3/lib/python3.10/site-packages/scancode/__init__.py", line 16, in <module>
    from commoncode import fileutils
  File "/home/ray/anaconda3/lib/python3.10/site-packages/commoncode/fileutils.py", line 21, in <module>
    from scancode_config import scancode_temp_dir as _base_temp_dir
  File "/home/ray/anaconda3/lib/python3.10/site-packages/scancode_config.py", line 186, in <module>
    _create_dir(scancode_cache_dir)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/scancode_config.py", line 52, in _create_dir
    os.makedirs(location)
  File "/home/ray/anaconda3/lib/python3.10/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/home/ray/anaconda3/lib/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/ray/.cache/scancode-tk'

we may need to add following lines to Dockerfile

RUN mkdir -p /home/ray/.cache/scancode-tk
RUN chmod -R a+r+w+x /home/ray/.cache/scancode-tk

Reproduction script

Running ray image in openshift.

Anything else

No response

OS

Red Hat Enterprise Linux (RHEL)

Python

3.10.x

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@dtsuzuku-ibm dtsuzuku-ibm added the bug Something isn't working label Aug 30, 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

2 participants