Migration doesn't work when executed with cron I've set up a migration between 2 Drupal sites hosted on the same server (Drupal 8 -&gt; Drupal 9). I'm using migration support recently added to drush to run these commands. I've created a helper bash script, which contains:
#!/bin/bash
sites=(&lt;mysite&gt;)
for site in &quot;${sites[@]}&quot;; do
  drush -r /var/www/drupal -l $site mim &lt;migration_id&gt; --update --execute-dependencies &gt;&gt; /home/&lt;myuser&gt;/migration.log
done

This works fine, when I execute this script manually. However, it doesn't work (content isn't migrated), when it's executed by cron, defined like this:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/&lt;myuser&gt;/&lt;myscript&gt;.sh &gt;&gt; /home/&lt;myuser&gt;/migration.log

There's no output in the log and no errors in /var/log/syslog, where can I only see output like this every 5 minutes:
Feb 16 15:35:01 &lt;hostname&gt; CRON[22314]: (&lt;myuser&gt;) CMD (/home/&lt;myuser&gt;/&lt;myscript&gt;.sh &gt;&gt; /home/&lt;myuser&gt;/migration.log)

What can I do to debug this issue and resolve it?
It seems that the path to drush was wrong when the script was running by cron. Lesson learned - I should be using full paths when working with cron.