Teny
New Pleskian
Hi all,
I use plesk migrator in Command Line.
I've made a little .sh script that do several plesk migrator job and everything just work as expected when I start the script in terminal ssh window.
But when I call the script in a cron job (also as a root user) everything is ok BUT the mail transfert. Here is the detailed log :
[pre]
# Failed to copy mail content of subscription. Most probably that happens because of a network-related issue. Please check network connections between source and target servers, then re-copy mail content with the help of 'copy-mail-content' command
# Migration tools tried to perform operation in 3 attempts: Command execution failed on the local server with non-zero exit code.
# command: plesk bin mail --recalculate-mailboxes-usage [domain]
# exit code: 127
# stdout:
# stderr: /bin/sh: 1: plesk: not found
[/pre]
It's very frustrating since it works when I Call the script manually.
Is there any issue I've missed so far ?
Thanks for all the answers.
Ten
Edit : Sorry for the english mistakes since it's not my birth language.
I use plesk migrator in Command Line.
I've made a little .sh script that do several plesk migrator job and everything just work as expected when I start the script in terminal ssh window.
But when I call the script in a cron job (also as a root user) everything is ok BUT the mail transfert. Here is the detailed log :
[pre]
# Failed to copy mail content of subscription. Most probably that happens because of a network-related issue. Please check network connections between source and target servers, then re-copy mail content with the help of 'copy-mail-content' command
# Migration tools tried to perform operation in 3 attempts: Command execution failed on the local server with non-zero exit code.
# command: plesk bin mail --recalculate-mailboxes-usage [domain]
# exit code: 127
# stdout:
# stderr: /bin/sh: 1: plesk: not found
[/pre]
It's very frustrating since it works when I Call the script manually.
Is there any issue I've missed so far ?
Thanks for all the answers.
Ten
Edit : Sorry for the english mistakes since it's not my birth language.
Last edited: