Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform independent distribution cannot find preconfigured data and settings #62

Open
emxsys opened this issue Jul 3, 2017 · 0 comments
Assignees
Labels

Comments

@emxsys
Copy link
Contributor

emxsys commented Jul 3, 2017

The GEOSERVER_DATA_DIR environment variable is not set in v0.3.0 platform independent binary distribution's startup.sh shell script. The GEOSERVER_DATA_DIR variable should point to the data_dir folder in the root of the distribution. Without this setting, GeoServer runs with the application defaults (no preconfigured data or settings).

Issue discovered by @eirizarry when testing on Mac OS.

Solution:

Suggested fix (taken from GeoServer 2.11.1):

#Find the configuration directory: GEOSERVER_DATA_DIR
if [ -z $GEOSERVER_DATA_DIR ]; then
    if [ -r "$GEOSERVER_HOME"/data_dir ]; then
        export GEOSERVER_DATA_DIR="$GEOSERVER_HOME"/data_dir
    else
        echo "No GEOSERVER_DATA_DIR found, using application defaults"
	      GEOSERVER_DATA_DIR=""
    fi
fi

Workaround

Prior to running startup.sh, set the GEOSERVER_DATA_DIR to the data_dir folder found at the root of the unzipped distribution.

@emxsys emxsys added the bug label Jul 3, 2017
@emxsys emxsys added this to the WWSK v0.5.0 milestone Aug 23, 2017
@emxsys emxsys self-assigned this Aug 23, 2017
@emxsys emxsys added the ready label Aug 23, 2017
@emxsys emxsys added backlog and removed ready labels Sep 5, 2017
@emxsys emxsys removed this from the WWSK v0.5.0 milestone Dec 13, 2017
@pdavidc pdavidc removed the backlog label Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants