Defect #7969
closedRedmine dosn't work with sqlite3-ruby 1.3.3
0%
Description
I'm moving redmine (1.0.1) to a new server (ruby 1.8.7), when I installed sqlite3-ruby 1.3.3 on the new machine, redmine dosn't work correctly:
ArgumentError (comparison of Time with String failed):
app/models/setting.rb:152:in `<='
app/models/setting.rb:152:in `check_cache'
app/controllers/application_controller.rb:55:in `user_setup'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
the problem occurs because with sqlite3-ruby 1.3.3, "settings_updated_on = Setting.maximum(:updated_on)" is a String.
I installed sqlite3-ruby 1.2.4 and it worked fine again.
If this is a issue with sqlite3-ruby rather than redmine, I'd not be surprised, but I would imagine other users might face the same issue, and in that case might be worth noting somewhere.
Related issues
Updated by Jean-Philippe Lang over 13 years ago
- Resolution set to Cant reproduce
I actually run tests with sqlite3 1.3.3 x86-mingw32
and don't have this issue.
>> Setting.maximum(:updated_on) => Sun Apr 03 18:25:29 +0200 2011 >> Setting.maximum(:updated_on).class => Time
Updated by Yuya Nishihara over 13 years ago
the problem occurs because with sqlite3-ruby 1.3.3, "settings_updated_on = Setting.maximum(:updated_on)" is a String.
Do you have some incompatible plugins installed, by any chance? In my case, stuff_to_do_plugin produces this problem.
Try rake db:schema:dump
to see if db/schema.rb gets broken. If it contains "Could not dump table ... because of following StandardError", remove suspected plugins until db/schema.rb becomes correct.
Updated by Daniel Bond over 13 years ago
Do you have some incompatible plugins installed, by any chance? In my case, stuff_to_do_plugin produces this problem.
You are probably right. I did have the stuff_to_do_plugin installed, and that may well have been the root of the cause.
Updated by Go MAEDA over 9 years ago
- Status changed from New to Closed
Caused by a plugin, closing this issue.