Incorrect IP address is added in Plesk with Point-to-Point interface

Created:

2016-11-16 13:16:54 UTC

Modified:

2017-08-16 14:11:43 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Incorrect IP address is added in Plesk with Point-to-Point interface

Applicable to:

  • Plesk for Linux

Symptoms

  1. Point-to-Point interface is enabled on the server.

  2. When an IP address is refreshed in Plesk > Tools and Utilities > IP addresses , incorrect IP can be added (for example, 0.0.0.0.).

  3. The following error can appear in log:

    ERR (3)  [panel]: Apache config (13764416920.26609700) generation failed: Template_Exception: nginx: [emerg] bind() to 1.2.3.4:80 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed
    file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
    line: 68
    code: 0
    nginx: [emerg] bind() to 1.2.3.4:80 failed (99: Cannot assign requested address)
    nginx: configuration file /etc/nginx/nginx.conf test failed

Or this error:

    New files of configuration for Apache web server were not built due to errors in configuration templates: Syntax error on line 156 of /usr/local/psa/admin/conf/generated/13937375940.28247400_server.include: The address or port is invalid

Cause

Plesk does not support Point-to-Point interfaces. This may break the configuration of IP addresses in Plesk. A request for implementation was created with ID #PPPM-774 that is considered to be implemented in future Plesk updates.

Resolution

Delete the incorrect IP address from database:

  1. Create a backup of the psa database:

    mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` psa >psa.dump
  2. Delete the problem IP address:

    mysql> begin; delete from IP_Addresses where id=[empty IP address ID];
    Query OK, 0 rows affected (0.00 sec)

    Query OK, 1 row affected (0.00 sec)

    mysql> delete from ip_pool where ip_address_id=[empty IP address ID];
    Query OK, 1 row affected (0.00 sec)

    mysql> commit;
    Query OK, 0 rows affected (0.00 sec)
Have more questions? Submit a request
Please sign in to leave a comment.