Reconfiguration of domains fails: Unable to register configuration file: template=domainVhost, domain.id=

Created:

2016-11-16 12:50:06 UTC

Modified:

2017-04-24 12:10:18 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Reconfiguration of domains fails: Unable to register configuration file: template=domainVhost, domain.id=

Applicable to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.x and below for Linux

Symptoms

Reconfiguration of domains fails with error:

# /opt/psa/admin/sbin/httpdmng --reconfigure-all
Unable to register configuration file: template=domainVhost, domain.id=169
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
)
Details: Empty error message from utility.

Cause

Database inconsistency.

Resolution

  1. Create psa database backup using article KB213904125

  2. Find database inconsistency:

    mysql> select dom_id, DomainServices.type, DomainServices.ipCollectionId, ip_address_id, name as domain_name, login as owner_login from DomainServices, domains, clients, ip_pool where ipCollectionId not in (select IpAddressesCollections.ipCollectionId from IpAddressesCollections) and domains.id=DomainServices.dom_id and clients.id = domains.cl_id and ip_pool.id = clients.pool_id and DomainServices.type="web" group by ipCollectionId;
    +--------+------+----------------+---------------+----------------+----------------+
    | dom_id | type | ipCollectionId | ip_address_id | domain_name | owner_login |
    +--------+------+----------------+---------------+----------------+----------------+
    | 169 | web | 113 | 3 | example.com | example_user |
    +--------+------+----------------+---------------+----------------+----------------+
    1 row in set (0.00 sec)
  3. Fix the issue:

    mysql> insert into IpAddressesCollections (ipCollectionId, ipAddressId) values (113,3);
    Query OK, 1 row affected (0.01 sec)
  4. Reconfigure domains again:

    /opt/psa/admin/sbin/httpdmng --reconfigure-all
Have more questions? Submit a request
Please sign in to leave a comment.