<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div><br>
</div>
<div>Dear Francesco and Alessio,</div>
<div><br>
We have moved all changed files in /tmp folder of the host, git pull, put moved files back in thair original path and than
<br>
docker-compose stop<br>
docker-compose up --no-build -d<br>
but now django container can't bring up<br>
<br>
<br>
<br>
root@5058e8a1637f:/usr/src/app# git checkout
<br>
M docker-compose.yml<br>
M <a href="http://entrypoint.sh">entrypoint.sh</a><br>
M geonode/<a href="http://settings.py">settings.py</a><br>
M scripts/docker/env/production/celery.env<br>
M scripts/docker/env/production/django.env<br>
M scripts/docker/env/production/geoserver.env<br>
<br>
geonode@testgis:/tmp$ docker cp 5058e8a1637f:/usr/src/app/<a href="http://entrypoint.sh">entrypoint.sh</a> /tmp<br>
geonode@testgis:/tmp$ docker cp 5058e8a1637f:/usr/src/app/geonode/<a href="http://settings.py">settings.py</a> /tmp<br>
geonode@testgis:/tmp$ docker cp 5058e8a1637f:/usr/src/app/scripts/docker/env/production/celery.env /tmp<br>
geonode@testgis:/tmp$ docker cp 5058e8a1637f:/usr/src/app/scripts/docker/env/production/django.env /tmp<br>
geonode@testgis:/tmp$ docker cp 5058e8a1637f:/usr/src/app/scripts/docker/env/production/geoserver.env /tmp<br>
<br>
rm docker-compose.yml <a href="http://entrypoint.sh">entrypoint.sh</a> geonode/<a href="http://settings.py">settings.py</a> scripts/docker/env/production/celery.env scripts/docker/env/production/django.env scripts/docker/env/production/geoserver.env<br>
<br>
git pull<br>
<br>
geonode@testgis:~/geonode$ docker cp /tmp/docker-compose.yml 5058e8a1637f:/usr/src/app/docker-compose.yml<br>
geonode@testgis:~/geonode$ docker cp /tmp/<a href="http://entrypoint.sh">entrypoint.sh</a> 5058e8a1637f:/usr/src/app/<a href="http://entrypoint.sh">entrypoint.sh</a><br>
geonode@testgis:~/geonode$ docker cp /tmp/<a href="http://settings.py">settings.py</a> 5058e8a1637f:/usr/src/app/geonode/<a href="http://settings.py">settings.py</a><br>
geonode@testgis:~/geonode$ docker cp /tmp/celery.env 5058e8a1637f:/usr/src/app/scripts/docker/env/production/celery.env<br>
geonode@testgis:~/geonode$ docker cp /tmp/django.env 5058e8a1637f:/usr/src/app/scripts/docker/env/production/django.env<br>
geonode@testgis:~/geonode$ docker cp /tmp/geoserver.env 5058e8a1637f:/usr/src/app/scripts/docker/env/production/geoserver.env<br>
<br>
docker-compose stop<br>
docker-compose up --no-build -d<br>
<br>
<br>
Regards,<br>
<div class="moz-forward-container"></div>
</div>
<div><br>
</div>
<div>Ana</div>
<br>
<br>
-------- Original message --------<br>
From: francesco bartoli <xbartolone@gmail.com> <br>
Date: 10/27/18 00:36 (GMT+01:00) <br>
To: Ana Boljevic <ana.boljevic@cedis.me> <br>
Cc: Alessio Fabiani <alessio.fabiani@geo-solutions.it>, geonode-users-bounces@lists.osgeo.org, geonode-users <geonode-users@lists.osgeo.org>
<br>
Subject: Re: [GeoNode-users] Info about updatelayers command? <br>
<br>
<div>
<div dir="ltr">Yes Alessio but I guessed Ana would be ended up with a merge issue. One easy solution if settings.py is the only file edited would be to copy it somewhere else then run
<div><br>
</div>
<div><i>git checkout</i></div>
<div><br>
</div>
<div>before</div>
<div><br>
</div>
<div><i>git pull</i></div>
<div><i><br>
</i></div>
<div>finally overwrite settings.py with the copied one.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Il giorno ven 26 ott 2018 alle ore 20:00 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>Sorry,<br>
we have error, I didn't notice at first:<br>
geonode@testgis:~/geonode$ docker exec -i -t django4geonode bash<br>
root@5058e8a1637f:/usr/src/app# git pull<br>
remote: Enumerating objects: 321, done.<br>
remote: Counting objects: 100% (321/321), done.<br>
remote: Compressing objects: 100% (20/20), done.<br>
remote: Total 620 (delta 308), reused 307 (delta 301), pack-reused 299<br>
Receiving objects: 100% (620/620), 3.66 MiB | 812.00 KiB/s, done.<br>
Resolving deltas: 100% (441/441), completed with 126 local objects.<br>
From <a class="m_5069170637000995276moz-txt-link-freetext" href="https://github.com/GeoNode/geonode" target="_blank">
https://github.com/GeoNode/geonode</a><br>
33aa3e6..34ac634 master -> origin/master<br>
2ea8bc6..89efc19 2.8.x -> origin/2.8.x<br>
* [new branch] ISSUE_4025 -> origin/ISSUE_4025<br>
Updating 33aa3e6..34ac634<br>
error: Your local changes to the following files would be overwritten by merge:<br>
geonode/<a href="http://settings.py" target="_blank">settings.py</a><br>
Please, commit your changes or stash them before you can merge.<br>
Aborting<br>
<br>
Regards,
<div><br>
</div>
<div>Ana</div>
<br>
<br>
-------- Original message --------<br>
From: Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>>
<br>
Date: 10/26/18 19:50 (GMT+01:00) <br>
To: Alessio Fabiani <<a href="mailto:alessio.fabiani@geo-solutions.it" target="_blank">alessio.fabiani@geo-solutions.it</a>>
<br>
Cc: <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>
Subject: Re: [GeoNode-users] Info about updatelayers command? <br>
<br>
<div>
<div><br>
</div>
<div>Dear Alessio,</div>
<div><br>
We have done:<br>
docker exec -i -t django4geonode bash<br>
git pull<br>
exit<br>
docker-compose stop<br>
docker-compose up --no-build -d<br>
<br>
and after that, from django4geonode container error still remains:<br>
<br>
root@5058e8a1637f:/usr/src/app# python <a href="http://manage.py" target="_blank">
manage.py</a> updatelayers<br>
Inspecting the available layers in GeoServer ...<br>
Found 6 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 "<a href="http://manage.py" target="_blank">manage.py</a>", 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/<a href="http://base.py" target="_blank">base.py</a>", line 283, in run_from_argv<br>
self.execute(*args, **cmd_options)<br>
File "/usr/local/lib/python2.7/site-packages/django/core/management/<a href="http://base.py" target="_blank">base.py</a>", line 330, in execute<br>
output = self.handle(*args, **options)<br>
File "/usr/src/app/geonode/geoserver/management/commands/<a href="http://updatelayers.py" target="_blank">updatelayers.py</a>", line 124, in handle<br>
execute_signals=True)<br>
File "/usr/src/app/geonode/geoserver/<a href="http://helpers.py" target="_blank">helpers.py</a>", line 637, in gs_slurp<br>
layer.set_permissions(perm_spec)<br>
File "/usr/src/app/geonode/security/<a href="http://models.py" target="_blank">models.py</a>", line 216, in set_permissions<br>
sync_geofence_with_guardian(self.layer, perms, group=group)<br>
File "/usr/src/app/geonode/<a href="http://decorators.py" target="_blank">decorators.py</a>", line 44, in wrapper<br>
return func(*args, **kwargs)<br>
File "/usr/src/app/geonode/security/<a href="http://utils.py" target="_blank">utils.py</a>", 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/<a href="http://utils.py" target="_blank">utils.py</a>", line 563, in _update_geofence_rule<br>
raise RuntimeError(msg)<br>
Exception: ('Failed to process OPSTINE', RuntimeError("Could not ADD GeoServer User None Rule for Layer u'OPSTINE'",))<br>
<br>
Regards,</div>
<div><br>
</div>
<div>Ana</div>
<div><br>
</div>
<div><br>
</div>
<br>
<br>
-------- Original message --------<br>
From: Alessio Fabiani <<a href="mailto:alessio.fabiani@geo-solutions.it" target="_blank">alessio.fabiani@geo-solutions.it</a>>
<br>
Date: 10/26/18 15:51 (GMT+01:00) <br>
To: Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>>
<br>
Cc: Francesco Bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>>,
<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>
Subject: Re: [GeoNode-users] Info about updatelayers command? <br>
<br>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi Ana,
<div>In order to update the GeoNode on your GeoNode instance, I guess you can try something like</div>
<div><br>
</div>
<div><font face="monospace, monospace">docker exec -i -t django4geonode bash<br>
</font></div>
<div><font face="monospace, monospace">git pull</font></div>
<div><font face="monospace, monospace">exit</font></div>
<div><font face="monospace, monospace">docker-compose stop<br>
</font></div>
<div><font face="monospace, monospace">docker-compose up --no-build -d<br>
</font></div>
<div><br>
</div>
<div><a class="gmail_plusreply" id="m_5069170637000995276plusReplyChip-0" href="mailto:xbartolone@gmail.com" target="_blank">@Francesco Bartoli</a> can you confirm?<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Il giorno ven 26 ott 2018 alle ore 15:45 Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">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>
<div>Sorry, but my docker experience is weak. I don't know how to solve the problem. </div>
<div>I want to apply fix from github without loosing my data. Is it possible?</div>
<div><br>
Can you please write commands?</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Ana</div>
<br>
<br>
-------- Original message --------<br>
From: Francesco Bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>>
<br>
Date: 10/26/18 14:25 (GMT+01:00) <br>
To: Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>>
<br>
Cc: geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>>,
<a href="mailto:geonode-users-bounces@lists.osgeo.org" target="_blank">geonode-users-bounces@lists.osgeo.org</a>
<br>
Subject: RE: [GeoNode-users] Info about updatelayers command? <br>
<br>
<div name="messageBodySection" style="font-size:14px">If you already cloned it then you can just execute
<div><br>
</div>
<div><i>git pull origin master</i></div>
<div><br>
</div>
<div>Rebuilding all the containers is not terrible until you don’t remove the volumes. </div>
</div>
<div name="messageSignatureSection" style="font-size:14px"><br>
Hope this helps<br>
<br>
Francesco</div>
<div name="messageReplySection" style="font-size:14px">On 26 Oct 2018, 12:54 +0200, Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>>, wrote:<br>
<blockquote type="cite" style="margin:5px 5px; padding-left:10px; border-left:thin solid #1abc9c">
<div class="m_5069170637000995276m_-6746208291638171923WordSection1">
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear Francesco,</p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Can you please be more specific.<br>
Should we pull latest code with this command:<br>
git clone <a href="https://github.com/GeoNode/geonode.git" target="_blank">https://github.com/GeoNode/geonode.git</a><br>
<br>
Do I have to rebuild all containers or can I rebuild only django4geonode ?<br>
Will I lose all of my settings and data by doing this ?<br>
<br>
Regards,<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"></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ć</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</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</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</span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"><img id="m_5069170637000995276m_-6746208291638171923Picture_x0020_1" alt="CEDIS" class="m_5069170637000995276m_-6746208291638171923existing-inline-image" height="29" width="85" border="0"></span></b><b><span lang="SR-LATN-ME" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"></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</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</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</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></span></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#00b050"><img id="m_5069170637000995276m_-6746208291638171923Picture_x0020_2" alt="jelkica" class="m_5069170637000995276m_-6746208291638171923existing-inline-image" height="29" width="27" border="0"></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</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"> </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">francesco bartoli [mailto:<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>]<br>
<b>Sent:</b> Friday, October 26, 2018 11:12 AM<br>
<b>To:</b> Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>><br>
<b>Cc:</b> Michael Fedak <<a href="mailto:mikefedak@gmail.com" target="_blank">mikefedak@gmail.com</a>>; geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>>;
<a href="mailto:geonode-users-bounces@lists.osgeo.org" target="_blank">geonode-users-bounces@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [GeoNode-users] Info about updatelayers command?</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">If you apply changes or you have got new updates from the repo then you have to rebuild the image so please try to add and use the option "--build" that I mentioned above.</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">However if you are going to modify geonode and don't want to contribute back with pull requests then the suggested method would be to use a geonode-project.</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">Il giorno ven 26 ott 2018 alle ore 09:46 Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>> ha scritto:</p>
</div>
<blockquote style="margin:5px 5px; padding-left:10px; border-left:thin solid #e67e22">
<div>
<div>
<p class="MsoNormal">Dear Francesco,</p>
</div>
<div>
<p class="MsoNormal"><br>
We did the following 15 days ago:<br>
git clone <a 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</p>
</div>
<div>
<p class="MsoNormal"><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 ?</p>
</div>
<div>
<p class="MsoNormal"><br>
Regards</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Ana</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
-------- Original message --------<br>
From: francesco bartoli <<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>><br>
Date: 10/26/18 08:50 (GMT+01:00)<br>
To: Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>><br>
Cc: Michael Fedak <<a href="mailto:mikefedak@gmail.com" target="_blank">mikefedak@gmail.com</a>>, geonode-users <<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>>,
<a href="mailto:geonode-users-bounces@lists.osgeo.org" target="_blank">geonode-users-bounces@lists.osgeo.org</a><br>
Subject: Re: [GeoNode-users] Info about updatelayers command?</p>
<div>
<div>
<p class="MsoNormal">Hi Ana,</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">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.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Hope this helps,</p>
</div>
<div>
<p class="MsoNormal">Francesco</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">Il giorno ven 26 ott 2018 alle ore 07:16 Ana Boljevic <<a href="mailto:ana.boljevic@cedis.me" target="_blank">ana.boljevic@cedis.me</a>> ha scritto:</p>
</div>
<blockquote style="margin:5px 5px; padding-left:10px; border-left:thin solid #3498db">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Dears,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"> </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:</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></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.</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 ?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Thanks in advance.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d">Regards,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"> </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ć</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</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</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</span></p>
<p class="MsoNormal"></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</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</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</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></span></u></p>
<p class="MsoNormal"><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</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1f497d"> </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?</span></p>
<p class="MsoNormal"> </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></p>
</div>
</div>
</div>
<p class="MsoNormal"> </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:</p>
</div>
<blockquote style="margin:5px 5px; padding-left:10px; border-left:thin solid #d35400">
<div>
<div>
<p class="MsoNormal">Dear Geonode community,</p>
<p class="MsoNormal"> </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:</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.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Kind regards,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="color:#1f497d">Ana Boljević</span></b></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Direkcija za razvoj, pristup mreži i ICT</span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Sektor za ICT</span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Služba za GIS i tehničku bazu podataka</span></p>
<p class="MsoNormal"></p>
<p class="MsoNormal"><b><span lang="SR-LATN-ME" style="color:#1f497d">DOO „Crnogorski elektrodistributivni sistem“ Podgorica</span></b></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Ivana Milutinovića br.12, Podgorica</span></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#1f497d">Tel: +382 20 408 473</span></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></p>
<p class="MsoNormal"><span lang="SR-LATN-ME" style="color:#00b050">Please do not print this e-mail unless you really need to</span></p>
<p class="MsoNormal"> </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></p>
</blockquote>
</div>
</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></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</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>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_5069170637000995276gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12.8px"><span>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-family:Arial; font-size:11pt; white-space:pre-wrap">==</span><br>
</p>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">GeoServer
Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">
http://goo.gl/it488V</a> for more information.</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">==</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">Ing. Alessio
Fabiani</span></p>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">@alfa7691</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">Founder/Technical
Lead</span></p>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span></p>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">GeoSolutions
S.A.S.</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">Via di Montramito
3/A - </span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">55054
Massarosa (LU) - </span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">Italy</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">phone: +39 0584
962313</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">fax: +39
0584 1660272</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">mob: +39 331
6233686</span></p>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#222222; background-color:#ffffff; font-weight:400; font-style:normal; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">-------------------------------------------------------</span></p>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#000000; background-color:transparent; font-weight:400; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">Con
riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato
la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.</span></p>
<p dir="ltr" style="line-height:1.38; margin-top:0pt; margin-bottom:0pt"><span style="font-size:11pt; font-family:Arial; color:#000000; background-color:transparent; font-weight:400; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span><span style="font-size:11pt; font-family:Arial; color:#000000; background-color:transparent; font-weight:400; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap">This email
is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination
or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.</span><span style="font-size:11pt; font-family:Arial; color:#000000; background-color:transparent; font-weight:400; font-style:italic; font-variant:normal; text-decoration:none; vertical-align:baseline; white-space:pre-wrap; white-space:pre-wrap"><br>
</span></p>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</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>