Articles in this section

Plesk Home page shows: nginx: [emerg] a duplicate default server for 2001:db8:f61:a1ff:0:0:0:80

DoNotDelete:docref Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk Home page shows the next error:

    PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] a duplicate default server for [2001:db8:f61:a1ff:0:0:0:80]:443 in /etc/nginx/plesk.conf.d/ip_default/example.com.conf:7 nginx: configuration file /etc/nginx/nginx.conf test failed.

  • The following command fails with the same error:

    # plesk repair web example.com

  • There is a configuration file with the same IP 2001:db8:f61:a1ff:0:0:0:80 for a non-existing domain:

    # grep -Rl "2001:db8:f61:a1ff:0:0:0:80" /etc/nginx/*
    /etc/nginx/plesk.conf.d/ip_default/example1.com.conf

  • Or the following command shows that there is an orphan configuration file:
    # plesk repair web -n
    Checking web server configuration. Please wait

    Unknown file: /etc/nginx/plesk.conf.d/ip_default/example1.com.conf . [ERROR]

Cause

Domain example1.com was removed from Plesk but its configuration file remained.
For this reason, a new configuration file for example.com can not be created.

Resolution

Plesk Obsidian 18.0.35 or higher

Starting from Plesk Obsidian 18.0.35 you can check and remove orphaned configuration files using the Plesk Repair CLI Utility:

# plesk repair web

Plesk Obsidian 18.0.34 or earlier
  1. Login to the server via SSH

  2. Remove orphaned configuration file:

    # rm -rf /etc/nginx/plesk.conf.d/ip_default/example1.com.conf

  3. Reconfigure the domain example.com:

    # plesk repair web example.com

Note: If the manual domain reconfiguration was successful but Plesk still shows the same error on the Home page - remove the orphaned record about it from the database:
Webserver Configurations Troubleshooter detects extra configuration or shows a false positive report on the Home page).

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.