• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Forwarded to devs Using reconfigurator to change IPs exits with exception when mail services not installed

websavers

Regular Pleskian
Username: websavers

TITLE

Using reconfigurator to change IPs exits with exception when mail services not installed

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

CentOS Linux 7.9.2009 | Product: Plesk Obsidian 18.0.32 Update #2

PROBLEM DESCRIPTION

Running `plesk bin reconfigurator ip_map.txt` on a server where no mail services are installed results in:

Bash:
Rebuilding Postfix transport map...
This operation is not supported by the service node.

ERROR:root:Exception occurred
Traceback (most recent call last):
  File "/usr/local/psa/bin/reconfigurator", line 512, in <module>
    main()
  File "/usr/local/psa/bin/reconfigurator", line 504, in main
    reconfigure(mapping)
  File "/usr/local/psa/bin/reconfigurator", line 370, in reconfigure
    execCmd(transport_restore)
  File "/usr/local/psa/bin/reconfigurator", line 94, in execCmd
    raise Exception("%s: exited with non-zero code %s" % (cmd, result))
Exception: /usr/lib64/plesk-9.0/remote_mail_restore/mail_transport_restore: exited with non-zero code 256
exit status 1

I suggest that reconfigurator check to be sure mail services are installed before attempting to reconfigure them :)

STEPS TO REPRODUCE

  • Install Plesk
  • Remove mail services like Postfix and Dovecot (Only msmtp was installed on this server)
  • Run reconfigurator to change IPs
  • Get Exception error above

ACTUAL RESULT

Exception occurs as shown above.

EXPECTED RESULT

reconfigurator completes successfully having skipped mail reconfiguration because mail services are not installed to reconfigure them.

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Thank you for the report.
Bug confirmed and submitted as PPPM-12662
 
Back
Top