Forbidden (You don't have permission to access /folder on this server)

We recenty bought a Readynas 1100 for addition space for our Web servers.  I mounted the folder from the Readynas via NFS into my webroot and when attempting to access the folder from a browser I get the follow error.:

Forbidden
You don't have permission to access /folder on this server

I mounted the same NFS share onto our other web server and can see the content just fine.  I have compared the httpd.conf and didn't find any significant difference.

I am seeing the following in the apache error logs :  
(5)I/O error: /www/ub/archives2/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
(5)I/O error: access to /archives2 failed

The permission of the .htaccess are the same on both web server. (755)  


I am seeing the following in /var/adm/messages:

nfs: [ID 664466 kern.notice] NFS getattr failed for server NFS server IP: error 1 (RPC: Can't encode arguments)

and

NFS lookup failed for server NFS server IP: error 1 (RPC: Can't encode arguments)

Any help would be greatly appreciated.

Thanks




LVL 5
ubsocAsked:
Who is Participating?
 
Brian UtterbackConnect With a Mentor Principle Software EngineerCommented:
How many groups is the user configured in? NFS has a limit to the number of groups that can be encoded, so that if a user is a member of more than the limit, you will get the "can't encode" error, and the groups memberships will be truncated. If one of the missing groups is the one needed to access a file, you will get permission denied. The same user may be a member of fewer groups on a different system, or the groups may be in a different order, so it is possible for the access to work on a different system.
0
 
omarfaridCommented:
check if you have restrictions from the nfs server side.
0
 
ubsocAuthor Commented:
There are no restriction on the nfs server side.  The web servers have root-level access to the share.  

0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
omarfaridCommented:
what about user id of users on both systems are they same? Is root user also facing the problem?
0
 
ubsocAuthor Commented:
I don't have any issues access the files at the server level.  I only have issues access folder/files through apache.  

0
 
omarfaridCommented:
Then it has to do with Apache config.
0
 
ubsocAuthor Commented:
Do you have any idea what option in the apache config. that would be preventing this?  
0
 
ubsocAuthor Commented:
Do you know what the limits are for group memberships for NFS?  
0
 
Brian UtterbackPrinciple Software EngineerCommented:
16, but that may not be the default limit.
0
 
ubsocAuthor Commented:
The issues was the result of to many groups assigned to the user that was running apache.  Thanks for all you help blu
0
All Courses

From novice to tech pro — start learning today.