infrastructure: [Support] LIS: Admins cannot write to shared-readwrite folder
The Freshdesk ticket link
https://2i2c.freshdesk.com/a/tickets/1349
Ticket request type
Feature Request
Ticket impact
🟧 High
Short ticket description
Matthew needs to write a dataset to the shared-readwrite folder but does not have the correct permissions, despite being an admin.
I then used deployer exec homes to move the dataset (which had been added to Matthew’s home dir) into shared-readwrite, but it is not visible via the shared folder when I log in to my server.
The dataset needs to be available by 13:30 GMT on Monday.
(Optional) Investigation results
I am also suffering the same permissions error 😕
jovyan@jupyter-sgibson91:~$ mkdir -p shared-readwrite/test
mkdir: cannot create directory ‘shared-readwrite/test’: Permission denied
jovyan@jupyter-sgibson91:~$ sudo mkdir -p shared-readwrite/test
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
jovyan@jupyter-sgibson91:~$
I used the following command
deployer exec homes 2i2c-uk lis
This gave me a shell with the home directories mounted.
I found Matt’s home directory and the data/acsids directory he mentioned, and used the following command to copy it into shared-readwrite
# From within Matt's home dir
cp -r data/acsids shared-readwrite
An ls showed the folder was now there
root@2i2c-uk-lis-shell:/home/matthew-2dbrett# ls shared-readwrite/
acsids
I then restarted my server on the lis hub, but could not find the folder in the shared-readwrite or shared folders, I don’t know what’s going on here 😕
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (16 by maintainers)
I ran
kubectl get pod -o yamlagainst my own server and could not find any mention of shared-readwrite in the manifest, which I should have because I am an admin. So I think something is wrong with the mounting of the shared-readwrite folder for admins.Pod manifest
(EDIT: added a new line before code block to ensure it rendered correctly)