question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Putting `dask-worker-space` in `/tmp` is unfriendly on shared systems

See original GitHub issue

Since d59500ea97c02753eac9d42951d9c4a5d4f17685 (#6658), launching workers can fail on shared systems if someone else happens to be running at the same time (since they will have created /tmp/dask-worker-space and we won’t have write permissions).

A friendlier approach would probably be to use tempfile.mkdtemp to create the directory. This has the disadvantage that if a cluster fails and doesn’t clean up, a new run would not clean out the old lock directory.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:23 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
jacobtomlinsoncommented, Aug 19, 2022

HPC users commonly use dask-jobqueue, dask-ssh, dask-mpi and dask-gateway. So if we wanted to handle it downstream those would be the places to do it.

1reaction
crusaderkycommented, Aug 18, 2022

If it’s inside the container things should be fine, no?

Often /tmp is mounted in.

Holy loss of segregation, Batman! Jokes aside, won’t all the containers share the same user on the host VM?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage the Linux /tmp directory like a boss | Enable Sysadmin
The /tmp directory is a temporary landing place for files. Users also have write access to this directory, which can be a bad...
Read more >
Using /tmp/ and /var/tmp/ Safely - Systemd
/tmp/ and /var/tmp/ are two world-writable directories Linux systems provide for temporary files. The former is typically on tmpfs and thus backed by ......
Read more >
What is the difference between /tmp and /var/tmp?
/tmp is meant as fast (possibly small) storage with a short lifetime. Many systems clean /tmp very fast - on some systems it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found