[GeoNode-users] Geonode Docker provisioning problems. tasks.py

Alessio Fabiani alessio.fabiani at geo-solutions.it
Thu Jun 14 02:14:37 PDT 2018


Basically master and 2.7.x are the same. The main difference is that master
branch is based on Django 1.11 and 2.7.x on Django 1.8

Il giorno gio 14 giu 2018 alle ore 11:08 John, Steffen <s.john at atenekom.eu>
ha scritto:

> Thanks, Alessio.
>
> Which GeoNode version is actually in the master branch? is it the current
> stable version 2.8?
>
> Steffen
> --
>
>
> Steffen John
>
> Geodaten und Anwendungsentwicklung
>
> Tel. +49 (0)30 22183-3534 | Fax +49 (0)30 60989-99
>
> s.john at atenekom.eu
>
> atene KOM GmbH
>
> Agentur für Kommunikation, Organisation und Management
>
> Invalidenstraße 91 | 10115 Berlin
>
>
>
> www.atenekom.eu | Link All <http://www.link-all.eu/index.php?language=de>
>  | Apps
> <https://itunes.apple.com/de/app/atene-kom-funds/id589783071?mt=8&ls=1> |
> facebook <https://www.facebook.com/atenekom> | XING
> <https://www.xing.com/companies/atenekomgmbh%25257Cagenturf%2525C3%25259Crkommunikationorganisationundmanagement?user_view=true>
>  | YouTube <http://www.youtube.com/profile?user=atenekom>
>
> Geschäftsführer: Tim Brauckmüller  |  AG Berlin Charlottenburg  |  HRB
> 111699  |  USt-ID: DE259091767
>
>
>
> Am Donnerstag, den 14.06.2018, 10:23 +0200 schrieb Alessio Fabiani:
>
> Uhm,
> it seems like the "instancename" is not containing the ":port" and
> therefore you get the exception.
>
> I see in "master" branch of "geonode-docker" there was a tentative to fix
> this issue
>
> https://github.com/GeoNode/geonode-docker/blob/master/tasks.py#L96
>
> Notice the differences with the version you are currently using
>
> https://github.com/GeoNode/geonode-docker/blob/2.7.x/tasks.py#L86
>
>
>
>
> Il giorno gio 14 giu 2018 alle ore 09:48 John, Steffen <s.john at atenekom.eu>
> ha scritto:
>
> Hi!
>
> I tried setting up Geonode 2.6 from this repo (
> https://github.com/GeoNode/geonode-docker/ and
> https://hub.docker.com/r/geonode/geonode/) using docker.
>
> Building the container works without problem, but when I integrate into my
> docker-compose stack and try to start the container, I get the following
> error message:
>
> django_1         | Traceback (most recent call last):
> django_1         |   File "/usr/local/bin/invoke", line 11, in <module>
> django_1         |     sys.exit(program.run())
> django_1         |   File
> "/usr/local/lib/python2.7/site-packages/invoke/program.py", line 293, in run
> django_1         |     self.execute()
> django_1         |   File
> "/usr/local/lib/python2.7/site-packages/invoke/program.py", line 414, in
> execute
> django_1         |     executor.execute(*self.tasks)
> django_1         |   File
> "/usr/local/lib/python2.7/site-packages/invoke/executor.py", line 129, in
> execute
> django_1         |     result = call.task(*args, **call.kwargs)
> django_1         |   File
> "/usr/local/lib/python2.7/site-packages/invoke/tasks.py", line 115, in
> __call__
> django_1         |     result = self.body(*args, **kwargs)
> django_1         |   File "/usr/src/app/tasks.py", line 25, in update
> django_1         |     pub_port = _geonode_public_port()
> django_1         |   File "/usr/src/app/tasks.py", line 144, in
> _geonode_public_port
> django_1         |     os.getenv('GEONODE_INSTANCE_NAME', 'geonode')
> django_1         |   File "/usr/src/app/tasks.py", line 95, in
> _container_exposed_port
> django_1         |     ) if '{0}'.format(instname) in c.name][0]
> django_1         | IndexError: list index out of range
>
>
> As far as I understood, the error originated from tasks.py which does some
> kind of provisioning.
>
> But what my be the reason for that error and how can I fix it?
>
> Any help is appreciated! Thanks a lot!
>
> Steffen
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
> --
>
> ==
>
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
> Ing. Alessio Fabiani
>
> @alfa7691
> Founder/Technical Lead
>
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A - 55054  Massarosa (LU) - Italy
> phone: +39 0584 962313
> fax:     +39 0584 1660272
> mob:   +39 331 6233686
>
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
> -------------------------------------------------------
>
> 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.
>
>
> 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.
>
>

-- 

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A - 55054  Massarosa (LU) - Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686


http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------

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.


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180614/35fd0885/attachment-0001.html>


More information about the geonode-users mailing list