Subject: drupal7: Cron fails to run due to missing cron key
Package: drupal7
Version: 7.6-1~bpo60+1
Severity: normal

Drupal installs a cron in /etc/cron.d that runs every hour on the hour. This cron script always fails with curl error 22. It correctly detects the install path, but does not include a cron key, so Drupal returns a (nicely layed out) 403. This 403 makes curl return 22, which causes the cron to fail.


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

Kernel: Linux 2.6.39-bpo.2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages drupal7 depends on:
ii apache2-mpm-prefork [h 2.2.16-6+squeeze4 Apache HTTP Server - traditional n ii curl 7.21.0-2 Get a file from an HTTP, HTTPS or ii dbconfig-common 1.8.46+squeeze.0 common framework for packaging dat ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy ii exim4-daemon-heavy [ma 4.72-6+squeeze2 Exim MTA (v4) daemon with extended
ii  mysql-client-5.1 [virt 5.1.49-3          MySQL database client binaries
ii php5 5.3.3-7+squeeze3 server-side, HTML-embedded scripti
ii  php5-gd                5.3.3-7+squeeze3  GD module for php5
ii  php5-mysql             5.3.3-7+squeeze3  MySQL module for php5
ii  wwwconfig-common       0.2.1             Debian web auto configuration

Versions of packages drupal7 recommends:
ii mysql-server 5.1.49-3 MySQL database server (metapackage ii mysql-server-5.1 [mysql-serve 5.1.49-3 MySQL database server binaries and

drupal7 suggests no packages.

-- Configuration Files:
/etc/drupal/7/apache2.conf changed:
Alias /drupal7 /usr/share/drupal7
<Directory /usr/share/drupal7/>
    Options +FollowSymLinks
    AllowOverride All
    order allow,deny
    allow from all
<IfModule mod_rewrite.c>
        RewriteBase /
</IfModule>
</Directory>

/etc/drupal/7/htaccess changed:
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>
Options -Indexes
Options +FollowSymLinks
ErrorDocument 404 /index.php
<Files favicon.ico>
  # There is no end quote below, for compatibility with Apache 1.3.
  ErrorDocument 404 "The requested file favicon.ico was not found.
</Files>
DirectoryIndex index.php index.html index.htm
<IfModule mod_php5.c>
  php_flag magic_quotes_gpc                 off
  php_flag magic_quotes_sybase              off
  php_flag register_globals                 off
  php_flag session.auto_start               off
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_flag mbstring.encoding_translation    off
</IfModule>
<IfModule mod_expires.c>
  # Enable expirations.
  ExpiresActive On
  # Cache all files for 2 weeks after access (A).
  ExpiresDefault A1209600
<FilesMatch \.php$>
# Do not allow PHP scripts to be cached unless they explicitly send cache
    # headers themselves. Otherwise all scripts would have to overwrite the
# headers set by mod_expires if they want another caching behavior. This may # fail if an error occurs early in the bootstrap process, and it may cause
    # problems if a non-Drupal PHP file is installed in a subdirectory.
    ExpiresActive Off
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
  RewriteEngine on
# Block access to "hidden" directories whose names begin with a period. This # includes directories used by version control systems such as Subversion or # Git to store control files. Files whose names begin with a period, as well # as the control files used by CVS, are protected by the FilesMatch directive
  # above.
  #
# NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is # not possible to block access to entire directories from .htaccess, because
  # <DirectoryMatch> is not allowed here.
  #
  # If you do not have mod_rewrite installed, you should remove these
  # directories from your webroot or otherwise protect them from being
  # downloaded.
  RewriteRule "(^|/)\." - [F]
# If your site can be accessed both with and without the 'www.' prefix, you # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} !^www\. [NC]
  # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
# If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
 # DIT MOET WEG FIXME (terug naar /)
 RewriteBase /nieuw
  # Pass all requests not referring directly to files in the filesystem to
  # index.php. Clean URLs are handled in drupal_environment_initialize().
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ index.php [L]

  # Rewrite old-style URLS of the form 'node.php?id=x':
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{QUERY_STRING} ^id=([^&]+)$
  RewriteRule node.php index.php?q=node/view/%1 [L]
  # Rewrite old-style URLs of the form 'module.php?mod=x':
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
  RewriteRule module.php index.php?q=%1 [L]
  # Rewrite URLs of the form 'index.php?q=x':
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  # Rules to correctly serve gzip compressed CSS and JS files.
  # Requires both mod_rewrite and mod_headers to be enabled.
<IfModule mod_headers.c>
# Serve gzip compressed CSS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}\.gz -s
    RewriteRule ^(.*)\.css $1\.css\.gz [QSA]
# Serve gzip compressed JS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}\.gz -s
    RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
    # Serve correct content types, and prevent mod_deflate double gzip.
    RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
    RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]
<FilesMatch "(\.js\.gz|\.css\.gz)$">
      # Serve correct encoding type.
      Header append Content-Encoding gzip
# Force proxies to cache gzipped & non-gzipped css/js files separately.
      Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>
</IfModule>


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




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to