GeoServer not working with EFS as Data Directory

Description

Currently it seems not possible to run GIS server on AWS with EFS volume being used as data directory.

Setup:

  • Tomcat 8.5

  • GeoServer 2.15.3 (same issue with 2.16.0)

  • Amazon Linux 2

from tomcat.conf:

1 CATALINA_OPTS="-DGEOSERVER_DATA_DIR=/opt/geoserver"

df -h:

1 fs-xxxxxxx.efs.ap-southeast-2.amazonaws.com:/ 8.0E 0 8.0E 0% /opt/geoserver

folder and all subfolders are owned by tomcat, same usser which is running the app.

Works fine when this is a regular directory but doesn't work with EFS with following error:

1 2 Oct 2 01:37:40 ip-10-130-86-161 server: 02 Oct 01:37:40 WARN [geoserver.platform] - Found Java environment variable GEOSERVER_DATA_DIR set to /opt/geoserver , but this path does not exist Oct 2 01:37:40 ip-10-130-86-161 server: 02 Oct 01:37:40 INFO [geoserver.platform] - Falling back to embedded data directory: /var/lib/tomcat/webapps/geoserver/data

assuming tomcat user and accessing the dir proves that the user has right permissions

please advise of any further troubleshooting required for this ticket

Environment

None

Status

Assignee

Unassigned

Reporter

Sebastian Kasprzak

Priority

Medium
Configure