I am running on a MediaTemple Django container with the SVN version of
Django. When I try and upload a image in the admin tool I get a proxy
error. The following is the part of the traceback that gets emailed to
me.

Traceback (most recent call last):

File "/home/58124/data/python/django/django/core/handlers/base.py",
line 92, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

File "/home/58124/data/python/django/django/contrib/admin/sites.py",
line 480, in root
   return self.model_page(request, *url.split('/', 2))

File "/home/58124/data/python/django/django/views/decorators/
cache.py", line 44, in _wrapped_view_func
   response = view_func(request, *args, **kwargs)

File "/home/58124/data/python/django/django/contrib/admin/sites.py",
line 499, in model_page
   return admin_obj(request, rest_of_url)

File "/home/58124/data/python/django/django/contrib/admin/options.py",
line 1088, in __call__
   return self.add_view(request)

File "/home/58124/data/python/django/django/db/transaction.py", line
240, in _commit_on_success
   res = func(*args, **kw)

File "/home/58124/data/python/django/django/contrib/admin/options.py",
line 733, in add_view
   self.save_model(request, new_object, form, change=False)

File "/home/58124/data/python/django/django/contrib/admin/options.py",
line 557, in save_model
   obj.save()

File "/home/58124/containers/django/goalscoring/apps/entries/
models.py", line 55, in save
   super(Entry, self).save(*args, **kwargs)

File "/home/58124/data/python/django/django/db/models/base.py", line
410, in save
   self.save_base(force_insert=force_insert,
force_update=force_update)

File "/home/58124/data/python/django/django/db/models/base.py", line
474, in save_base
   values = [(f, f.get_db_prep_save(raw and getattr(self, f.attname)
or f.pre_save(self, True))) for f in meta.local_fields if not
isinstance(f, AutoField)]

File "/home/58124/data/python/django/django/db/models/fields/
files.py", line 252, in pre_save
   file.save(file.name, file, save=False)

File "/home/58124/containers/django/goalscoring/apps/thumbs.py", line
104, in save
   super(ImageWithThumbsFieldFile, self).save(name, content, save)

File "/home/58124/data/python/django/django/db/models/fields/
files.py", line 91, in save
   self.name = self.storage.save(name, content)

File "/home/58124/data/python/django/django/core/files/storage.py",
line 47, in save
   name = self._save(name, content)

File "/home/58124/data/python/django/django/core/files/storage.py",
line 169, in _save
   locks.lock(fd, locks.LOCK_EX)

File "/home/58124/data/python/django/django/core/files/locks.py", line
57, in lock
   fcntl.lockf(fd(file), flags)

IOError: [Errno 37] No locks available

Im not really sure what the problem is, the MediaTemple support team
says they do not support Django to this degree. I suspect it might be
a server issue though? This code however worked for a while then just
stopped, and there were no code changes that took place when It
stopped working.

Thanks
Sean
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to