Weird, for some reason I wasn’t notified of your update on January 6th, even though I’m watching this topic...
Yes I can definitely reproduce it, I still get the e-mail with the warning every minute, as my cron job runs every minute.
/usr/lib/ruby/redmine/vendor/rails/actionpack/lib/action_controller/mime_type.rb:66: warning: already initialized constant PDF
I did a tail -f on the production.log file for a few minutes, and it was totally silent. The cron job doesn’t seem to produce anything there.
Here is the full cron job, stored in the system’s cron.d directory:
# cat fetch-repository-changesets.cron
MAILTO=mliyanage@futurelab.ch
HOME=/var/www
* * * * * root sh /data/redmine/bin/fetch-repository-changesets.sh
If I execute this manually on the shell, I get the same effect:
sh /data/redmine/bin/fetch-repository-changesets.sh
/usr/lib/ruby/redmine/vendor/rails/actionpack/lib/action_controller/mime_type.rb:66: warning: already initialized constant PDF
The relevant line in that shell script is this here:
su -s /bin/bash - apache -c '/usr/bin/ruby /usr/lib/ruby/redmine/script/runner "Repository.fetch_changesets" -e production'
Some system info:
# ruby -v
ruby 1.8.5 (2006-08-25) [i386-linux]
# cat /etc/issue
CentOS release 5 (Final)
Could it happen on this system because Ruby is at 1.8.5?