• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Issue Unable to reconfigure configuration

occinodo

Basic Pleskian
When I login to my Plesk control panel I get an error that there is an issue with the configuration files on my server. after clicking to regenerate all config files, i get this error:

Code:
Kan de webserver niet instellen:Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2016-08-07 19:02:28] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] [2016-08-07 19:02:34] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] [2016-08-07 19:02:35] ERR [panel] Apache config (14705893430.49931500) generation failed: Template_Exception: [Sun Aug 07 19:02:28.301457 2016] [so:warn] [pid 8198] AH01574: module actions_module is already loaded, skipping [Sun Aug 07 19:02:28.303978 2016] [so:warn] [pid 8198] AH01574: module headers_module is already loaded, skipping [Sun Aug 07 19:02:28.304326 2016] [so:warn] [pid 8198] AH01574: module logio_module is already loaded, skipping [Sun Aug 07 19:02:28.305528 2016] [so:warn] [pid 8198] AH01574: module suexec_module is already loaded, skipping AH00526: Syntax error on line 60 of /etc/httpd/conf/plesk.conf.d/server.conf: The address or port is invalid file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 [Sun Aug 07 19:02:28.301457 2016] [so:warn] [pid 8198] AH01574: module actions_module is already loaded, skipping [Sun Aug 07 19:02:28.303978 2016] [so:warn] [pid 8198] AH01574: module headers_module is already loaded, skipping [Sun Aug 07 19:02:28.304326 2016] [so:warn] [pid 8198] AH01574: module logio_module is already loaded, skipping [Sun Aug 07 19:02:28.305528 2016] [so:warn] [pid 8198] AH01574: module suexec_module is already loaded, skipping AH00526: Syntax error on line 60 of /etc/httpd/conf/plesk.conf.d/server.conf: The address or port is invalid

I can't find any help that applies to my case and the issue came up at random.

Anyone who could advise how to solve this?

On line 60 of /etc/httpd/conf/plesk.conf.d/server.conf the following information is present:
Code:
<VirtualHost <ipv4 address>:7080 [<ipv6 address>]:7080 37.97.132.179:7080 <ipv4 address>:7080 [<ipv6 address>]:7080 :7080 127.0.0.1:7080>
 
Last edited:
Have you tried to fix it with

# plesk repair web

?
 
After I did that I was unable to start the apache server, rendering the whole server unusable and down.
I reverted to a back-up, the error above persists.

After a second try I found the following while running the suggested command.
Code:
  Repair web server configuration for all domains? [Y/n] y
    Repairing web server configuration for all domains .............. [2016-08-08 16:59:16] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-all'] with exit code [1]
[FAILED]
    - httpdmng failed: Execution failed.
      Command: httpdmng
      Arguments: Array
      (
          [0] => --reconfigure-server
          [1] => -no-restart
      )

      Details: [2016-08-08 16:59:07] ERR [util_exec] proc_close()
      failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with
      exit code [1]
      [2016-08-08 16:59:14] ERR [panel] Apache config
      (14706683410.99050600) generation failed: Template_Exception:
      [Mon Aug 08 16:59:07.297786 2016] [so:warn] [pid 2249] AH01574:
      module actions_module is already loaded, skipping
      [Mon Aug 08 16:59:07.302712 2016] [so:warn] [pid 2249] AH01574:
      module headers_module is already loaded, skipping
      [Mon Aug 08 16:59:07.303231 2016] [so:warn] [pid 2249] AH01574:
      module logio_module is already loaded, skipping
      [Mon Aug 08 16:59:07.305251 2016] [so:warn] [pid 2249] AH01574:
      module suexec_module is already loaded, skipping
      AH00526: Syntax error on line 60 of
      /etc/httpd/conf/plesk.conf.d/server.conf:
      The address or port is invalid

      file:
      /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
      line: 75
      code: 0
      [Mon Aug 08 16:59:07.297786 2016] [so:warn] [pid 2249] AH01574:
      module actions_module is already loaded, skipping
      [Mon Aug 08 16:59:07.302712 2016] [so:warn] [pid 2249] AH01574:
      module headers_module is already loaded, skipping
      [Mon Aug 08 16:59:07.303231 2016] [so:warn] [pid 2249] AH01574:
      module logio_module is already loaded, skipping
      [Mon Aug 08 16:59:07.305251 2016] [so:warn] [pid 2249] AH01574:
      module suexec_module is already loaded, skipping
      AH00526: Syntax error on line 60 of
      /etc/httpd/conf/plesk.conf.d/server.conf:
      The address or port is invalid
 
