Menu

OpenGTS Tomcat Error

Help
2014-01-15
2019-05-10
  • ahmedkhalaf92

    ahmedkhalaf92 - 2014-01-15

    I got these errors when executing checkInstall.sh:

    ** Found 2 Error(s)!


    1) This application is being run as superuser 'root'.
    [Reason: This application should be run under a user other than 'root'.]
    [Fix: Change to a different user when running GTS/OpenGTS.]
    2) Tomcat contains non-readable files
    [Reason: Some Tomcat files do not have the 'read' permission bit set or are owned by a
    different user.]

    [Fix: Run 'chmod' to set the read bit, or 'chown' to change to the proper user.]

    ======================================================================
    Regarding the second error, some loop in the tomcat directory seems to be happening. Here's what is listed in the checkInstall.sh output:
    CATALINA_HOME ==> /usr/local/apache-tomcat-6.0.37
    ERROR: Cannot read - /usr/local/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37/apache-tomcat-6.0.37
    ERROR: Tomcat '$CATALINA_HOME/' directory contains non-readable files!

    Any help? Thanks.

     

    Last edit: ahmedkhalaf92 2014-01-15
  • tea4two

    tea4two - 2014-01-15

    The Tomcat user can't read/write tomcat files.

    Like suggested in the checkinstall.sh output, you need to run the chmod command to change the owner and group for tomcat folder, subfolders and files.

    The tomcat owner/group is different for different distributions. Check yours.

    Otherwise is possible to specify the correct owner in the tomcat startup script.

    This issue occours when you install tomcat from scratch, usually the tomcat released with your distribution is correctly configure.

    Another issue could be due to some security settings of your distribution, for example SeLinux in the Fedora/Centos/RedHat or security settings for tomcat in Ubuntu/Debian. ecc. ecc.

    Regards,
    - Pierluigi

     
    • ahmedkhalaf92

      ahmedkhalaf92 - 2014-01-15

      Thanks.But I even did chmod 777 on the CATALINE_HOME and still have the error.

       
    • ahmedkhalaf92

      ahmedkhalaf92 - 2014-01-15

      Thanks.But I even did chmod 777 on the CATALINE_HOME and still have the error.

       
  • tea4two

    tea4two - 2014-01-15

    Which Linux distribution are you using ?

    Could be a security issue, for example Ubuntu is conservative and lock several access to files.
    Read carefully the OpenGTS installation manual, is very well explained how to solve this issue.

    Regards,
    - Pierluigi

     
  • benchaa

    benchaa - 2019-05-10

    Hi,
    I have the same problem, i need help please ...

     

Log in to post a comment.