Mobile Tools Module and Drush
Today I ran into an issue where running the command:
drush status
ended with this error:
Drush command terminated abnormally due to an unrecoverable error.
.
Today I ran into an issue where running the command:
drush status
ended with this error:
Drush command terminated abnormally due to an unrecoverable error.
.
In order to run a Drush Script from a cron job, you'll need to setup a valid Drush Site Alias. Otherwise, cron will not bootstrap the site correctly and you'll be missing most of Drupal's API functions.
We have a website that updates numerous nodes nightly with an uploaded XML file. This XML file is then processed with Drupal's batch api, and when the XML file is uploaded manually, the script works perfectly. However, in real life, this XML file is uploaded programmatically by a script running on another server. Programmatically, the file gets uploaded and the batch begins properly, but on the successive redirects, the batch fails. This is because, the pseudo browser window from our publishing script closes.
In a related note to the backup restore that I performed yesterday, I decided to run the upgrade.sh script provided by community.aegir.com.