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

Failed to get rootless runtime dir #269

Closed
tbazilegith opened this issue Sep 5, 2023 · 2 comments
Closed

Failed to get rootless runtime dir #269

tbazilegith opened this issue Sep 5, 2023 · 2 comments

Comments

@tbazilegith
Copy link

Hi,
Describe the bug
Installed pgap 2023-05-17.build6771, below is my directory
input-2023-05-17.build6771 pgap_2023-05-17.build6771.sif pgap.py test_genomes test_genomes-2023-05-17.build6771 VERSION
To Reproduce
I ran the test,
./pgap.py -r -o results test_genomes/MG37/input.yaml

I had this issues
WARN[0000] Failed to get rootless runtime dir for DefaultAPIAddress: lstat /run/user/6210: no such file or directory
Error: creating events dirs: mkdir /run/user/6210: permission denied
Traceback (most recent call last):
File "/user/repos/ncbi/pgap/./pgap.py", line 1018, in main
retcode = p.launch()
File "/user/repos/ncbi/pgap/./pgap.py", line 488, in launch
self.record_runtime(f)
File "/user/repos/ncbi/pgap/./pgap.py", line 417, in record_runtime
result = subprocess.run(cmd, stdin=subprocess.DEVNULL, check=True, stdout=subprocess.PIPE)
File "/apps/conda/4.12.0/lib/python3.10/subprocess.py", line 524, in run

Expected behavior
A clear and concise description of what you expected to happen.

Software versions (please complete the following information):

  • OS: [e.g. CentOS 7, Windows 10, etc.]
  • pgap.py --version, or docker image version.
  • Docker (or other container runner) version. [e.g. docker --version]

Log Files

Docker command: /usr/bin/podman run -i --rm --volume /user/repos/ncbi/pgap/input-2023-05-17.build6771:/pgap/input:ro,Z --volume /user/repos/ncbi/pgap/test_genomes/MG37:/pgap/user_input:Z --volume /blue/bphl-/user/repos/ncbi/pgap/test_genomes/MG37/pgap_input_5ksvccmq.yaml:/pgap/user_input/pgap_input.yaml:ro,Z --volume /scratch/local/8947500:/tmp:rw --volume /user/repos/ncbi/pgap/results:/pgap/output:rw,Z docker.io/ncbi/pgap:2023-05-17.build6771 cwltool --timestamps --debug --disable-color --preserve-entire-environment --outdir /pgap/output pgap/pgap.cwl /pgap/user_input/pgap_input.yaml
Additional context

Thanks!
TJ

@azat-badretdin
Copy link
Contributor

Thank you for your report, TJ!

The issue seems to be related to specifics of your podman installation. It is a bit puzzling that a read-only command that executes cat under a podman call produces what seems to be a write operation (mkdir).

We will have a look and discuss what we can do here.

@azat-badretdin
Copy link
Contributor

It is unlikely that we can do anything here on our side, the mentioned directory does not resemble anything that we used.

I would suggest to reinstall Podman or reset it in some other way to see if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants