0

I have a site running Drupal 6.30 which has started giving errors when it run the hourly call to cron.php.

The cronjob in question is and run as root:

0 * * * * wget -O - -q -t 1 http://example.org/cron.php

I get the following rather cryptic / truncated message when it runs

could not

I have looked in system logs and apache logs but do not see anything that would indicate reason for the problem.

Would anyone be able to suggest anywhere else I could look on the system to troubleshoot.

edit additional logs from administer -> reports -> dblog around the time the cron fails.

1

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'mann'@'localhost' (using password: YES) in /var/www/example.org.org/includes/common.inc(1743) : eval()'d code on line 7.

2

in /var/www/example.org.org/includes/common.inc(1743) : eval()'d code on line 7.

3

mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /var/www/example.org.org/includes/common.inc(1743) : eval()'d code on line 8.

4

Cron run exceeded the time limit and was aborted.
  • Anything in the watchdog table? – Felix Eve Mar 12 '14 at 12:35
  • Try also checking the var/log/cron – Vic Mar 12 '14 at 12:48
  • @FelixEve forgive me but where would I find that? – Jan Geep Mar 12 '14 at 12:49
  • @Vic it's logged to /var/log/syslog but there's nothing obvious, just the following but nothing else Mar 12 05:00:01 host CRON[7894]: (root) CMD (wget -O - -q -t 1 http://example.org/cron.php) – Jan Geep Mar 12 '14 at 12:51
  • I always use the explicit path to wget in case the PATH for whomever the crontab is installed as changes. – mpdonadio Mar 12 '14 at 13:00
1

View watchdog logs at Administer >> Logs >> Recent log entries. (admin/logs/watchdog)

More details in this post Drupal.org: Watchdog: monitor your site

  • Make sure you have the optional core database logging module enabled, without it, nothing (little?) gets written to the watchdog table in the database. You should also check your PHP logs to see if it is something syntax related that has cropped up (this type of error wouldn't show in the apache log). Or, perhaps run the cron manually, either with the wget from the command line or via the UI in drupal to see if anything else shows up. – Jimajamma Mar 12 '14 at 12:58
  • OP updated with some logs – Jan Geep Mar 12 '14 at 13:00
  • @Jimajamma I've tried running it manually with wget -O - -q -t 1 http://example.org/cron.php but get the same could not error – Jan Geep Mar 12 '14 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.