GKE + google filestore share folder not readable

Hi, hopefully a quick one:
After setting up the basics by following Z2JH, I set up a google filestore volume as a fileshare. It gets mounted at /home/jovyan/shared. However, it appears to be read-only since I’m getting Permission denied: shared/Untitled.ipynb when I log in and try to create a notebook in the folder.
The entry in config.yaml is

singleuser:
  storage:
    extraVolumes:
      - name: jupyterhub-shared
        persistentVolumeClaim:
          claimName: fileserver-claim
    extraVolumeMounts:
      - name: jupyterhub-shared
        mountPath: /home/jovyan/shared

I create the pv with

apiVersion: v1
kind: PersistentVolume
metadata:
  name: fileserver
  namespace: jhub
spec:
  capacity:
    storage: 1T
  accessModes:
  - ReadWriteMany
  nfs:
    path: /if_hub_share
    server: x.x.x.x

and the pvc with

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: fileserver-claim
  namespace: jhub
spec:
  accessModes:
  - ReadWriteMany
  storageClassName: ""
  resources:
    requests:
      storage: 1T

Check the owner/group/permissions of the directory, is it writeable by the jovyan UID?

1 Like

Opening a terminal and seeing the output from ls -al should give you the answer to that.

ls -al gives
drwxr-xr-x 4 root root 4096 Aug 30 21:51 shared

Thanks @manics and @Chico_Venancio. I was able to fix perms by creating a GCE VM instance, mounting the filestore nfs
sudo mount x.x.x.x:/if_hub_share /mnt
and making it writable for all users
sudo chmod a+w /mnt

2 Likes