Re: [Geoserver-users] Parameterized data_dir

2018-11-07 Thread Nuno Oliveira
Great ! thx for the feedback.
On Tue, 2018-11-06 at 15:11 +0100, Víctor González wrote:
> Hello,
> 
> Just for completeness, my infrastructure was quite complex with
> multiple components, etc. and the problem was that the
> -DALLOW_ENV_PARAMETRIZATION property was not arriving to GeoServer.
> It's working perfectly now!
> 
> Sorry for bothering.
> 
> El lun., 5 nov. 2018 a las 7:33, Víctor González (
> omati.co>) escribió:
> > Hi,
> > 
> > Yes, I did. Although I found that the GeoServerEnvironment class is
> > in the platform project and Alessio suggested that the extension is
> > not necessary:
> > http://osgeo-org.1560.x6.nabble.com/spring-PropertyPlaceholderConfi
> > gurer-for-data-directory-files-tp5313190p5313197.html
> > 
> > I'll try to do it again with a fresh installation; maybe there's
> > something messed up with my current setup.
> > 
> > Cheers.
> > 
> > El vie., 2 nov. 2018 a las 17:58, Nuno Oliveira (
> > -solutions.it>) escribió:
> > > Hi,
> > > 
> > > your configuration look good, did you install the Backup &
> > > Restore module ?
> > > https://docs.geoserver.org/latest/en/user/community/backuprestore
> > > /installation.html
> > > 
> > > Regards,
> > > 
> > > Nuno Oliveira
> > > 
> > > On Fri, 2018-11-02 at 14:17 +0100, Víctor González wrote:
> > > > Hi all,
> > > > 
> > > > I was trying to use the technique explained here: 
> > > > 
> > > > https://docs.geoserver.org/latest/en/user/community/backupresto
> > > > re/configtemplate.html 
> > > > 
> > > > but I cannot make it work. I set the host of a PG datastore to
> > > > ${mypghost}, wrote a /geoserver-
> > > > environment.properties with mypghost=localhost and then
> > > > restarted with -DALLOW_ENV_PARAMETRIZATION=true but it doesn't
> > > > connect (it does when setting "localhost" directly).
> > > > 
> > > > Then I tried to remove the geoserver-environment.properties
> > > > file and set the logging level to verbose but I don't see this
> > > > message in the logs anywhere:
> > > > 
> > > > https://github.com/geoserver/geoserver/blob/master/src/platform
> > > > /src/main/java/org/geoserver/platform/GeoServerEnvironment.java
> > > > #L104
> > > > https://github.com/geoserver/geoserver/blob/master/src/platform
> > > > /src/main/java/org/geoserver/platform/GeoServerEnvironment.java
> > > > #L120
> > > > 
> > > > It seems like the bean is never initialized. Do I need to
> > > > configure something else to enable this feature?
> > > > 
> > > > Thanks in advance.
> > > > 
> > > > -- 
> > > > Víctor González
> > > > http://geomati.co
> > > > ___
> > > > Geoserver-users mailing list
> > > > 
> > > > Please make sure you read the following two resources before
> > > > posting to this list:
> > > > - Earning your support instead of buying it, but Ian Turton: ht
> > > > tp://www.ianturton.com/talks/foss4g.html#/
> > > > - The GeoServer user list posting guidelines: http://geoserver.
> > > > org/comm/userlist-guidelines.html
> > > > 
> > > > If you want to request a feature or an improvement, also see
> > > > this: https://github.com/geoserver/geoserver/wiki/Successfully-
> > > > requesting-and-integrating-new-features-and-improvements-in-
> > > > GeoServer
> > > > 
> > > > 
> > > > Geoserver-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> > > -- 
> > > Regards,
> > > Nuno Oliveira
> > > ==
> > > GeoServer Professional Services from the
> > > experts! 
> > > Visit http://goo.gl/it488V for more information.
> > > ==
> > > 
> > > Nuno Miguel Carvalho Oliveira
> > > @nmcoliveira
> > > Software Engineer
> > > 
> > > GeoSolutions S.A.S.
> > > Via di Montramito 3/A
> > > 55054  Massarosa (LU)
> > > Italy
> > > phone: +39 0584 962313
> > > fax:      +39 0584 1660272
> > > 
> > > 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 

