<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div>Dear Francesco,</div>
<div><br>
We did the following 15 days ago:<br>
git clone <a class="moz-txt-link-freetext" href="https://github.com/GeoNode/geonode.git" target="_BLANK">
https://github.com/GeoNode/geonode.git</a><br>
cd /home/geonode/geonode<br>
docker-compose up -d</div>
<div><br>
In meantime, we make changes on containers and then commit those changes. <br>
Can you please explain in details how to apply fix from github ?</div>
<div><br>
Regards<br>
</div>
<div><br>
</div>
<div>Ana</div>
<div><br>
</div>
<div><br>
</div>
<br>
<br>
-------- Original message --------<br>
From: francesco bartoli <xbartolone@gmail.com> <br>
Date: 10/26/18 08:50 (GMT+01:00) <br>
To: Ana Boljevic <ana.boljevic@cedis.me> <br>
Cc: Michael Fedak <mikefedak@gmail.com>, geonode-users <geonode-users@lists.osgeo.org>, geonode-users-bounces@lists.osgeo.org
<br>
Subject: Re: [GeoNode-users] Info about updatelayers command? <br>
<br>
<div>
<div dir="ltr">Hi Ana,
<div><br>
</div>
<div>can you please explain what did you do? The better to try is to pull the latest code from github and then run "docker-compose up --build" regardless of the version. The fix is for sure also in master.</div>
<div><br>
</div>
<div>Hope this helps,</div>
<div>Francesco</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Il giorno ven 26 ott 2018 alle ore 07:16 Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me">ana.boljevic@cedis.me</a>> ha scritto:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div lang="EN-US">
<div class="m_-7148773738643226172WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Dears,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">We have tried to implement solution by Mr. Fabiani:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><a href="https://github.com/GeoNode/geonode/pull/3986/files" target="_blank">https://github.com/GeoNode/geonode/pull/3986/files</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">but after we have manually changed those 4 files django4geonode containers can't bring up anymore.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Does this solution apply also for GeoNode version 2.10rc4 ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Thanks in advance.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Ana Boljević<u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Direkcija za razvoj, pristup mreži i ICT<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Sektor za ICT<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Služba za GIS i tehničku bazu podataka<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><img width="85" height="29" id="m_-7148773738643226172Picture_x0020_1" src="cid:image001.jpg@01D46CFB.B1198DA0" alt="CEDIS"></span></b><b><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">DOO „Crnogorski elektrodistributivni sistem“ Podgorica<u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Ivana Milutinovića br.12, Podgorica<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Tel: +382 20 408 473<u></u><u></u></span></p>
<p class="MsoNormal"><u><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><a href="http://www.cedis.me/" target="_blank"><span style="color:#0563c1">www.cedis.me</span></a><u></u><u></u></span></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#00b050"><img border="0" width="27" height="29" id="m_-7148773738643226172Picture_x0020_2" src="cid:image002.jpg@01D46CFB.B1198DA0" alt="jelkica"></span><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#00b050">Please
do not print this e-mail unless you really need to<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif"> Michael Fedak [mailto:<a href="mailto:mikefedak@gmail.com" target="_blank">mikefedak@gmail.com</a>]
<br>
<b>Sent:</b> Monday, October 22, 2018 3:20 PM<br>
<b>To:</b> Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>><br>
<b>Cc:</b> <a href="mailto:geonode-users-bounces@lists.osgeo.org" target="_blank">
geonode-users-bounces@lists.osgeo.org</a>; geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [GeoNode-users] Info about updatelayers command?<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><i> </i>I had a similar issue on 2.8 last week. See here for the discussion/fix:
<a href="https://github.com/GeoNode/geonode/issues/3984" target="_blank">https://github.com/GeoNode/geonode/issues/3984</a><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Oct 22, 2018 at 7:25 AM Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none; border-left:solid #cccccc 1.0pt; padding:0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<div>
<div>
<p class="MsoNormal">Dear Geonode community,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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:<u></u><u></u></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(<a href="http://layer.name" target="_blank">layer.name</a>, 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" target="_blank">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" target="_blank">
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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Kind regards,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="color:#1f497d">Ana Boljević</span></b><u></u><u></u></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Direkcija za razvoj, pristup mreži i ICT</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Sektor za ICT</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Služba za GIS i tehničku bazu podataka</span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:#1f497d"><img border="0" width="85" height="29" id="m_-7148773738643226172m_9146599914593062919Picture_x0020_1" alt="CEDIS"></span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="color:#1f497d">DOO „Crnogorski elektrodistributivni sistem“ Podgorica</span></b><u></u><u></u></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Ivana Milutinovića br.12, Podgorica</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Tel: +382 20 408 473</span><u></u><u></u></p>
<p class="MsoNormal"><u><span lang="SR-LATN-ME" style="color:#1f497d"><a href="http://www.cedis.me/" target="_blank"><span style="color:#0563c1">www.cedis.me</span></a></span></u><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#00b050"><img border="0" width="27" height="29" id="m_-7148773738643226172m_9146599914593062919Picture_x0020_2" alt="jelkica"></span><span lang="SR-LATN-ME" style="color:#00b050">Please do not print this e-mail unless
you really need to</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote>
</div>
</div>
</body>
</html>