[GeoNode-users] uploading layer and enable notifications
FERRARI Hugo
ferrari_hugo at yahoo.fr
Sun Jul 5 22:33:19 PDT 2015
I've found a temporary solution, but with a security failure...
I' ve created a directory inside /var/www/geonode called notification
and I gave a 777 perms on it.
So everyone can write.
does it mean that the user who puts the notifications locks is not
www-data (ie apache) ? which user could it be ?
thanks a lot ,
Hugo FERRARI
Le 03/07/2015 18:27, FERRARI Hugo a écrit :
> hello
> I've got a problem trying to uplaod layers and having the
> notification system enabled
> I got this message in front end
> failed to create /var/www/<hostname>.MainThread-2979
>
> I readthis message <https://github.com/GeoNode/geonode/issues/2106> on
> the issues forum,
> so I put
> NOTIFICATION_LOCK_LOCATION='/var/www/geonode'
> in the settings files
> even if this folder is owned by www-data user, I always get this error
> message, and no data has been loaded in geoserver. I only received the
> notification e mail which indicates that the layer have been loaded...
>
> In apache error.log I got this queue
>
> [Fri Jul 03 09:07:23.260468 2015] [:error] [pid 2979] File
> "/home/ferrari/geonode/geonode/tasks/email.py" , line 21, in
> send_queued_notifications
> [Fri Jul 03 09:07:23.260473 2015] [:error] [pid 2979]
> send_all(settings.NOTIFICATION_LOCK_LOCATION)
> [Fri Jul 03 09:07:23.260478 2015] [:error] [pid 2979] File
> "/usr/local/lib/python2.7/dist-packages/notification/engine.py", line
> 43, in send_all
> [Fri Jul 03 09:07:23.260483 2015] [:error] [pid 2979] lock =
> acquire_lock(*args)
> [Fri Jul 03 09:07:23.260488 2015] [:error] [pid 2979] File
> "/usr/local/lib/python2.7/dist-packages/notification/engine.py", line
> 31, in acquire_lock
> [Fri Jul 03 09:07:23.260493 2015] [:error] [pid 2979]
> lock.acquire(LOCK_WAIT_TIMEOUT)
> [Fri Jul 03 09:07:23.260497 2015] [:error] [pid 2979] File
> "/usr/local/lib/python2.7/dist-packages/notification/lockfile.py",
> line 249, in acquire
> [Fri Jul 03 09:07:23.260502 2015] [:error] [pid 2979] raise
> LockFailed("failed to create %s" % self.unique_name)
> [Fri Jul 03 09:07:23.260507 2015] [:error] [pid 2979] LockFailed:
> failed to create
>
> Any ideas ?
> thanks a lot,
> Hugo FERRARI
>
>
> Le 02/07/2015 23:00, geonode-users-request at lists.osgeo.org a écrit :
>> Send geonode-users mailing list submissions to
>> geonode-users at lists.osgeo.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>> or, via email, send a message with subject or body 'help' to
>> geonode-users-request at lists.osgeo.org
>>
>> You can reach the person managing the list at
>> geonode-users-owner at lists.osgeo.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of geonode-users digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: geonode_project branch migration (Alessio)
>> 2. Re: geonode_project branch migration (Simone Dalmasso)
>> 3. Re: GeoNode Updateip Error (No module named relationships)
>> (Paolo Corti)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Thu, 2 Jul 2015 12:17:57 +0200
>> From: Alessio<alessio.dl at gmail.com>
>> To:geonode-users at lists.osgeo.org
>> Subject: Re: [GeoNode-users] geonode_project branch migration
>> Message-ID:
>> <CAHguyMtkSEw9zXuO5fdjiBDdZdZD5Pm7m=7ANa-uEaOHxdp4Eg at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi Simone,
>>
>> I'm testing GeoNode 2.4b25 on a virtual machine and I just created a
>> project.
>> I can't find local_settings.py .sample inside the folder of my project, is
>> it fine? It contains only a settings.py file.
>>
>> Thanks
>>
>> 2015-06-30 10:47 GMT+02:00 Simone Dalmasso<simone.dalmasso at gmail.com>:
>>
>>> Dears,
>>> we just reorganized the geonode_project branches to better reflect the
>>> geonode branches setup and avoid common confusion.
>>>
>>> Now the branch master of the geonode_project correctly supports the branch
>>> master of geonode,
>>> while the branch 2.0 supports the branch 2.0.x of geonode. The branch 2.4
>>> of the geonode_project is gone.
>>>
>>> https://github.com/GeoNode/geonode-project
>>> https://github.com/GeoNode/geonode-project/tree/2.0
>>>
>>> Hope this makes things easier.
>>> --
>>> The geonode dev team
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>>
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150706/b06c88ea/attachment.html>
More information about the geonode-users
mailing list