GeoServer/GeoNode configuration

Bug #972195 reported by Ben Wyss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
Unassigned

Bug Description

The GeoServer root directory is maintained as a GitHub repository. Because of this the /var/lib/tomcat6/webapps/geoserver directory is a symlink to /usr/local/src/oq-ui-geoserver/geoserver.

When GeoNode and GeoServer interact with the file system, it seems that root becomes the owner of some of the files and directories in /var/lib/tomcat6/webapps/geoserver. When this happens tomcat can not access those files.

We need to identify how this can be resolved so that tomcat maintains ownership of all files and directories in /var/lib/tomcat6/webapps/geoserver

Tags: ui
Ben Wyss (bmwyss)
Changed in openquake:
status: New → Confirmed
Revision history for this message
Ben Wyss (bmwyss) wrote :

geoserver configuration

Download

Download the git repository:

$ git clone git://github.com/gem/oq-ui-geoserver.git
Enter into oq-ui-client directory:

Installation

$ sudo su # (remember to turn on at the end of the paragraph)
# service tomcat6 stop
# mkdir -p /var/lib/openquake/oq-ui-geoserver
# cd oq-ui-geoserver
# git archive master | tar -x --owner=tomcat6 --group=tomcat6 -C /var/lib/openquake/oq-ui-geoserver

# # ONLY IF YOU HAVE AN ORIGINAL INSTALLATION
# mv /var/lib/tomcat6/webapps/geoserver /var/lib/openquake/geoserver.orig

# ln -s /var/lib/openquake/oq-ui-geoserver/geoserver /var/lib/tomcat6/webapps/geoserver
Configuration

Into /var/lib/tomcat6/webapps/geoserver/WEB-INF/web.xml:

modify the GEONODE_BASE_URL with your <hostname>
update the GEOSERVER_DATA_DIR with the new path.
...
<context-param>
  <param-name>GEONODE_BASE_URL</param-name>
  <param-value>http://<YOUR_HOSTNAME>/</param-value>
</context-param>
...
<context-param>
  <param-name>GEOSERVER_DATA_DIR</param-name>
  <param-value>/var/lib/tomcat6/webapps/geoserver/data/</param-value>
</context-param>
Run again tomcat:

# service tomcat6 start
test

Use your browser to navigate the url http://<your_hostname>/geoserver/

Changed in openquake:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.