I met this problem last week and it frustrated me for days...Now I found the solution after I spent hours on google, and amazing it works!!!
This issue drove me nuts today for several hours today, to be honest I was pretty close to breaking something! Earlier in the day I had the NFS mount working fine then I created an AMI and booted up another instance from the newly created AMI but in the new instance the mount kept failing. The error looks something like this:
[root@server]# mount -t nfs 192.168.2.1:/dbshare /mnt/dbshare
mount: 192.168.2.1:/dbshare failed, reason given by server: Permission denied
According to the error you would think that I have a configuration issue so I changed everything that I could think of within /etc/exports
My /etc/exports originally looked like this:
/dbshare 192.168.2.2(rw,sync) (where 192.168.2.2 is the client where I am performing the mount)
I changed it to something more open like this with no luck:
/dbshare 192.168.0.0/255.255.0.0(rw,sync)
I started looking around the logs on the server in /var/log/messages and found that it was authenticating fine
Jun 11 19:04:00 servername mountd[5222]: authenticated mount request from 192.168.2.2:736 for /dbshare (/dbshare)
I was really frustrated at this point and I had already spent an hour on Google looking for the answer. I found another answer but the website was down, luckily the cached version on Google came to the rescue.
The ANSWER:
The problem was that the special nfsd file system that mounts to /proc/fs/nfsd wasn't mounted. I'm not sure how it gets mounted (maybe rc.sysinit does it?), but I tool the advice from the forum entry and added an entry to /etc/fstab
none /proc/fs/nfsd nfsd auto,defaults 0 0
then ran mount -a
After this the mount worked fine. I hope that someone finds this helpful.
分享到:
相关推荐
③重新设置Server-U帐号和目录访问里的文件路径(如果还不行,尝试下面操作); ④删除用户,重新建。 原创 SU整理(FTP)收藏 整理如下: 1开头-成功 2开头-成功 3开头-权限问题 4开头-文件问题 5开头-服务器问题 ...
2. **错误:mount: 192.168.1.230:/nfs failed, reason given by server: permission denied** - 原因:共享目录的权限设置不正确。 - 解决方法:检查NFS服务器的基本权限设置,确保为读/写。 3. **错误:rpcbind...
关于操作db文件导出Failed to pull selection: open failed: Permission denied问题的处理方法在遇到这个问题之前,你可能连data这个目录都打不开。。 对此,解决办法是去到安卓的adb目录\Android\sdk\platform-...
一、前言 最近在学习安卓,也碰到了各种各样的bug,这次的这个bug折腾了我一整个晚上!!所以整理出来让大家少栽跟头… 二、问题背景 实现一个简单的从模拟器的SD卡中读取数据实现音乐的播放暂停和停止 ...
Permission denied: 出现的原因的是:没有权限进行读、写、创建文件、删除文件等操作。 解决方法:输入命令 sudo chmod -R 777 /工作目录, 例如:sudo chmode -R 777 /home/HDD,此时就可以在该路径下进行一系列...
### SQL Plus libclntsh.so.11.1 Permission Denied 错误解决方法 #### 问题背景 在尝试运行 SQL Plus 工具时,可能会遇到一个错误提示:“cannot restore segment prot after reloc: Permission denied”,这通常...
在Linux环境下,特别是当错误信息显示为"(13: Permission denied)"时,通常与文件权限、索引文件缺失或SELinux策略有关。下面将详细介绍这三个可能导致403 Forbidden错误的原因及相应的解决办法。 一、缺少索引文件...
标题中的"frida-server-16.0.13-android-arm64"指的是Frida Server的一个特定版本,这是用于Android设备的动态代码插桩工具。Frida是由 Ole André Vadla Rønning 开发的一款强大的开源软件,它允许开发者在运行时...
2018/07/22 00:46:36 [crit] 15890#15890: *74 connect() to unix:/root/jianshuvue/jianshu.sock failed (13: Permission denied) while connecting to upstream, client: 120.42.13.98, server: jianshu....
在Nginx的使用过程中,可能会遇到两种常见的错误:`Permission denied` 和 `Connection refused`。这些错误会导致Nginx无法正常处理客户端的请求,从而影响网站或服务的可用性。下面将详细介绍这两种错误的含义、...
### Apache启动错误Permission denied: httpd: could not open error log file解决方法 #### 系统环境 - **操作系统**: CentOS 6.3 (x64) - **Apache版本**: httpd-2.2.15-30.el6.centos.x86_64 - **安装方式**: ...
ERROR org.apache.hadoop.mapred.TaskTracker: Can not start task tracker because java.io.IOException: Failed to set permissions of path: \tmp\hadoop-admin \mapred\local\ttprivate to 0700 at org.apache...
首先我要解释一下,很多时候出现这个问题,并不是你的文件有毛病,很可能是你代码读取的路径不对,这就要追究到代码本身。批量转化可以在json_to_dataset文件里直接运行代码实现。这个思路还要感谢我的一个师兄。...
在使用手机时,有时我们可能会遇到“权限被拒绝”(Permission Denied)的问题,尤其是在尝试图案解锁时。这通常是由于安全设置、系统权限或第三方应用程序冲突导致的。以下是一些详细的解决策略: 1. **检查安全...