Re: [Geoserver-users] Parameterized data_dir

2018-11-06 Thread Víctor González
Hello,

Just for completeness, my infrastructure was quite complex with multiple
components, etc. and the problem was that the -DALLOW_ENV_PARAMETRIZATION
property was not arriving to GeoServer. It's working perfectly now!

Sorry for bothering.

El lun., 5 nov. 2018 a las 7:33, Víctor González (<
victor.gonza...@geomati.co>) escribió:

> Hi,
>
> Yes, I did. Although I found that the GeoServerEnvironment class is in the
> platform project and Alessio suggested that the extension is not necessary:
>
> http://osgeo-org.1560.x6.nabble.com/spring-PropertyPlaceholderConfigurer-for-data-directory-files-tp5313190p5313197.html
>
> I'll try to do it again with a fresh installation; maybe there's something
> messed up with my current setup.
>
> Cheers.
>
> El vie., 2 nov. 2018 a las 17:58, Nuno Oliveira (<
> nuno.olive...@geo-solutions.it>) escribió:
>
>> Hi,
>>
>> your configuration look good, did you install the Backup & Restore module
>> ?
>>
>> https://docs.geoserver.org/latest/en/user/community/backuprestore/installation.html
>>
>> Regards,
>>
>> Nuno Oliveira
>>
>> On Fri, 2018-11-02 at 14:17 +0100, Víctor González wrote:
>>
>> Hi all,
>>
>> I was trying to use the technique explained here:
>>
>>
>> https://docs.geoserver.org/latest/en/user/community/backuprestore/configtemplate.html
>>
>>
>> but I cannot make it work. I set the host of a PG datastore to
>> ${mypghost}, wrote a /geoserver-environment.properties with
>> mypghost=localhost and then restarted with -DALLOW_ENV_PARAMETRIZATION=true
>> but it doesn't connect (it does when setting "localhost" directly).
>>
>> Then I tried to remove the geoserver-environment.properties file and set
>> the logging level to verbose but I don't see this message in the logs
>> anywhere:
>>
>>
>> https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L104
>>
>> https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L120
>>
>> It seems like the bean is never initialized. Do I need to configure
>> something else to enable this feature?
>>
>> Thanks in advance.
>>
>> --
>> Víctor González
>> http://geomati.co
>>
>> ___
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to this 
>> list:
>> - Earning your support instead of buying it, but Ian Turton: 
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines: 
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this: 
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>> Geoserver-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>> --
>> Regards,
>> Nuno Oliveira
>> ==
>> GeoServer Professional Services from the
>> experts!
>> Visit http://goo.gl/it488V for more information.
>> ==
>>
>> Nuno Miguel Carvalho Oliveira
>> @nmcoliveira
>> Software Engineer
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> 55054  Massarosa (LU)
>> Italy
>> phone: +39 0584 962313
>> fax:  +39 0584 1660272
>> http://www.geo-solutions.ithttp://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.
>>
>>
>
> --
> Víctor González
> http://geomati.co
>


-- 
Víctor González
http://geomati.co
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 

Re: [Geoserver-users] Parameterized data_dir

2018-11-04 Thread Víctor González
Hi,

Yes, I did. Although I found that the GeoServerEnvironment class is in the
platform project and Alessio suggested that the extension is not necessary:
http://osgeo-org.1560.x6.nabble.com/spring-PropertyPlaceholderConfigurer-for-data-directory-files-tp5313190p5313197.html

I'll try to do it again with a fresh installation; maybe there's something
messed up with my current setup.

