Article ID: 1808, created on Apr 19, 2007, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix

Symptoms

I tried to delete a domain in Plesk CP and get the error like below: ERROR: PleskUtilException       
tomcatmng is failed --remove-service --vhost-name=DOMAIN_NAME.COM ------------------------------------------------------------------------
0: /usr/local/psa/admin/plib/utilmng.php:57
    utilmng->call(string 'remove-service', array)
1: /usr/local/psa/admin/plib/tomcatmng.php:44
    tomcatmng->remove_service(string 'DOMAIN_NAME.COM')
2: /usr/local/psa/admin/plib/class.DSTomcat.php:227
    DSTomcat->delete()
3: /usr/local/psa/admin/plib/class.PhDomain.php:314
    PhDomain->reset(integer '0', boolean true, boolean false)
4: /usr/local/psa/admin/plib/class.BsDomain.php:313
    BsDomain->reset(integer '0')
5: /usr/local/psa/admin/plib/class.BsDomain.php:307
    BsDomain->delete(integer '0')
6: /usr/local/psa/admin/plib/class.BsDomain.php:540
    mdeleteDomains(array)
7: /usr/local/psa/admin/plib/class.Manager.php:352
    Manager->removeDomains(array)
8: /usr/local/psa/admin/htdocs/domains/domains.php3:209

Cause

Such error may occur if this domain Tomcat authorization file is missing. Please check it:

# ls -al  `awk '/CATALINA_HOME/{print $2}'  /etc/psa/psa.conf`/psa-users/DOMAIN_NAME.COM.xml

Replace 'DOMAIN_NAME.COM' with the real domain name that you are trying to delete in the command above.


Resolution

If the file does not exists, you can create it for example with 'touch' command:

# touch  `awk '/CATALINA_HOME/{print $2}'  /etc/psa/psa.conf`/psa-users/DOMAIN_NAME.COM.xml

where DOMAIN_NAME.COM should be replaced with the real domain name,  and then try to remove the domain again.

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF