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

Tmp file elimination #4

Open
GemmaTuron opened this issue Apr 8, 2022 · 3 comments
Open

Tmp file elimination #4

GemmaTuron opened this issue Apr 8, 2022 · 3 comments

Comments

@GemmaTuron
Copy link
Member

Describe the bug
Not all tmp files are eliminated when running the pipeline, hence they get try to get overwritten if a different user runs zairachem in the same workstation without a restart. As they are created by another user, they cannot be overwritten.

To Reproduce
Steps to reproduce the behavior:

  1. Use a workstation with two users
  2. Run Zairachem with user 1
  3. Change user
  4. Run Zairachem with user 2

Expected behavior
If all tmp files were deleted after running zairachem both users could use it without need to reboot. Probably not super prioriotary to solve

Screenshots
PermissionError: [Errno 13] Permission denied: '/tmp/ersilia-3g2uz61d'
In particular, there were 2 files still existing without global edit permissions:
drwx------ 2 gturon gturon 4096 feb 19 12:53 ersilia-3g2uz61d

Desktop (please complete the following information):

  • Ubuntu 22.04
@miquelduranfrigola
Copy link
Member

OK this is an ersilia issue. Can you give the full error?

@ferranroure
Copy link

It seams that as you are writing in a system folder without root privileges, the only one can manage this file is you. Without having the complete picture, the quickest way could be change the permissions of the file once is created with something like this:
https://www.adamsmith.haus/python/answers/how-to-change-file-permissions-in-python

However, a good practice could be delete the files that are created in the directory if they are not going to be used anymore, to avoid this kind of problems.

Some thoughts about /tmp folder that maybe helps on choose the way to follow.

https://www.fosslinux.com/41739/linux-tmp-directory-everything-you-need-to-know.htm

I hope this helps a bit :P

cheers!

@miquelduranfrigola
Copy link
Member

It does help @ferranroure, thanks! Will post here an update once we've solved the issue

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

3 participants