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

are hard link necessary ? #33

Open
MaxiReglisse opened this issue Mar 8, 2016 · 1 comment
Open

are hard link necessary ? #33

MaxiReglisse opened this issue Mar 8, 2016 · 1 comment

Comments

@MaxiReglisse
Copy link
Contributor

when src and dest are not on the same device, the hard link creation fails.
in roles/georchestra/tasks/nativelibs.yml, we have :

  • name: symlink gdal.jar to tomcat shared dir
    file: src=/usr/share/java/gdal.jar dest={{ tomcat_basedir }}/georchestra/shared/gdal.jar state=link
  • name: hardlink gdal.jar to geoserver libdir
    file: src=/usr/share/java/gdal.jar dest={{ tomcat_basedir }}/geoserver/webapps/geoserver/WEB-INF/lib/gdal.jar state=hard
    it fails with this message :
    TASK: [georchestra | hardlink gdal.jar to geoserver libdir] *******************
    failed: [georchestra-ppd] => {"failed": true, "path": "/opt/tomcat/geoserver/webapps/geoserver/WEB-INF/lib/gdal.jar", "state": "absent"}
    msg: Error while linking: [Errno 18] Invalid cross-device link
    FATAL: all hosts have already failed -- aborting

question : is hard link necessary ?

@landryb
Copy link
Member

landryb commented Mar 8, 2016

I dont remember the details, but iirc a symlink wasnt enough for geoserver to work with gdal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants