Geonode Docker provisioning problems. tasks.py

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Geonode Docker provisioning problems. tasks.py

John, Steffen
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode Docker provisioning problems. tasks.py

Alessio Fabiani-2
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


Notice the differences with the version you are currently using





Il giorno gio 14 giu 2018 alle ore 09:48 John, Steffen <[hidden email]> 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
[hidden email]
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.


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode Docker provisioning problems. tasks.py

John, Steffen
Thanks, Alessio.

Which GeoNode version is actually in the master branch? is it the current stable version 2.8?

Steffen
--

<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4&#43;JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCABcAKYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4&#43;Tl5ufo6erx8vP09fb3&#43;Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECA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RRQAUUUUAFFFFAH//2Q==">


Steffen John

Geodaten und Anwendungsentwicklung

Tel. +49 (0)30 22183-3534 | Fax +49 (0)30 60989-99


[hidden email]


atene KOM GmbH

Agentur für Kommunikation, Organisation und Management

Invalidenstraße 91 | 10115 Berlin



www.atenekom.eu | Link All | Apps | facebook | XING | YouTube

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


Notice the differences with the version you are currently using





Il giorno gio 14 giu 2018 alle ore 09:48 John, Steffen <[hidden email]> 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
[hidden email]
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.


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode Docker provisioning problems. tasks.py

Alessio Fabiani-2
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 <[hidden email]> 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


[hidden email]


atene KOM GmbH

Agentur für Kommunikation, Organisation und Management

Invalidenstraße 91 | 10115 Berlin



www.atenekom.eu | Link All | Apps | facebook | XING | YouTube

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


Notice the differences with the version you are currently using





Il giorno gio 14 giu 2018 alle ore 09:48 John, Steffen <[hidden email]> 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
[hidden email]
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.


_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users
Reply | Threaded
Open this post in threaded view
|

Re: Geonode Docker provisioning problems. tasks.py

xbartolone
John,

I'd suggest to play with the docker stuff from master or eventually 2.7.x as Alessio already told you.

best,
Francesco

Il giorno gio 14 giu 2018 alle ore 11:15 Alessio Fabiani <[hidden email]> ha scritto:
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 <[hidden email]> 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


[hidden email]


atene KOM GmbH

Agentur für Kommunikation, Organisation und Management

Invalidenstraße 91 | 10115 Berlin



www.atenekom.eu | Link All | Apps | facebook | XING | YouTube

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


Notice the differences with the version you are currently using





Il giorno gio 14 giu 2018 alle ore 09:48 John, Steffen <[hidden email]> 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
[hidden email]
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.

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users

_______________________________________________
geonode-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geonode-users