[Geoserver-users] GEOSERVER_DATA_DIR in 1.7.0-RC2

Hi,

I tried to upgrade one of my old 1.6.3 into 1.7.0-RC2. I have separate data_dir outside of the container. But somehow 1.7RC2 seems to be ignoring the configuration. Even the security properties are fetched from the instance's data directory, not from my data_dir. I have this in my web.xml, which used to do the trick.
    <context-param>
       <param-name>GEOSERVER_DATA_DIR</param-name>
        <param-value>/var/digikartta.net/karsamaki</param-value>
    </context-param>
Is this a bug or has something changed? Does the data_dir of 1.6.3 work with 1.7.0?

- mika -

No,
as far as I know, no other environment variables are involved with the GEOSERVER_DATA_DIR.

I also tested it by copying the "external data folder" into GS's data folder. It seems to be working fine, all the coverages and feature types are there. On the other hand, if I remove the data folder from Geoserver installation, it stops working. All this, although I have GEOSERVER_DATA_DIR configured to be elsewhere.

- mika -

Arne Kepp kirjoitti:

The data directory should work in 1.7.x.

I'll look into it, can you see whethere there are any other environment variables set for GEOSERVER_DATA_DIR ? (ie. Java, specified with java -D ....) or real environment variables ?

-Arne

Lehtonen, Mika wrote:

Hi,

I tried to upgrade one of my old 1.6.3 into 1.7.0-RC2. I have separate data_dir outside of the container. But somehow 1.7RC2 seems to be ignoring the configuration. Even the security properties are fetched from the instance's data directory, not from my data_dir. I have this in my web.xml, which used to do the trick.
    <context-param>
       <param-name>GEOSERVER_DATA_DIR</param-name>
        <param-value>/var/digikartta.net/karsamaki</param-value>
    </context-param>
Is this a bug or has something changed? Does the data_dir of 1.6.3 work with 1.7.0?

- mika -

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

Hi Arne,

I managed to isolate the problem a little bit. I downloaded one of the nightly builds (080608) and could replicate the problem. But if I install 1.7.0 beta1, everything is working just fine, with the same setup and same data_dir configuration. I also tested the web.xml by copying it from the beta1 to the RC2. I didn't help either. IMHO, there's something wrong with the data_dir setup in these latest 1.7.0 versions?

- mika -

Arne Kepp kirjoitti:

The data directory should work in 1.7.x.

I'll look into it, can you see whethere there are any other environment variables set for GEOSERVER_DATA_DIR ? (ie. Java, specified with java -D ....) or real environment variables ?

-Arne

Lehtonen, Mika wrote:

Hi,

I tried to upgrade one of my old 1.6.3 into 1.7.0-RC2. I have separate data_dir outside of the container. But somehow 1.7RC2 seems to be ignoring the configuration. Even the security properties are fetched from the instance's data directory, not from my data_dir. I have this in my web.xml, which used to do the trick.
    <context-param>
       <param-name>GEOSERVER_DATA_DIR</param-name>
        <param-value>/var/digikartta.net/karsamaki</param-value>
    </context-param>
Is this a bug or has something changed? Does the data_dir of 1.6.3 work with 1.7.0?

- mika -

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

I just tried this out and could not replicate with a recent 1.7.x build. Which container are you using? Tomcat?

Lehtonen, Mika wrote:

Hi Arne,

I managed to isolate the problem a little bit. I downloaded one of the nightly builds (080608) and could replicate the problem. But if I install 1.7.0 beta1, everything is working just fine, with the same setup and same data_dir configuration. I also tested the web.xml by copying it from the beta1 to the RC2. I didn't help either. IMHO, there's something wrong with the data_dir setup in these latest 1.7.0 versions?

- mika -

Arne Kepp kirjoitti:

The data directory should work in 1.7.x.

I'll look into it, can you see whethere there are any other environment variables set for GEOSERVER_DATA_DIR ? (ie. Java, specified with java -D ....) or real environment variables ?

-Arne

Lehtonen, Mika wrote:

Hi,