Last edited:
Try to re-create this broken file /etc/httpd/conf/plesk.conf.d/server.conf with:

# mv /etc/httpd/conf/plesk.conf.d/server.conf /etc/httpd/conf/plesk.conf.d/server.broken
# plesk repair web
 
Code:
      [Tue Aug 09 13:44:10.294228 2016] [so:warn] [pid 31448]
      AH01574: module actions_module is already loaded, skipping
      [Tue Aug 09 13:44:10.297378 2016] [so:warn] [pid 31448]
      AH01574: module headers_module is already loaded, skipping
      [Tue Aug 09 13:44:10.297789 2016] [so:warn] [pid 31448]
      AH01574: module logio_module is already loaded, skipping
      [Tue Aug 09 13:44:10.299366 2016] [so:warn] [pid 31448]
      AH01574: module suexec_module is already loaded, skipping
      AH00526: Syntax error on line 60 of
      /etc/httpd/conf/plesk.conf.d/server.conf:
      The address or port is invalid

After executing the commands your advised I still get the error as above.
 
Hi Igor,

No, I think it indeed has something to do with this, when I lookup the IP configuration page in Plesk I get one IP that says there is something wrong (however clicking on repair doesn't do anything) and clicking on Reread IP gives me the following error:
Fout: ifmng failed: SIOCSIFADDR: File exists /sbin/ifconfig eth0 add <ipv6 address>/48 exited with non-zero status 1

issueing service network reload over ssh causes the following error:
Code:
# service network reload
Reloading network configuration (via systemctl):  Job for network.service invalid.
                                                           [FAILED]
 
I'd suggest you remove this IPv6 address from system, configure webserver, and then add it back.
 
I managed to get further with this issue, the IP address is removed and the only error i'm now still getting is the following:
Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] duplicate listen options for [2a01:7c8:aabc:3ed::1]:80 in /etc/nginx/plesk.conf.d/server.conf:28 nginx: configuration file /etc/nginx/nginx.conf test failed.

I already ran
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
/etc/init.d/nginx restart
as according to this article:
https://kb.plesk.com/en/114245

But this problem is still left over.
 
Hi occinodo,

the following commands should help you to solve your issue:

mv /etc/nginx/plesk.conf.d/server.conf /etc/nginx/plesk.conf.d/server.conf.backup
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
Thanks, I tried that, but the same error remains. The reconfigure command doesn't give an error.
Also I noticed that many domains are unable to be resolved (not all) and port 25, 110 and 578 are not responding even though both dovecot and postfix are running.
 
Hi occinodo,

sorry to read, that you can't resolve your issue by now, but if "the same error remains", you still didn't remove the IPv6 correctly from your system, as suggested, because if the IPv6 would have been removed, then Plesk would not generate configuration files with an IPv6 - configuration in it.


Pls. post your content of the file:

Ubuntu/Debian - based systems:

/etc/network/interfaces


CentOS/RHEL - based systems:

/etc/sysconfig/network-scripts/ifcfg-ethX



... and pls. post the output of the command:

/usr/local/psa/bin/reconfigurator --autoconfigure
 
Code:
NAME="System eth0"
BOOTPROTO=static
IPADDR=37.97.132.172
GATEWAY=37.97.132.1
NETMASK=255.255.255.0
IPV6INIT=yes
IPV6ADDR=2a01:7c8:aabc:3ed::1/48
IPV6_DEFAULTGW=2a01:7c8:aabc::1
IPV6ADDR_SECONDARIES="2a01:7c8:aabc:3ed::3/48"

The problematic IP address 2a01:7c8:aabc:3ed::2/48 is no longer there.

As service network reload continue to give [FAILED] I tried
Code:
ifdown eth0 && sudo ifdown eth1 && sudo ifup eth0 && sudo ifup eth1
And after that I performed a reboot, DNS, SMTP and POP seems to be up and running again.

