[GeoNode-users] Info about updatelayers command?
Michael Fedak
mikefedak at gmail.com
Mon Oct 22 06:19:45 PDT 2018
I had a similar issue on 2.8 last week. See here for the discussion/fix:
https://github.com/GeoNode/geonode/issues/3984
On Mon, Oct 22, 2018 at 7:25 AM Ana Boljevic <ana.boljevic at cedis.me> wrote:
> Dear Geonode community,
>
>
>
> If someone knows little bit more about this, we would appreciate your help
> J Explanation below:
>
>
> We have installed Geonode on docker (version 2.10rc4). We imported first
> kml layer but updatelayers (from inside of django4geonode container) report
> problem "Could not ADD GeoServer User None Rule for Layer":
>
> root at 5058e8a1637f:/usr/src/app# ./manage.py updatelayers
> Inspecting the available layers in GeoServer ...
> Found 1 layers, starting processing
> Stopping process because --ignore-errors was not set and an error was
> found.
> Traceback (most recent call last):
> File "./manage.py", line 29, in <module>
> execute_from_command_line(sys.argv)
> File
> "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 364, in execute_from_command_line
> utility.execute()
> File
> "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 356, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File
> "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 283, in run_from_argv
> self.execute(*args, **cmd_options)
> File
> "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 330, in execute
> output = self.handle(*args, **options)
> File
> "/usr/src/app/geonode/geoserver/management/commands/updatelayers.py", line
> 124, in handle
> execute_signals=True)
> File "/usr/src/app/geonode/geoserver/helpers.py", line 637, in gs_slurp
> layer.set_permissions(perm_spec)
> File "/usr/src/app/geonode/security/models.py", line 216, in
> set_permissions
> sync_geofence_with_guardian(self.layer, perms, group=group)
> File "/usr/src/app/geonode/decorators.py", line 44, in wrapper
> return func(*args, **kwargs)
> File "/usr/src/app/geonode/security/utils.py", line 392, in
> sync_geofence_with_guardian
> _update_geofence_rule(layer.name, layer.workspace, service)
> File "/usr/src/app/geonode/security/utils.py", line 563, in
> _update_geofence_rule
> raise RuntimeError(msg)
> Exception: ('Failed to process novi_r6_Slijepac_most_10kV',
> RuntimeError("Could not ADD GeoServer User None Rule for Layer
> u'novi_r6_Slijepac_most_10kV'",))
>
> But the same command from celery4geonode container has different output:
>
> root at bca672a5673d:/usr/src/app# ./manage.py updatelayers
> Inspecting the available layers in GeoServer ...
> Found 6 layers, starting processing
> /usr/local/lib/python2.7/site-packages/owslib/iso.py:117: FutureWarning:
> the .identification and .serviceidentification properties will merge into
> .identification being a list of properties. This is currently implemented
> in .identificationinfo. Please see
> https://github.com/geopython/OWSLib/issues/38 for more information
> FutureWarning)
> /usr/local/lib/python2.7/site-packages/owslib/iso.py:482: FutureWarning:
> The .keywords and .keywords2 properties will merge into the .keywords
> property in the future, with .keywords becoming a list of MD_Keywords
> instances. This is currently implemented in .keywords2. Please see
> https://github.com/geopython/OWSLib/issues/301 for more information
> FutureWarning)
> /usr/local/lib/python2.7/site-packages/geoserver/style.py:73:
> FutureWarning: The behavior of this method will change in future versions.
> Use specific 'len(elem)' or 'elem is not None' test instead.
> if not user_style:
> /usr/local/lib/python2.7/site-packages/geoserver/style.py:77:
> FutureWarning: The behavior of this method will change in future versions.
> Use specific 'len(elem)' or 'elem is not None' test instead.
> if user_style:
> ... Creating Thumbnail for Layer [geonode:OPSTINE]
> [updated] Layer OPSTINE (1/6)
> ... Creating Thumbnail for Layer
> [geonode:novi_novi_r6_Pavino_Polje_10kV_izmijenjen]
> [updated] Layer novi_novi_r6_Pavino_Polje_10kV_izmijenjen (2/6)
> ... Creating Thumbnail for Layer [geonode:novi_r6_Ambarine_Przista_10kV]
> ... Creating Thumbnail for Layer [geonode:novi_r6_Ambarine_Przista_10kV]
> [created] Layer novi_r6_Ambarine_Przista_10kV (3/6)
> ... Creating Thumbnail for Layer [geonode:novi_r6_Gimnazija_10_kV]
> [updated] Layer novi_r6_Gimnazija_10_kV (4/6)
> ... Creating Thumbnail for Layer [geonode:novi_r6_Planinica_10_kV]
> [updated] Layer novi_r6_Planinica_10_kV (5/6)
> ... Creating Thumbnail for Layer [geonode:novi_r6_Rasovo_10kV]
> [updated] Layer novi_r6_Rasovo_10kV (6/6)
>
>
> Finished processing 6 layers in 53.0 seconds.
>
> 1 Created layers
> 5 Updated layers
> 0 Failed layers
> 8.830000 seconds per layer
>
> *Is such behavior normal ?*
>
> Thanks in advance.
>
>
>
> Kind regards,
>
>
>
> *Ana Boljević*
>
> Direkcija za razvoj, pristup mreži i ICT
>
> Sektor za ICT
>
> Služba za GIS i tehničku bazu podataka
>
> *[image: CEDIS]*
>
> *DOO „Crnogorski elektrodistributivni sistem“ Podgorica*
>
> Ivana Milutinovića br.12, Podgorica
>
> Tel: +382 20 408 473
>
> *www.cedis.me <http://www.cedis.me/>*
>
> [image: jelkica]Please do not print this e-mail unless you really need to
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181022/23a26e69/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2178 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181022/23a26e69/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1092 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181022/23a26e69/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2178 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181022/23a26e69/attachment-0005.jpg>
More information about the geonode-users
mailing list