I tried to upgrade one of my old 1.6.3 into 1.7.0-RC2. I have separate data_dir outside of the container. But somehow 1.7RC2 seems to be ignoring the configuration. Even the security properties are fetched from the instance's data directory, not from my data_dir. I have this in my web.xml, which used to do the trick.
    <context-param>
       <param-name>GEOSERVER_DATA_DIR</param-name>
        <param-value>/var/digikartta.net/karsamaki</param-value>
    </context-param>
Is this a bug or has something changed? Does the data_dir of 1.6.3 work with 1.7.0?

- mika -

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org

Yep,

Tomcat 6, CentOS 4.6, Java JDK 1.6. I am now running latest 1.6.x and it works just fine, as did 1.7.0 beta1. The procedure has been same all the time while testing: deploy war, edit web.xml (comments off and replace the data_dir with your own), restart Geoserver or Tomcat. 1.7.0RC2 and that nightly build ignore the GEOSERVER_DATA_DIR setting. All the 1.6.x and 1.7.0 beta1 do not. Can't understand..

- mika -

Justin Deoliveira kirjoitti:

I just tried this out and could not replicate with a recent 1.7.x build. Which container are you using? Tomcat?

Lehtonen, Mika wrote:

Hi Arne,

I managed to isolate the problem a little bit. I downloaded one of the nightly builds (080608) and could replicate the problem. But if I install 1.7.0 beta1, everything is working just fine, with the same setup and same data_dir configuration. I also tested the web.xml by copying it from the beta1 to the RC2. I didn't help either. IMHO, there's something wrong with the data_dir setup in these latest 1.7.0 versions?

- mika -

Arne Kepp kirjoitti:

The data directory should work in 1.7.x.

I'll look into it, can you see whethere there are any other environment variables set for GEOSERVER_DATA_DIR ? (ie. Java, specified with java -D ....) or real environment variables ?

-Arne

Lehtonen, Mika wrote:

Hi,

I tried to upgrade one of my old 1.6.3 into 1.7.0-RC2. I have separate data_dir outside of the container. But somehow 1.7RC2 seems to be ignoring the configuration. Even the security properties are fetched from the instance's data directory, not from my data_dir. I have this in my web.xml, which used to do the trick.
    <context-param>
       <param-name>GEOSERVER_DATA_DIR</param-name>
        <param-value>/var/digikartta.net/karsamaki</param-value>
    </context-param>
Is this a bug or has something changed? Does the data_dir of 1.6.3 work with 1.7.0?

- mika -

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

It's getting weirder. I tried 1.7.0-RC1. I copied the data folder outside of the deployment and left the original in its place. Then I set the GEOSERVER_DATA_DIR to that "external" data folder. Geoserver started up but the authentication was fetched from the "internal" security folder (different passwords). But if I try to e.g. delete some featureType, it will crash. Is there somekind of a picking order of which data folder to use?
In 1.6.x branch you could easily left the original data folder in it's place. I sometimes forgot its existence, but it never did any harm.

mika

Justin Deoliveira kirjoitti:

I just tried this out and could not replicate with a recent 1.7.x build. Which container are you using? Tomcat?

Lehtonen, Mika wrote:

Hi Arne,

I managed to isolate the problem a little bit. I downloaded one of the nightly builds (080608) and could replicate the problem. But if I install 1.7.0 beta1, everything is working just fine, with the same setup and same data_dir configuration. I also tested the web.xml by copying it from the beta1 to the RC2. I didn't help either. IMHO, there's something wrong with the data_dir setup in these latest 1.7.0 versions?

- mika -

Arne Kepp kirjoitti:

The data directory should work in 1.7.x.

I'll look into it, can you see whethere there are any other environment variables set for GEOSERVER_DATA_DIR ? (ie. Java, specified with java -D ....) or real environment variables ?

-Arne

Lehtonen, Mika wrote:

Hi,

I tried to upgrade one of my old 1.6.3 into 1.7.0-RC2. I have separate data_dir outside of the container. But somehow 1.7RC2 seems to be ignoring the configuration. Even the security properties are fetched from the instance's data directory, not from my data_dir. I have this in my web.xml, which used to do the trick.
    <context-param>
       <param-name>GEOSERVER_DATA_DIR</param-name>
        <param-value>/var/digikartta.net/karsamaki</param-value>
    </context-param>
Is this a bug or has something changed? Does the data_dir of 1.6.3 work with 1.7.0?

- mika -

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users