<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Dear Geonode community,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If someone knows little bit more about this, we would appreciate your help
<span style="font-family:Wingdings">J</span> Explanation below:<o:p></o:p></p>
<p class="MsoNormal"><br>
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":<br>
<br>
root@5058e8a1637f:/usr/src/app# ./manage.py updatelayers<br>
Inspecting the available layers in GeoServer ...<br>
Found 1 layers, starting processing<br>
Stopping process because --ignore-errors was not set and an error was found.<br>
Traceback (most recent call last):<br>
File "./manage.py", line 29, in <module><br>
execute_from_command_line(sys.argv)<br>
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line<br>
utility.execute()<br>
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute<br>
self.fetch_command(subcommand).run_from_argv(self.argv)<br>
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv<br>
self.execute(*args, **cmd_options)<br>
File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute<br>
output = self.handle(*args, **options)<br>
File "/usr/src/app/geonode/geoserver/management/commands/updatelayers.py", line 124, in handle<br>
execute_signals=True)<br>
File "/usr/src/app/geonode/geoserver/helpers.py", line 637, in gs_slurp<br>
layer.set_permissions(perm_spec)<br>
File "/usr/src/app/geonode/security/models.py", line 216, in set_permissions<br>
sync_geofence_with_guardian(self.layer, perms, group=group)<br>
File "/usr/src/app/geonode/decorators.py", line 44, in wrapper<br>
return func(*args, **kwargs)<br>
File "/usr/src/app/geonode/security/utils.py", line 392, in sync_geofence_with_guardian<br>
_update_geofence_rule(layer.name, layer.workspace, service)<br>
File "/usr/src/app/geonode/security/utils.py", line 563, in _update_geofence_rule<br>
raise RuntimeError(msg)<br>
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'",))<br>
<br>
But the same command from celery4geonode container has different output:<br>
<br>
root@bca672a5673d:/usr/src/app# ./manage.py updatelayers<br>
Inspecting the available layers in GeoServer ...<br>
Found 6 layers, starting processing<br>
/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
<a href="https://github.com/geopython/OWSLib/issues/38">https://github.com/geopython/OWSLib/issues/38</a> for more information<br>
FutureWarning)<br>
/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 <a href="https://github.com/geopython/OWSLib/issues/301">
https://github.com/geopython/OWSLib/issues/301</a> for more information<br>
FutureWarning)<br>
/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.<br>
if not user_style:<br>
/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.<br>
if user_style:<br>
... Creating Thumbnail for Layer [geonode:OPSTINE]<br>
[updated] Layer OPSTINE (1/6)<br>
... Creating Thumbnail for Layer [geonode:novi_novi_r6_Pavino_Polje_10kV_izmijenjen]<br>
[updated] Layer novi_novi_r6_Pavino_Polje_10kV_izmijenjen (2/6)<br>
... Creating Thumbnail for Layer [geonode:novi_r6_Ambarine_Przista_10kV]<br>
... Creating Thumbnail for Layer [geonode:novi_r6_Ambarine_Przista_10kV]<br>
[created] Layer novi_r6_Ambarine_Przista_10kV (3/6)<br>
... Creating Thumbnail for Layer [geonode:novi_r6_Gimnazija_10_kV]<br>
[updated] Layer novi_r6_Gimnazija_10_kV (4/6)<br>
... Creating Thumbnail for Layer [geonode:novi_r6_Planinica_10_kV]<br>
[updated] Layer novi_r6_Planinica_10_kV (5/6)<br>
... Creating Thumbnail for Layer [geonode:novi_r6_Rasovo_10kV]<br>
[updated] Layer novi_r6_Rasovo_10kV (6/6)<br>
<br>
<br>
Finished processing 6 layers in 53.0 seconds.<br>
<br>
1 Created layers<br>
5 Updated layers<br>
0 Failed layers<br>
8.830000 seconds per layer<br>
<br>
<b>Is such behavior normal ?</b><br>
<br>
Thanks in advance.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME">Ana Boljević<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME">Direkcija za razvoj, pristup mreži i ICT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME">Sektor za ICT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME">Služba za GIS i tehničku bazu podataka<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="color:#1F497D"><img border="0" width="85" height="29" id="Picture_x0020_1" src="cid:image001.jpg@01D46A09.0C4056A0" alt="CEDIS"></span></b><b><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME"><o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME">DOO „Crnogorski elektrodistributivni sistem“ Podgorica<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME">Ivana Milutinovića br.12, Podgorica<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME">Tel: +382 20 408 473<o:p></o:p></span></p>
<p class="MsoNormal"><u><span lang="SR-LATN-ME" style="color:#1F497D;mso-fareast-language:SR-LATN-ME"><a href="http://www.cedis.me/"><span style="color:#0563C1">www.cedis.me</span></a><o:p></o:p></span></u></p>
<p class="MsoNormal"><span style="color:#00B050"><img border="0" width="27" height="29" id="Picture_x0020_2" src="cid:image002.jpg@01D46A09.0C4056A0" alt="jelkica"></span><span lang="SR-LATN-ME" style="color:#00B050;mso-fareast-language:SR-LATN-ME">Please do
not print this e-mail unless you really need to<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>