#8403: Current file locking does not work on NFS mounts
-------------------------------------------+--------------------------------
Reporter: mtredinnick | Owner: mtredinnick
Status: reopened | Milestone: 1.0
Component: File uploads/storage | Version: SVN
Resolution: | Keywords: file lock
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by jarrow):
* status: closed => reopened
* resolution: fixed =>
Comment:
After updating to Django 1.0 I got this traceback where the admin tries to
write stuff to a NFS mount. I'm not 100% sure it's the the same issue that
this ticket was about, but it fails at the line of the fix ...
* OS: Debian Etch
* export options: (rw,sync,no_subtree_check)
* nfsd and client nfs tools versions: 1.0.10-6+etch.1
* options from the mount:
rw,vers=3,rsize=32768,wsize=32768,hard,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=vm1
0 0
Traceback:
{{{
Traceback:
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in
get_response
86. response = callback(request, *callback_args,
**callback_kwargs)
File "/usr/lib/python2.4/site-packages/django/contrib/admin/sites.py" in
root
158. return self.model_page(request, *url.split('/', 2))
File "/usr/lib/python2.4/site-packages/django/views/decorators/cache.py"
in _wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/django/contrib/admin/sites.py" in
model_page
177. return admin_obj(request, rest_of_url)
File "/usr/lib/python2.4/site-packages/django/contrib/admin/options.py" in
__call__
197. return self.change_view(request, unquote(url))
File "/usr/lib/python2.4/site-packages/django/db/transaction.py" in
_commit_on_success
238. res = func(*args, **kw)
File "/usr/lib/python2.4/site-packages/django/contrib/admin/options.py" in
change_view
579. new_object = self.save_form(request, form,
change=True)
File "/usr/lib/python2.4/site-packages/django/contrib/admin/options.py" in
save_form
370. return form.save(commit=False)
File "/usr/lib/python2.4/site-packages/django/forms/models.py" in save
302. return save_instance(self, self.instance,
self._meta.fields, fail_message, commit)
File "/usr/lib/python2.4/site-packages/django/forms/models.py" in
save_instance
47. f.save_form_data(instance, cleaned_data[f.name])
File "/usr/lib/python2.4/site-packages/django/db/models/fields/files.py"
in save_form_data
192. getattr(instance, self.name).save(data.name, data,
save=False)
File "/usr/lib/python2.4/site-packages/django/db/models/fields/files.py"
in save
217. super(ImageFieldFile, self).save(name, content, save)
File "/usr/lib/python2.4/site-packages/django/db/models/fields/files.py"
in save
74. self._name = self.storage.save(name, content)
File "/usr/lib/python2.4/site-packages/django/core/files/storage.py" in
save
45. name = self._save(name, content)
File "/usr/lib/python2.4/site-packages/django/core/files/storage.py" in
_save
150. file_move_safe(content.temporary_file_path(),
full_path)
File "/usr/lib/python2.4/site-packages/django/core/files/move.py" in
file_move_safe
70. locks.lock(fd, locks.LOCK_EX)
File "/usr/lib/python2.4/site-packages/django/core/files/locks.py" in lock
57. fcntl.lockf(fd(file), flags)
Exception Type: IOError at /program/event/1109/
Exception Value: [Errno 5] Input/output error
}}}
Let me know if I should post more info ...
--
Ticket URL: <http://code.djangoproject.com/ticket/8403#comment:7>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---