Cheers.

El vie., 2 nov. 2018 a las 17:58, Nuno Oliveira (<
nuno.olive...@geo-solutions.it>) escribió:

> Hi,
>
> your configuration look good, did you install the Backup & Restore module ?
>
> https://docs.geoserver.org/latest/en/user/community/backuprestore/installation.html
>
> Regards,
>
> Nuno Oliveira
>
> On Fri, 2018-11-02 at 14:17 +0100, Víctor González wrote:
>
> Hi all,
>
> I was trying to use the technique explained here:
>
>
> https://docs.geoserver.org/latest/en/user/community/backuprestore/configtemplate.html
>
>
> but I cannot make it work. I set the host of a PG datastore to
> ${mypghost}, wrote a /geoserver-environment.properties with
> mypghost=localhost and then restarted with -DALLOW_ENV_PARAMETRIZATION=true
> but it doesn't connect (it does when setting "localhost" directly).
>
> Then I tried to remove the geoserver-environment.properties file and set
> the logging level to verbose but I don't see this message in the logs
> anywhere:
>
>
> https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L104
>
> https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L120
>
> It seems like the bean is never initialized. Do I need to configure
> something else to enable this feature?
>
> Thanks in advance.
>
> --
> Víctor González
> http://geomati.co
>
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to this 
> list:
> - Earning your support instead of buying it, but Ian Turton: 
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: 
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this: 
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
> Geoserver-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> --
> Regards,
> Nuno Oliveira
> ==
> GeoServer Professional Services from the
> experts!
> Visit http://goo.gl/it488V for more information.
> ==
>
> Nuno Miguel Carvalho Oliveira
> @nmcoliveira
> Software Engineer
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:  +39 0584 1660272
> http://www.geo-solutions.ithttp://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.
>
>

-- 
Víctor González
http://geomati.co
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Parameterized data_dir

2018-11-02 Thread Nuno Oliveira
Hi,
your configuration look good, did you install the Backup & Restore
module ?
https://docs.geoserver.org/latest/en/user/community/backuprestore/insta
llation.html
Regards,
Nuno Oliveira
On Fri, 2018-11-02 at 14:17 +0100, Víctor González wrote:
> Hi all,
> 
> I was trying to use the technique explained here: 
> 
> https://docs.geoserver.org/latest/en/user/community/backuprestore/con
> figtemplate.html 
> 
> but I cannot make it work. I set the host of a PG datastore to
> ${mypghost}, wrote a /geoserver-environment.properties with
> mypghost=localhost and then restarted with
> -DALLOW_ENV_PARAMETRIZATION=true but it doesn't connect (it does when
> setting "localhost" directly).
> 
> Then I tried to remove the geoserver-environment.properties file and
> set the logging level to verbose but I don't see this message in the
> logs anywhere:
> 
> https://github.com/geoserver/geoserver/blob/master/src/platform/src/m
> ain/java/org/geoserver/platform/GeoServerEnvironment.java#L104
> https://github.com/geoserver/geoserver/blob/master/src/platform/src/m
> ain/java/org/geoserver/platform/GeoServerEnvironment.java#L120
> 
> It seems like the bean is never initialized. Do I need to configure
> something else to enable this feature?
> 
> Thanks in advance.
> 
> -- 
> Víctor González
> http://geomati.co
> ___
> Geoserver-users mailing list
> 
> Please make sure you read the following two resources before posting
> to this list:
> - Earning your support instead of buying it, but Ian Turton: http://w
> ww.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/co
> mm/userlist-guidelines.html
> 
> If you want to request a feature or an improvement, also see this: ht
> tps://github.com/geoserver/geoserver/wiki/Successfully-requesting-
> and-integrating-new-features-and-improvements-in-GeoServer
> 
> 
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
-- 
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the
experts! 
Visit http://goo.gl/it488V for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

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

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-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users