[GeoNode-devel] LockFailed: failed to create /var/www/...

John, Steffen s.john at atenekom.eu
Thu Jan 26 01:39:53 PST 2017


Hi!

My issue is related to the following issue on github:
https://github.com/GeoNode/geonode/issues/2106

I'm using Geonode 4.2.1 on Ubuntu 14.04 in a virtual machine.

When saving a new map, the LockFailed-Error appers.

I added NOTIFICATION_LOCK_LOCATION='/var/www/geonode' to the settings as suggested in issue 2106 and made sure that ww-data has write access to /var/www/geonode.

But still i'm getting the error, since it still tries to create the lock at a wrong location.

LockFailed: failed to create /var/www/vagrant-ubuntu-trusty-64.Dummy-1- 9171

I'm wondering why it doesn't take the correct location from the settings?

Any ideas to solve this issue?

Thanks in advance!

Steffen


PS: here is the full stacktrace:


Internal Server Error: /maps/new/data
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/geonode/maps/views.py", line 416, in new_map_json
    map_obj.save()
  File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save
    return super(PolymorphicModel, self).save(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 582, in save_base
    update_fields=update_fields, raw=raw, using=using)
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.7/dist-packages/geonode/social/signals.py", line 165, in notification_post_save_resource
    send_queued_notifications.delay()
  File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 452, in delay
    return self.apply_async(args, kwargs)
  File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 546, in apply_async
    link=link, link_error=link_error, **options)
  File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 727, in apply
    request=request, propagate=throw)
  File "/usr/lib/python2.7/dist-packages/celery/app/trace.py", line 315, in eager_trace_task
    uuid, args, kwargs, request)
  File "/usr/lib/python2.7/dist-packages/celery/app/trace.py", line 218, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/geonode/tasks/email.py", line 22, in send_queued_notifications
    send_all(settings.NOTIFICATION_LOCK_LOCATION)
  File "/usr/lib/python2.7/dist-packages/notification/engine.py", line 43, in send_all
    lock = acquire_lock(*args)
  File "/usr/lib/python2.7/dist-packages/notification/engine.py", line 31, in acquire_lock
    lock.acquire(LOCK_WAIT_TIMEOUT)
  File "/usr/lib/python2.7/dist-packages/notification/lockfile.py", line 249, in acquire
    raise LockFailed("failed to create %s" % self.unique_name)
LockFailed: failed to create /var/www/vagrant-ubuntu-trusty-64.Dummy-1-9171
ERROR:django.request:Internal Server Error: /maps/new/data
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/geonode/maps/views.py", line 416, in new_map_json
    map_obj.save()
  File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save
    return super(PolymorphicModel, self).save(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 582, in save_base
    update_fields=update_fields, raw=raw, using=using)
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.7/dist-packages/geonode/social/signals.py", line 165, in notification_post_save_resource
    send_queued_notifications.delay()
  File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 452, in delay
    return self.apply_async(args, kwargs)
  File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 546, in apply_async
    link=link, link_error=link_error, **options)
  File "/usr/lib/python2.7/dist-packages/celery/app/task.py", line 727, in apply
    request=request, propagate=throw)
  File "/usr/lib/python2.7/dist-packages/celery/app/trace.py", line 315, in eager_trace_task
    uuid, args, kwargs, request)
  File "/usr/lib/python2.7/dist-packages/celery/app/trace.py", line 218, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/geonode/tasks/email.py", line 22, in send_queued_notifications
    send_all(settings.NOTIFICATION_LOCK_LOCATION)
  File "/usr/lib/python2.7/dist-packages/notification/engine.py", line 43, in send_all
    lock = acquire_lock(*args)
  File "/usr/lib/python2.7/dist-packages/notification/engine.py", line 31, in acquire_lock
    lock.acquire(LOCK_WAIT_TIMEOUT)
  File "/usr/lib/python2.7/dist-packages/notification/lockfile.py", line 249, in acquire
    raise LockFailed("failed to create %s" % self.unique_name)
[Thu Jan 26 03:07:51.940734 2017] [:error] [pid 9171:tid 139927198664448] LockFailed: failed to create /var/www/vagrant-ubuntu-trusty-64.Dummy-1-9171

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20170126/96d94dfe/attachment.html>


More information about the geonode-devel mailing list