Package: drupal7
Followup-For: Bug #780984

Dear Maintainer,

After upgraing to Drupal 7 in Debian 8.0/Jessie I started getting emailed about
the cron failing for the default site:

curl: (22) The requested URL returned error: 404 Not Found
Error running the periodic maintenance for /etc/drupal/7/sites/default: CURL 
exit code 22
Requested URL: http://localhost/drupal7/cron.php

It was also failing for a configured site that didn't have $base_url or
$cron_key configured but I was able to correct that by editing it's config.

To suppress the error I ended up modifying /usr/share/drupal7/scripts/cron.sh:

-    if [ ! "`basename $site`" = "all" ]; then
+    if [ ! "`basename $site`" = "all" ] && [ ! "`basename $site`" = "default" 
]; then

This disabled the error but I expect it to break the next time I upgrade the
package.

I have kept the 'default' virtual host directory as a template that I can
simply duplicate and adjust the configuration files as suggested in
README.Debian. I would like to have some parameter to make it skip attempting
to run cron on it. It could be useful for skipping valid virtualhosts that
I might not want cron run on as well. I don't mean a configuration in the web
site, I am looking for something that cron.sh recognizes so it doesn't generate
errors attempting to access the non-existant localhost/sitename URL.

I do have an 'all' directory in the same location and would like cron.sh to
keep skipping that by default.


-- System Information:
Debian Release: 8.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages drupal7 depends on:
ii  apache2 [httpd]                            2.4.10-10+deb8u4
ii  apache2-mpm-prefork [httpd]                2.4.10-10+deb8u4
ii  curl                                       7.38.0-4+deb8u3
ii  dbconfig-common                            1.8.47+nmu3+deb8u1
ii  debconf [debconf-2.0]                      1.5.56
ii  mysql-client                               5.5.47-0+deb8u1
ii  mysql-client-5.5 [virtual-mysql-client]    5.5.47-0+deb8u1
ii  php5                                       5.6.19+dfsg-0+deb8u1
ii  php5-gd                                    5.6.19+dfsg-0+deb8u1
ii  php5-mysql                                 5.6.19+dfsg-0+deb8u1
ii  postfix [mail-transport-agent]             2.11.3-1
ii  postgresql-client                          9.4+165+deb8u1
ii  postgresql-client-9.4 [postgresql-client]  9.4.6-0+deb8u1
ii  wwwconfig-common                           0.2.2

Versions of packages drupal7 recommends:
pn  mysql-server | postgresql | sqlite3  <none>

drupal7 suggests no packages.

-- debconf information:
  drupal7/db/app-user: drupal7
  drupal7/remote/host:
  drupal7/install-error: abort
  drupal7/pgsql/admin-user: postgres
  drupal7/purge: false
  drupal7/upgrade-error: abort
  drupal7/pgsql/method: unix socket
  drupal7/remote/newhost:
  drupal7/pgsql/changeconf: false
  drupal7/mysql/method: unix socket
  drupal7/pgsql/authmethod-admin: ident
  drupal7/dbconfig-upgrade: true
  drupal7/upgrade-backup: true
  drupal7/db/basepath:
  drupal7/dbconfig-remove:
  drupal7/pgsql/no-empty-passwords:
  drupal7/remove-error: abort
  drupal7/pgsql/manualconf:
  drupal7/pgsql/authmethod-user:
  drupal7/dbconfig-reinstall: false
  drupal7/internal/reconfiguring: false
* drupal7/dbconfig-install: false
  drupal7/db/dbname: drupal7
  drupal7/mysql/admin-user: root
  drupal7/internal/skip-preseed: true
  drupal7/passwords-do-not-match:
  drupal7/missing-db-package-error: abort
  drupal7/database-type:
  drupal7/remote/port:

Reply via email to