DataSync Task unavailable : mount.nfs: access denied by server while mounting

0

I am consistently unable to start a Datasync task to transfer from a local NAS (Synology) to s3.

Tried dozen of times with slight changes, NFS versions, squash options, agent reboot, etc... with no success.

The tasks all have the unavailable status, with an error message "mount.nfs: access denied by server while mounting..."

Setup:

  • DataSync agent running as a KVM VM on ubuntu 20.04 LTS
  • DataSync agent connected
  • NFS share on a Synology NAS on the local network
  • NFS share permissions provided for the agent IP (and even for the local network)
  • DataSync agent connectivity and NFS connectivity tests are all successful
  • mounting the NFS share on ubuntu 20.04 LTS works perfectly

Could you please help? What is going on?

asked 2 years ago2189 views
3 Answers
0

DataSync mounts NFS servers as the root user (UID and GID = 0). It is recommended to enable no_root_squash on your NFS server to avoid permission issues. Relevant links:

AWS
Jeff_B
answered 2 years ago
0

SOLVED! FYI the issue was a combination of factors in the NFS share permissions, this config finally worked:

  • you have to allow the DataSync agent host IP, not the agent VM IP
  • non privileged ports (>1024) are necessary for the DataSync agent (although not necessary for ubuntu clients)
  • Squash : no mapping
  • Synology NAS NFS permissions behave strangely if there are IP overlaps accross permissions, avoid overlaps
answered 2 years ago
0

Hi there, I am trying the same scenario. Thanks for the configuration tips on Synology DSM. But I am still missing something.

Still getting the error "mount.nfs: access denied by server while mounting"

Please, any other relevant configuration on DSM or DataSync Agent to access the mounted shared folder in Synology?

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions