# Permissions for installing packages on julia in slurm cluster

**URL:** https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246
**Category:** General Usage
**Tags:** package, cluster
**Created:** [June 2, 2021, 4:10am UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246 "2021-06-02T04:10:40Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![JDA](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JDA](https://discourse.julialang.org/u/JDA)
#### Post date: [June 2, 2021, 4:10am UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/1 "2021-06-02T04:10:40Z")

</div>

Hello, I am having some issues with permissions getting julia started on a slurm cluster. I could use some assistance, if possible. The issue is explained here  
[https://stackoverflow.com/questions/67794194/permissions-for-installing-packages-on-julia-in-slurm-cluster](https://stackoverflow.com/questions/67794194/permissions-for-installing-packages-on-julia-in-slurm-cluster)

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [June 2, 2021, 7:42am UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/2 "2021-06-02T07:42:44Z")

</div>

Well… the first thing I would try is to start an interactive job, ie a shell session on one of the compute nodes

srun -n 1 --pty bash -i

Can you open the Julia REPL in this session?

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [June 2, 2021, 7:46am UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/3 "2021-06-02T07:46:17Z")

</div>

Depending on the cluster architecture, running programs from your home directory is frwoned upon. Usually /home is a small sized filesystem mounted by NFS. There should be a faster filesystem for programs to use. Maybe something like BeeGFS or Lustre

AHA - do you have a cluster where /home on the head node is an NFS mount and /home on the cluster nodes is something entirely different? that would be weird but might explain what you are seeing?

Let’s start that interactive job and find out.  
Also please ask if there is a large or fast filesystem you which you should use.

---

<div class="post-metadata">

### Author: ![JDA](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JDA](https://discourse.julialang.org/u/JDA)
#### Post date: [June 2, 2021, 1:51pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/4 "2021-06-02T13:51:29Z")

</div>

Although I did run julia from the home directory for testing, or to try and figure out this permissions problem, it’s not the main way I’m running julia. I used the directions here [Installing apps in a Slurm cluster on Compute Engine &nbsp;|&nbsp; Cloud Architecture Center &nbsp;|&nbsp; Google Cloud](https://cloud.google.com/architecture/installing-apps-slurm-clusters-compute-engine) to install julia in the apps folder.

Starting julia on the node (interactive or not) gives error  
ERROR: SystemError (with /home/\<my\_user\_name\>/.julia/logs): mkdir: Permission denied

Actually, I do not see that the folder .julia/logs even exists in /home/\<my\_user\_name\>. The /home/\<my\_user\_name\>/.julia directory only contains folders lib and v0.4

I’m not sure how to proceed

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [June 2, 2021, 2:42pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/5 "2021-06-02T14:42:06Z")

</div>

@JDA I am betting that you are using a cluster where the home directory is not the same filesystem as on the cluster login nodes.  
On a login node run df .  
And do the same when you are running an interactive session

It could also be that for some reason the cluster mounts your home directory as read-only - however I have never seen that in the wild!

---

<div class="post-metadata">

### Author: ![JDA](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JDA](https://discourse.julialang.org/u/JDA)
#### Post date: [June 2, 2021, 3:30pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/6 "2021-06-02T15:30:17Z")

</div>

Ok, what am I looking for, with regards to the df . output?

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [June 2, 2021, 3:33pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/7 "2021-06-02T15:33:04Z")

</div>

Is the filesystem the same size?  
mount | grep home might also be useful

---

<div class="post-metadata">

### Author: ![JDA](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JDA](https://discourse.julialang.org/u/JDA)
#### Post date: [June 2, 2021, 3:51pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/8 "2021-06-02T15:51:38Z")

</div>

I guess i am not sure. In my user home directory df . gives

Filesystem 1K-blocks Used Available Use% Mounted on  
/dev/sda1 23436730368 15873240736 7563489632 68% /home

and from a node gives

Filesystem 1K-blocks Used Available Use% Mounted on  
cluster-name:/home 23436730368 15873240064 7563490304 68% /home

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [June 2, 2021, 4:43pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/9 "2021-06-02T16:43:28Z")

</div>

That looks like the same filesystem. On the cluster login node it is directly mounted as a partition on disk /dev/sda  
On the node it looks like an NFS mount of the same

Stupid question - if you start an interactive slurm session can you create a new file by for example:  
touch testfile

ALso run the commands ‘whoami’ and ‘id’ on both the cluster head node and during an interactive slurm session

---

<div class="post-metadata">

### Author: ![JDA](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JDA](https://discourse.julialang.org/u/JDA)
#### Post date: [June 2, 2021, 4:55pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/10 "2021-06-02T16:55:47Z")

</div>

touch testfile works

whoami and id gives me back my username. id also shows I am part of the wheel group

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [June 2, 2021, 4:59pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/11 "2021-06-02T16:59:13Z")

</div>

Try mkdir .julia/logs then

---

<div class="post-metadata">

### Author: ![JDA](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JDA](https://discourse.julialang.org/u/JDA)
#### Post date: [June 2, 2021, 5:11pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/12 "2021-06-02T17:11:00Z")

</div>

Permission denied, any suggestions on how to resolve it?

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [June 2, 2021, 5:56pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/13 "2021-06-02T17:56:57Z")

</div>

As you are in the wheel group I think that the filleystem is exported with root squash enabled.  
I would ask the cluster administrator to change your group.  
It does seem strange though that your primary group is wheel

---

<div class="post-metadata">

### Author: ![JDA](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@JDA](https://discourse.julialang.org/u/JDA)
#### Post date: [June 2, 2021, 8:25pm UTC](https://discourse.julialang.org/t/permissions-for-installing-packages-on-julia-in-slurm-cluster/62246/14 "2021-06-02T20:25:40Z")

</div>

I’m just a user not an administrator. Since I am the only one using julia on the cluster (that I know of) I was given privileges to install it myself. I will ask about changing the group.
