Jump to content
We've recently updated our Privacy Statement, available here ×
  • Non-root installation or startup of JasperReports Server on Linux


    akonkin
    • Version: v5.6.1

    The problem could arise due to very different reasons, the most common is that you performed the installation as root user.

    Usually the permissions of all files after deploying the application are set to root:root. If the application server is started under a non-root user you can get the message similar to this one:

       WARN crypto.KeystoreManager: Unable to access keystore properties 2: java.lang.Exception: Keystore set up failed.
        ....
       WARN crypto.KeystoreManager: Unable to access keystore properties 2: java.io.FileNotFoundException: /root/.jrsks (Permission denied)
    

    Question:

    Does the application have an adjustment that can be configured to point to the user directory and that way the problem can be fixed?


    Answer:

    No, the application does not have any adjustments that could help you to fix the problem in such a way (via the Linux HOME system variable or its copy for the particular user)

    This problem can be fixed with the approaches that I quote below:

    1. make sure you are deploying with the user that will be used to start tomcat service, for example, "tomcat" user.

    2. run "js-ant deploy-webapp-pro" as "tomcat" user, with it delete the old deployment in /opt/tomcat/webapps/jasperserver-pro, and recreate and re-deploy the application again.

    The files, ".jrsks" and ".jrsksp" that are mentioned in the stack trace above will be placed in  "tomcat" home directory.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...