[GeoNode-users] Info about updatelayers command?
Francesco Bartoli
xbartolone at gmail.com
Fri Oct 26 05:25:13 PDT 2018
If you already cloned it then you can just execute
git pull origin master
Rebuilding all the containers is not terrible until you don’t remove the volumes.
Hope this helps
Francesco
On 26 Oct 2018, 12:54 +0200, Ana Boljevic <ana.boljevic at cedis.me>, wrote:
> Dear Francesco,
> Can you please be more specific.
> Should we pull latest code with this command:
> git clone https://github.com/GeoNode/geonode.git
>
> Do I have to rebuild all containers or can I rebuild only django4geonode ?
> Will I lose all of my settings and data by doing this ?
>
> Regards,
> Ana Boljević
> Direkcija za razvoj, pristup mreži i ICT
> Sektor za ICT
> Služba za GIS i tehničku bazu podataka
> DOO „Crnogorski elektrodistributivni sistem“ Podgorica
> Ivana Milutinovića br.12, Podgorica
> Tel: +382 20 408 473
> www.cedis.me
> Please do not print this e-mail unless you really need to
>
> From: francesco bartoli [mailto:xbartolone at gmail.com]
> Sent: Friday, October 26, 2018 11:12 AM
> To: Ana Boljevic <ana.boljevic at cedis.me>
> Cc: Michael Fedak <mikefedak at gmail.com>; geonode-users <geonode-users at lists.osgeo.org>; geonode-users-bounces at lists.osgeo.org
> Subject: Re: [GeoNode-users] Info about updatelayers command?
>
> 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.
>
> 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.
>
> Il giorno ven 26 ott 2018 alle ore 09:46 Ana Boljevic <ana.boljevic at cedis.me> ha scritto:
> > Dear Francesco,
> >
> > We did the following 15 days ago:
> > git clone https://github.com/GeoNode/geonode.git
> > cd /home/geonode/geonode
> > docker-compose up -d
> >
> > In meantime, we make changes on containers and then commit those changes.
> > Can you please explain in details how to apply fix from github ?
> >
> > Regards
> >
> > Ana
> >
> >
> >
> >
> > -------- Original message --------
> > From: francesco bartoli <xbartolone at gmail.com>
> > Date: 10/26/18 08:50 (GMT+01:00)
> > To: Ana Boljevic <ana.boljevic at cedis.me>
> > Cc: Michael Fedak <mikefedak at gmail.com>, geonode-users <geonode-users at lists.osgeo.org>, geonode-users-bounces at lists.osgeo.org
> > Subject: Re: [GeoNode-users] Info about updatelayers command?
> > Hi Ana,
> >
> > 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.
> >
> > Hope this helps,
> > Francesco
> >
> > Il giorno ven 26 ott 2018 alle ore 07:16 Ana Boljevic <ana.boljevic at cedis.me> ha scritto:
> > > Dears,
> > >
> > > We have tried to implement solution by Mr. Fabiani:
> > > https://github.com/GeoNode/geonode/pull/3986/files
> > > but after we have manually changed those 4 files django4geonode containers can't bring up anymore.
> > > Does this solution apply also for GeoNode version 2.10rc4 ?
> > >
> > > Thanks in advance.
> > >
> > > Regards,
> > >
> > > Ana Boljević
> > > Direkcija za razvoj, pristup mreži i ICT
> > > Sektor za ICT
> > > Služba za GIS i tehničku bazu podataka
> > > DOO „Crnogorski elektrodistributivni sistem“ Podgorica
> > > Ivana Milutinovića br.12, Podgorica
> > > Tel: +382 20 408 473
> > > www.cedis.me
> > > Please do not print this e-mail unless you really need to
> > >
> > > From: Michael Fedak [mailto:mikefedak at gmail.com]
> > > Sent: Monday, October 22, 2018 3:20 PM
> > > To: Ana Boljevic <ana.boljevic at cedis.me>
> > > Cc: geonode-users-bounces at lists.osgeo.org; geonode-users <geonode-users at lists.osgeo.org>
> > > Subject: Re: [GeoNode-users] Info about updatelayers command?
> > >
> > > 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
> > > > DOO „Crnogorski elektrodistributivni sistem“ Podgorica
> > > > Ivana Milutinovića br.12, Podgorica
> > > > Tel: +382 20 408 473
> > > > www.cedis.me
> > > > 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
> > > _______________________________________________
> > > 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/20181026/79a34f1d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 41799D00941E4F9D835FE3B20C02EF9E.png
Type: image/png
Size: 6813 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181026/79a34f1d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: C3C0DE65A6A44755872317B0B90CE659.png
Type: image/png
Size: 2141 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181026/79a34f1d/attachment-0003.png>
More information about the geonode-users
mailing list