[GeoNode-users] geonode can't retreive layers uplaoded by a deleted user

FERRARI Hugo ferrari_hugo at yahoo.fr
Thu Jul 9 04:28:08 PDT 2015


that's what I did.
I change the owner, MD producer and PoC  before deleting the user.
the layers last in geonode resource list but have been deleted from 
geoserver.
in my customized geonode instance it's not a problem because  I probably 
won't delete a user if I gave him permission to add resource.
But I tought I could' be usefull to mention it.
Thanks again

Le 09/07/2015 15:03, Paolo Corti a écrit :
> If you delete a user all the related objects will be deleted, django
> admin should have provided you with a warning of all the resources
> that would be deleted together with the user.
> The workflow in such a case, if you want to remove a user and keep
> his/her layers, it is to change the ownership of the layers.
>
> hope it helps
> p
>
> On Thu, Jul 9, 2015 at 12:00 PM, FERRARI Hugo <ferrari_hugo at yahoo.fr> wrote:
>> Hello everyone
>> In my geonode instance if I delete a user who had uploaded layers , the
>> corresponding layers can't be retrieved by geoserver once the user has been
>> deleted
>> and when i go to the geoserver backend interface, all the layers from the
>> deleted user have disapeared
>>
>> from GET request which usually retrive the WMS
>>
>> full request adress
>> http://carto-reunion.cirad.fr/geoserver/wms?LAYERS=geonode%3Aroute_1&SERVICE=WMS&VERSION=1.1.1&REQUEST=DescribeLayer
>>
>> response
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
>> ServiceExceptionReport SYSTEM
>> "http://carto-reunion.cirad.fr:80/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd">
>> <ServiceExceptionReport version="1.1.1" >
>>   	<ServiceException code="LayerNotDefined" locator="MapLayerInfoKvpParser">
>>       		 geonode:route_1: no such layer on this server
>> 	</ServiceException>
>> </ServiceExceptionReport>
>>
>>
>> Is it a normal behavior or did I miss something ?
>>
>> Thanks,
>> Hugo FERRARI
>>
>>
>>
>> Le 06/07/2015 09:33, FERRARI Hugo a écrit :
>>
>> 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 read this message 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
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>
>
>



More information about the geonode-users mailing list