• 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.

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