Directory disappears in R Studio-server on a GCE VM after I mount a Google Cloud Bucket to it

I used to be able to mount Google Cloud Bucket to a GCE VM and access my data in it when using R-Studio Server in this VM. I am now using a new laptop (but the VM is still the same) and when I mount the bucket in the very same way I used to, R-Studio Server can no longer find the directory where I mounted it. If I unmount the bucket, R-Studio can again find the directory. I am very puzzled why that is the case. What should I do to fix it?

A few more information:

  • My VM is setup for Ubuntu 22.04 and my laptop runs Windows. My previous laptop was running Ubuntu 22.04.
  • I am building my data to /home/my_username/remote/ using gcsfuse -implicit-dirs my-bucket /home/my_username/remote/.
  • In the directory /home/my_username/ there are other directories besides remote. I can access and see them all in R-Studio independently if my bucket is mounted or not.
  • If the bucket is not mounted, if I type ls in the command line when in the /home/my_username/ directory, the remote directories shown in green background and blue letters meaning it is “other-writable directory” while the other directories show in blue letters only, meanning they are just “directory”. Once I build the bucket to remote, it starts showing in blue letters without the green background, just like the other directories (but then I cannot see/access it anymore on R-Studio). I can still access and see the remote directory in the command prompt though. If I cd into it, I can see the directories inside my bucket.
  • When I run the command ls -la /home/my_username/remote after having mounted the bucket I get the following output:
total 0
drwxr-xr-x 1 my_username my_username 0 May 22 05:38 processed_input
drwxr-xr-x 1 my_username my_username 0 May 22 05:38 processed_input_reproduction
drwxr-xr-x 1 my_username my_username 0 May 22 05:38 raw_input

Read more here: Source link