Open folliefollie721 opened 4 years ago
Hi @folliefollie721 , looks like it's a bug in Openpai VSCode Client
, we only config the mount command for win32
and darwin
.
But there's a way to work around:
$ sudo apt-get update && apt-get install -y nfs-common
$ sudo mkdir -p /mnt/nfsData
$ sudo mount <NFS storage address>:/data /mnt/nfsData
.vscode/settings.json
in your workspace):
If you mount the NFS to the address you set before (In config NFS mount point step), you can skip this.{
"pai.storage.nfs.mountPoint": {
"<PAI cluster name>~<storage name>": "/mnt/nfsData"
}
}
STORAGE EXPLORER
or double click the Double click to mount NFS
line.@yiyione Thank you for your reply! I mounted NFS in terminal, and my VSCode settings are as follows:
I got this file list in storage explorer:
But I failed uploading files to the storage.
@folliefollie721, looks like the OpenPAI VSCode Client
don't have write permission to /mnt/nfsData
path.
You can try to open the vscode using sudo
, e.g.
sudo code ~/hello_world/
If still got this error, you can just copy your files to path mnt/nfsData/<path you want to upload>
manually (That's what the vscode client trying to do), e.g.
cp hello_world.py /mnt/nfsData/<path you want to upload>
And we'll try to fix these issues in next release, thank you for your feedback.
OS : ubuntu 18.04 Extension : v0.3.2
When I double clicked the mount point
/mnt/home
, I got this errorMount NFS failed: Unsupport OS.
Is it the system problem or some configure files needed to be added?