[GeoNode-users] Change Geonode admin password on Docker installation

francesco bartoli xbartolone at gmail.com
Mon Oct 15 00:46:35 PDT 2018


Hi Matteo,

after having read carefully your email I would figure out it saying that
password and categories are fixtures and at the moment they are not
persisted.
The quickest way you can do it is an hack by adding a new variable in the
.env file django.env, i.e. SKIP_FIXTURES, and an "if" control here
https://github.com/GeoNode/geonode/blob/master/entrypoint.sh#L22 to skip
that couple of lines.

In the long term we have to decide how to manage this as it looks like to
me a sort of backup policy.

Hope this helps.
Francesco

Il giorno lun 15 ott 2018 alle ore 08:56 Matteo Conte <
matteo.conte at abitat.it> ha scritto:

> Hi Francesco,
>    I tried with docker-compose commands. I stopped all geonode containers
> with docker-compose stop commands and then I start the containers with
> docker-compose start but I get the same result.
> Kind regards
> Matteo
>
> ------------------------------
> *Da: *"Francesco Bartoli" <xbartolone at gmail.com>
> *A: *"Alessio Fabiani" <alessio.fabiani at geo-solutions.it>, "matteo.conte"
> <matteo.conte at abitat.it>
> *Cc: *"geonode-users" <geonode-users at lists.osgeo.org>
> *Inviato: *Sabato, 13 ottobre 2018 18:34:17
> *Oggetto: *Re: [GeoNode-users] Change Geonode admin password on Docker
> installation
>
> Hi Matteo,
>
> Can you please try to reproduce the same issue with the plain
> docker-compose commands?
>
> Thanks,
> Francesco
> Il 13 ott 2018, 09:24 +0200, Matteo Conte <matteo.conte at abitat.it>, ha
> scritto:
>
> Hi Alessio,
>    the guide on
> https://github.com/GeoNode/geonode-project#start-your-server is similar
> to this
> http://docs.geonode.org/en/master/tutorials/install_and_admin/running_docker/setup_docker_compose.html#running-geonode-stack-on-localhost.
> I use portainer.io interface to manage docker and to start/stop container
> or stack. Another couple of very strange things:
>
>    - If I change the admin password this will be reset after restart
>    geonode stack;
>    - If I edit topics category these will be reset after restart geonode
>    stack;
>    - BUT If I add layers/maps/users these remain after restart geonode
>    stack.
>
> Why some settings remain and others do not?
> Kind Regards
> Matteo
> ------------------------------
> *Da:* "Alessio Fabiani" <alessio.fabiani at geo-solutions.it>
> *A:* "matteo.conte" <matteo.conte at abitat.it>
> *Cc:* "geonode-users" <geonode-users at lists.osgeo.org>
> *Inviato:* Venerdì, 12 ottobre 2018 12:39:14
> *Oggetto:* Re: [GeoNode-users] Change Geonode admin password on Docker
> installation
>
> P.S.: for this specific issue, be sure you DO NOT build the image every
> time
>
> Il giorno ven 12 ott 2018 alle ore 12:04 Matteo Conte <
> matteo.conte at abitat.it> ha scritto:
>
>> Hi All,
>>   I've installed Geonode (2.10_rc4) on docker following this guide
>> http://docs.geonode.org/en/master/tutorials/install_and_admin/running_docker/index.html
>> .
>> When I change Geonode admin password and restarted the docker containers
>> the password return to be the default.
>> Kind regards
>> Matteo
>>
>> _______________________________________________
>> 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 <+39%200584%20962313>
> fax:     +39 0584 1660272 <+39%200584%201660272>
> mob:   +39 331 6233686 <+39%20331%206233686>
>
>
> 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
> 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/20181015/72009234/attachment.html>


More information about the geonode-users mailing list