In case anyone else runs into this. You can fix this by using NFSv4. There 
are issues with file locking and if you don't have statd running with NFSv3 
to help manage lock status for files then you'll run into these types of 
issues. I was having this same issue and had to update my NFS server to 
ONLY use NFSv4. Once I did this, I didn't have the issue anymore.




On Friday, April 13, 2012 at 8:48:23 AM UTC-7, Bastian wrote:
>
> ok I just gave up using NFS, it's just too much hassle, making sure the 
> ports are static, configuring iptables and then permissions problems... I 
> switched to sshfs and it just worked straight away :)
> Now I don't know if it is a very good option for sharing the user-media 
> folder, any idea?
>
> On Friday, April 13, 2012 11:22:48 AM UTC+2, Bastian wrote:
>>
>> Hi,
>>
>> I have a working Django project and I am trying to add a second server. 
>> In the process I am making an NFS share on one server. The Apache instances 
>> on this server (the NFS host) can write (mostly images) to this directory 
>> but the other server (the NFS client) seems unable. Actually from this 
>> second server I changed the permissions of the share to 777 just to make 
>> sure and still root can write but www-data can only create file, it is 
>> denied the right to write them. Very strange situation that I don't 
>> understand. Searching this group and Google led me to few information. 
>> There is this lock issue thing that I'm not sure to understand if it has 
>> been fixed. Any clue is welcome. I'm using Debian Squeeze, Django 1.3 and 
>> this is the options I use in the export: 
>> rw,sync,no_root_squash,no_subtree_check,insecure
>>
>> Thanks,
>> Bastian
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0131d23a-8d52-4c1a-9a81-123d2a600900%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to