Scheduled task fails with code 5

Created:

2016-11-16 12:54:28 UTC

Modified:

2017-08-08 13:32:42 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Scheduled task fails with code 5

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Scheduled task fails:

 ERR [1] '/usr/local/psa/admin/bin/cron_task_executor' '-u' 'globalplayer' '-c' '/usr/bin/wget -q -O - https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1' failed with code 5

Cause

SSL issues with the URL in the scheduled task.

Resolution

Add ' --no-check-certificate ' option to the command:

    wget --no-check-certificate -q -O -  https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
Have more questions? Submit a request
Please sign in to leave a comment.