Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Feb 2010 at 19:18 UTC
Updated:
11 Sep 2013 at 04:55 UTC
Due to issues where my cron.php was timing out when accessed via the web, I've been running cron via drush. Works great, except for one thing: I'm seeing a huge number of warnings from the filefield module (25 on each cron run). When run via the web, cron throws none of these warnings.
My drush command:
/usr/bin/drush --root=/var/www/example/html --uri=http://example.com cron
The warning:
FileField was trying to display the file sites/default/files/articles/70dd29aabc2ff44ffec36428b75be54e.jpg, but it does not exist.
Comments
Comment #1
moshe weitzman commentedtry passing --url option so you better emulate what web does. after that, ask in fielfield queue.
Comment #2
ceejayoz commentedThis seems to have stopped happening. Guessing it was a glitch in filefield.
Comment #3
jenlamptonI'm running into this same problem.
When Drush is run via the web interface I get no errors at all, and a happy little "Cron ran successfully." drupal message, and "Cron run completed" in the dblog.
When I run drush cron I get about 15 errors reporting missing files (which are all there on the file system) and a sad "Cron run exceeded the time limit and was aborted." error message.
I tried running drush cron --url, and got the same errors, below
Drupal version: Pressflow 6.23-0-gf5c736a
Hosting: pantheon v1
Drush version 4.4
Comment #4
greg.1.anderson commentedLet's verify and fix on Drush-5 first, if necessary, then go back and consider Drush-4.
Comment #5
moshe weitzman commented@Jen - please try to reproduce with drush5 and get back to us. Also be sure you are passing --uri.
Comment #6
christianchristensen commentedCurious behavior... slightly different than @Jen, but seems to follow the same behavior of failing with `drush cron` but then "Cron run completed." with `curl http://localhost/cron.php`
drush version 5.0-dev
Drupal: Pressflow: 6.24
CLI interaction:
(edit: forgot to include that the drush commands do the same with "--uri")
Comment #7
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.