The filesystem mounted with dxfuse is "static" and does not update automatically. Therefore, it is a "reflection" of the project at the time when the JupyterLab app (and dxfuse in it) was started.
In order to "refresh" the data, the project needs to be "unmounted" and "mounted" back again. This can be done with the following commands:
Unfortunately it appears that `umount` doesn't work in the terminal in RStudio, as you've found. Thank you for bringing this to our attention - we will make a note of this and work to address this in the future.
For now, one possible work around is to use the terminal in the JupyterLab workstation where you can also use an R notebook.
Comments
7 comments
Yes, I have the same understanding.
The filesystem mounted with dxfuse is "static" and does not update automatically. Therefore, it is a "reflection" of the project at the time when the JupyterLab app (and dxfuse in it) was started.
In order to "refresh" the data, the project needs to be "unmounted" and "mounted" back again. This can be done with the following commands:
$ umount /mnt
$ mkdir -p /mnt
$ /home/dnanexus/dxfuse -readOnly /mnt /home/dnanexus/.dxfuse_manifest.json
@Ondrej Klempir? that solution didn't work for me, please see the attached image. Am I missing something?
If manifest.json is not present on the path, I would try to create one:
# Create a manifest file for dxfuse
echo "{
\"files\" : [],
\"directories\" : [
{
\"proj_id\" : \"$DX_PROJECT_CONTEXT_ID\",
\"folder\" : \"/\",
\"dirname\" : \"/project\"
}
]
}" > .dxfuse_manifest.json
Hi,
This answer is very helpful. I was wondering if anything similar is possible in RStudio. When I try to run `umount /mnt` in the terminal, I get:
"umount: /mnt: umount failed: Operation not permitted."
Hi Rosemary,
Unfortunately it appears that `umount` doesn't work in the terminal in RStudio, as you've found. Thank you for bringing this to our attention - we will make a note of this and work to address this in the future.
For now, one possible work around is to use the terminal in the JupyterLab workstation where you can also use an R notebook.
Thanks!
It's now possible to refresh the mount in a Posit/Rstudio session with the following commands (h/t Hoang on email support):
or if you want a one-liner:
(Make sure you're not currently in the `/mnt` directory when you try to unmount it.)
Please sign in to leave a comment.