• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue ./reconfigurator ip_map_file_name giving errors

pimnl

New Pleskian
Server operating system version
CentOS 7.6.1810 x86_64
Plesk version and microupdate number
Plesk Obsidian 18.0.59.2
I have an 'old' VPS server with Plesk, on which multiple domains with websites are running. I just ordered a new server and restored a snapshot of the old server onto the new one.

Because the server has a new IP address, I need to generate a mapping file with information about the new IP address:
Changing IP Addresses

This is the content:

# You should edit IP addresses, netmasks, and interfaces to reflect your
# future settings. If you don't want the IP to be changed - leave it untouched,
# comment out its line or remove the entire line from the file.
eth0 37.97.157.2 255.255.255.0 -> eth0 136.144.166.77 255.255.255.0

When I then run the script to update the IP, I get these errors:

Code:
[root@grootstenederlanders bin]# plesk bin reconfigurator /root/ip_map_file_name
`plesk bin ipmanage` should be used instead of this utility
Remap: 37.97.157.2 -> 136.144.166.77
Changing IP address 37.97.157.2 to 136.144.166.77 in database
Reconfiguring web servers
[2024-04-11 04:45:33.465] 24724:66174ec2e6a2f ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1]
[2024-04-11 04:45:35.414] 24724:66174ec2e6a2f ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1]
[2024-04-11 04:45:35.586] 24724:66174ec2e6a2f ERR [panel] Apache config (17128035310.57137500) generation failed: Template_Exception: nginx: [emerg] bind() to [2a01:7c8:aabf:3::1]:443 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed


file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Changing IP address 136.144.166.77 to 37.97.157.2 in database
nginx: [emerg] bind() to [2a01:7c8:aabf:3::1]:443 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed

exit status 1

Any idea what I could be doing wrong?
 
Back
Top