Derek,

symlinks should work, but note that access depends on the permissions of 
the symlink target, not of the symlink itself.

What is the output of this?:

ls -al /mnt/sdi/spatial

If permissions are the problem, you can change the ownership and 
permissions of /mnt/sdi/spatial (*recursively*) with these commands, but 
note that this may not be what you want so use with caution:

chown -R tomcat7:tomcat7 /mnt/sdi/spatial
chmod -R ug+rX /mnt/sdi/spatial

Kind regards,
Ben.

On 05/08/14 21:14, Derek wrote:
> Hi
>
> We have been struggling to get GeoServer to follow data stored in a
> symlinked directory (symlinked from GeoServer's actual data directory).  All
> permissions have been set and the owner/group is set to Tomcat7. The ls
> output shows:
>
> lrwxrwxrwx 1 tomcat7 tomcat7   21 Aug  4 13:03 spatial -> /mnt/sdi/spatial/
>
> and this link and file system can be navigated from the command line.
>
> If any of the data is copied over from the  symlinked directory to the
> actual data directory (in our case, at /var/geoserver/data/), then it can be
> loaded as expected.  If not, then we get an error message:
>
> Error creating data store, check the parameters. Error message: Could not
> acquire data access 'XYZ'
>
> The log show the same message, along with the usual NullPointerException.
>
> Is there an additional Tomcat or GeoServer configuration that is required to
> access symlinked directories?
>
> Thanks!
> Derek
>
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Symlinks-for-data-sub-directories-tp5155119.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to