Can I use NFS or SSHFS network disk for Subspace farming?

Issue Report

After mounting the NFS or SSHFS, launch the subspace farmer. But failed to start. If i use local disk everything is fine.

Environment

  • Operating System:
    Ubuntu 22.04 x64
  • Pulsar/Advanced CLI/Docker:
    Run Subspace farmer directly.

Problem

After mounting the NFS shared folder, launch the subspace farmer to use that folder. But failed to start. If i use local disk everything is fine. SSHFS also cannot farming, block at libp2p_swarm step.

[Paste any errors or relevant logs here]
sudo ./subspace-farmer-ubuntu-x86_64-skylake-gemini-3h-2024-mar-11 farm --node-rpc-url ws://192.168.0.11:9944 --listen-on /ip4/0.0.0.0/tcp/30533 --listen-on /ip6/::/tcp/30533 --listen-on /ip4/0.0.0.0/udp/30533/quic-v1 --listen-on /ip6/::/udp/30533/quic-v1 --in-connections 300 --out-connections 100 --pending-in-connections 100 --pending-out-connections 100 --allow-private-ips --reward-address stXXX path=/data/node,size=2GiB
2024-03-14T09:28:41.899678Z INFO subspace_farmer::commands::farm: Connecting to node RPC url=ws://192.168.0.11:9944
Error: Failed to open or create identity: Identity I/O error: Permission denied (os error 13)

Looks like you have issue with Linux permissions, you need to make sure location is writable for the user. I know some users tried to use NFS, but I wouldn’t bet on SSHFS working well.