I still however expirience the following error:
Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] duplicate listen options for [2a01:7c8:aabc:3ed::1]:80 in /etc/nginx/plesk.conf.d/server.conf:28 nginx: configuration file /etc/nginx/nginx.conf test failed. Search in KB
 
Hi occinodo,

actually, you can see from your error message, that not the "2a01:7c8:aabc:3ed::2/48" is "problematic" here.....

duplicate listen options for [2a01:7c8:aabc:3ed::1]:80
Is there a reason, why you don't remove your IPv6 - adresses completely, just to be sure, that you are able to reconfigure all needed configuration files correctly??? You might consider to add possible IPv6 - adresses later on afterwards, but you really should first have working configuration files for your IPv4 - adresses. ;)
 
Alright that is strange, since it was before (it was listed as repair in the IP address configuration panel within Plesk, and I noticed it somehow got configured as a /0, as well that a 0.0.0.0 IP was present there)
Should I just remove 2a01:7c8:aabc:3ed::2/48 from /etc/sysconfig/network-scripts/ifcfg-eth0? Or rather from the IP address configuration panel (which tends to get stuck quite a lot with previous actions)
 
Hi occinodo,

you might do what ever you want, but I really think that you should fix one thing after the other. Having a complete set of working configuration files, will make it far easier for you, when you add additional IPv6 - adresses... so I would remove ALL IPv6 - adresses from your system, restart the network, or even restart you server afterwards and reconfigure ALL configuration files as suggested before.

Later on, if all works fine, add the IPv6 - adresses over the Plesk Control Panel, as documented in the official Plesk documentation:

 
Sorry, for the misunderstanding, I completely agree with you that it's best to make ipv4 working again before bothering about the ipv6
I just wanted to confirm what in your opinion would be the right way to proceed with removing the ipv6 addresses.
As many subscriptions are active with ipv6, I can't remove it (easily) from the Plesk control panel using the IP addresses page.
 
Hi, could anyone inform me of the advised way to remove the IPv6 addresses for this situation?

Thanks in advance
 
Hi occinodo,

Hi, could anyone inform me of the advised way to remove the IPv6 addresses for this situation?

Instead of
Code:
NAME="System eth0"
BOOTPROTO=static
IPADDR=37.97.132.172
GATEWAY=37.97.132.1
NETMASK=255.255.255.0


you could use:
Code:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=37.97.132.172
NETMASK=255.255.255.0
SCOPE="peer 37.97.132.1"

at "/etc/sysconfig/network-scripts/route-eth0" you could use:
Code:
ADDRESS0=0.0.0.0
NETMASK0=0.0.0.0
GATEWAY0=37.97.132.1

Pls. be aware, that this configuration can vary, depending to your hosting - provider. Pls. ask them about the absolute correct modification to avoid issues/failures/problems ( most hosting providers have FAQs about that as well, where they describe the usage! ).
 
Hi Gents,

I got this problem after deleting some files by mistake:

Code:
 /usr/local/psa/bin/reconfigurator --autoconfigure
Generating DB update script...
ok
Updating database...
ok
Reconfiguring DNS:
domain domain.com...
ok
domain domain.net...
ok
domain domain.com...
ok
domain domain.com...
ok
domain domain.com...
ok
domain domain.com...
ok
domain domain.com...
ok
domain domain.com...
ok
Restarting DNS service...
ok
Reconfiguring Apache...
Error occured while sending feedback. HTTP code returned: 502
Error occured while sending feedback. HTTP code returned: 502
Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
    [1] => -no-restart
)

Details: [2017-04-01 23:43:27] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1]
Error occured while sending feedback. HTTP code returned: 502
[2017-04-01 23:43:28] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1]
Error occured while sending feedback. HTTP code returned: 502
[2017-04-01 23:43:28] ERR [panel] Apache config (14910902070.46820100) generation failed: Template_Exception: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
2017/04/01 23:43:27 [emerg] 25635#0: open() "/var/log/nginx/access.log" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Error occured while sending feedback. HTTP code returned: 502
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
2017/04/01 23:43:27 [emerg] 25635#0: open() "/var/log/nginx/access.log" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed


/usr/local/psa/admin/bin/httpdmng --reconfigure-all: exited with non-zero code 256

Can you help please ?

Thanks,
 
Back
Top