Webserver Configurations Troubleshooter error: Can not reconfigure web server configurations: Unable to execute, Domain with name '' does not exist

Created:

2016-11-16 12:47:57 UTC

Modified:

2017-08-16 17:11:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Webserver Configurations Troubleshooter error: Can not reconfigure web server configurations: Unable to execute, Domain with name '' does not exist

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

Unable to rebuild files in Webserver Configurations Troubleshooter:

PLESK_ERROR: Can not reconfigure web server configurations: Unable to execute
httpdmng: Domain with name '' does not exist

Webserver Configurations Troubleshooter shows an error next to domainVhost.php file that is marked as deleted.

The following errors are found in /var/log/plesk/panel.log file:

ERR [1] Domain with name '' does not exist
ERR [1] /usr/local/psa/admin/bin/httpdmng '--reconfigure-domains' '' failed with message: Domain with name '' does not exist
ERR [panel] Can not reconfigure web server configurations: Unable to execute httpdmng: Domain with name '' does not exist<br />

There is a database inconsistency found:

# plesk repair db -n
Checking the Plesk database using the native database server tools .. [OK]
Checking the structure of the Plesk database ........................ [OK]
Checking the consistency of the Plesk database
Inconsistency in the table 'DomainServices' for the column dom_id:
No rows in the table 'domains' with id = X ....................... [WARNING]
Error messages: 0; Warnings: 1; Errors resolved: 0

There is an entry in DomainServices table for domain with id=X:

MYSQL_LIN: select * from DomainServices where dom_id not in (select id from domains);
+-----+--------+------+--------+---------------+----------------+
| id | dom_id | type | status | parameters_id | ipCollectionId |
+-----+--------+------+--------+---------------+----------------+
| 113 | X | web | 0 | 0 | 113 |
+-----+--------+------+--------+---------------+----------------+

There is an entry in Configurations table that refers to domain with id=X:

MYSQL_LIN: select id,name, from Configurations where objectid=X;
+-----+---------------------------+
| id | name |
+-----+---------------------------+
| 1 | server |
+-----+---------------------------+
1 row in set (0.00 sec)

But domain with id=X does not exist:

MYSQL_LIN: select name from domains where id=X;
Empty set (0.00 sec)

Cause

Database inconsistency. Domain is absent in database, while entries about domain's configuration file are still present in psa database.

Resolution

Remove orphan records from psa database:

  1. Login to the server over SSH
  2. Create a psa backup:

    # plesk db dump > psa_backup.sql
  3. Remove orphan records:

    mysql> delete from Configurations where objectid=X and objectType='domain';
    mysql> delete from DomainServices where dom_id=X;
Have more questions? Submit a request
Please sign in to leave a comment.