• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Unable regenerate config due to nginx attempting to bind to a non-existing IPv6

JoeShmoe

New Pleskian
I previously deteled the only IPv6 from my server, I don't intend to use it. However nginx still attempts to use it when regenerating apache/nginx configs for domains
( IPv6 replaced with x:x:x:x:: below)
Bash:
 httpdmng failed: [2020-07-30 16:14:21.070] ERR [util_exec]
      proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t']
      with exit code [1]
      [2020-07-30 16:14:21.286] ERR [util_exec] proc_close() failed
      ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1]
      [2020-07-30 16:14:21.287] ERR [panel] Apache config
      (15961184600.91822500) generation failed: Template_Exception:
      nginx: [emerg] bind() to [x:x:x:x::]:443 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: 75
      code: 0
      nginx: [emerg] bind() to [x:x:x:x::]:443 failed (99:
      Cannot assign requested address)
      nginx: configuration file /etc/nginx/nginx.conf test failed

The IP is no longer present anywhere in Plesk, How can I prevent nginx for trying to use it?
I'm on Plesk Obsidian 18.0.28 Update #3 and Ubuntu 18.04.4
 
This also prevents me from configuring new websites. Nginx keeps trying to use the non-existent IP.
sysctl -w net.ipv6.ip_nonlocal_bind=1 is a workaround, but I prefer to prevent nginx using that IP.
 
Last edited:
Back
Top