• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Cronjob doesn't run

JeffreyZ

Basic Pleskian
I set a cronjob to run daily at 2:10am. It shows that it ran in the cron log file. However, it doesn't actually run.

From the log:
Nov 20 02:10:01 my-hosting CROND[30311]: (root) CMD (/root/rsyncnet.sh)

Yet from a command line I can run it without a problem.

I set up the cron using SSH (as root) and then verified it in the Plesk panel. (attached image).

Seems it might be a security / permissions issue.
 

Attachments

  • cron-in-plesk.gif
    cron-in-plesk.gif
    23 KB · Views: 5
Turns out the cronjob ran but failed because a password was needed. I had accidentally overwritten the folder that contained SSH keys. Once that was fixed the rsync backup completted.
 
Back
Top