Project

General

Profile

Actions

Defect #7969

closed

Redmine dosn't work with sqlite3-ruby 1.3.3

Added by Daniel Bond over 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
2011-03-23
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

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

Related to Redmine - Feature #5638: Use Bundler (Gemfile) for gem managementClosedJean-Philippe Lang2010-06-02

Actions
Has duplicate Redmine - Defect #10506: Internal error after reinstalling redminClosed

Actions
Actions

Also available in: Atom PDF