Solve the “nfs: server 127.0.0.1 not responding” error on Amazon EFS with precise commands, network checks, and mount configurations. Our Live Support Team is always here to help you.
How to Resolve nfs: server 127.0.0.1 not responding
Working with Amazon EFS can simplify storage, but occasionally, you might run into the error nfs: server 127.0.0.1 not responding. This issue happens when your mount command or /etc/fstab points to the local machine instead of the correct EFS DNS endpoint. Understanding why it occurs and the exact corrections can save hours of troubleshooting.

An Overview
Understanding Network File System (NFS)
NFS is a client-server protocol that allows you to access files on a remote system as if they were local. The client needs NFS client software, and the remote system requires an NFS server. Both systems use TCP/IP (or UDP for older versions) to transmit files.
Why “nfs: server 127.0.0.1 not responding” Appears
Several factors can trigger this error. Primarily, it is due to incorrect mount targets or DNS names. In addition, network configuration issues or DNS resolution failures can prevent the NFS client from reaching the Amazon EFS server.
Confirm Network Connectivity
To ensure the client can reach the EFS server, run:
telnet efs-mount-target-IP-address 2049
Example:
ec2-user@ip-172-31-8-105 ~
telnet 172.31.11.149 2049
Trying 172.31.11.149...
Connected to 172.31.11.149.
Escape character is '^'.
If the connection fails, check:
- The security group attached to your EFS allows inbound traffic on port 2049 from the client’s security group.
- DNS correctly resolves the EFS mount target IP address.
Additionally, unexpected reboots or high resource usage can interfere with mounts. Monitor your EC2 instance with CloudWatch metrics:
- CPUUtilization
- Network packets in/out
- Network throughput
Tools like atop, sar, nload, and iftop can help pinpoint spikes or micro-bursting causing brief network issues. Adjust workloads or upgrade instances for high performance.
Mount Amazon EFS Without Errors

Check Kernel Version
uname -r
Ensure it is version 4.3 or newer:
6.1.97-104.177.amzn2023.x86_64
Correct Mount Command
Improper mount options are another common cause. Use the following:
sudo mount -t nfs -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport <mount-target-ip>:/ <mount-point>
Make sure to replace <mount-target-ip> and <mount-point> with your EFS mount target and desired directory. This ensures the NFS client communicates properly and avoids pointing to 127.0.0.1.
[If needed, Our team is available 24/7 for additional assistance.]
Conclusion
The nfs: server 127.0.0.1 not responding error is almost always caused by incorrect mount targets, DNS resolution failures, or network misconfigurations. By verifying security groups, checking network metrics, confirming the kernel version, and using the correct mount command with noresvport, you can resolve the issue reliably. Transitioning your configuration from localhost to the EFS DNS endpoint is key.
Remember, correct network monitoring and resource checks not only fix this issue but also prevent it from recurring during high traffic or CPU-intensive periods. Following this approach ensures your NFS mounts operate smoothly and efficiently without interruption.
