Tomcat error: Memory database file psa-users/example.com.xml cannot be read

Created:

2016-11-16 13:19:46 UTC

Modified:

2017-08-16 16:18:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Tomcat error: Memory database file psa-users/example.com.xml cannot be read

Applicable to:

  • Plesk for Linux
  • Plesk 11.x for Linux

Symptoms

The following error occurs:

Tomcat error: Memory database file psa-users/example.com.xml cannot be read

Cause

Most likely $CATALINA_HOME/psa-users/example.com.xml missing.

Resolution

If $CATALINA_HOME/psa-users/example.com.xml file doesn't exist it should be created

  1. Firstly, get manager's login and password for the domain:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e 'select p.parameter,p.value from Parameters p, DomainServices ds, domains d where p.id=ds.parameters_id and ds.type="tomcat" and ds.dom_id=d.id and d.name="example.com";'
    +----------------+----------------------------------+
    | parameter | value |
    +----------------+----------------------------------+
    | manager_login | 3030435a3bce1dff91a1a98d6f6be993 |
    | manager_passwd | d59a93a6a8ebd4b90421ff0fe47e76df |
    +----------------+----------------------------------+``
  2. Then use these values to create the file.

    # export PSA_PASSWORD="d59a93a6a8ebd4b90421ff0fe47e76df"

    # $PRODUCT_ROOT_D/admin/sbin/tomcatmng --install-service --vhost-name="DOMAIN_NAME" --manager-login="3030435a3bce1dff91a1a98d6f6be993"`
  3. Restart tomcat:

    # service tomcat restart
Have more questions? Submit a request
Please sign in to leave a comment.