Project

General

Profile

Upgrade on version 3.1

Added by Mila Hajek almost 9 years ago

Hello,
I upgraded Redmine on version 3.1.0.
After upgrade Redmine failed with this error:

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):

I found that I have to change mysql adapter. I set mysql2 adapter in database.yml.
Now Redmine fails with error:

ArgumentError (comparison of Float with ActiveSupport::TimeWithZone failed):
app/models/setting.rb:187:in `<='
app/models/setting.rb:187:in `check_cache'
app/controllers/application_controller.rb:102:in `user_setup'

Could anybody help me?

Thanks.

M.Hajek


Replies (2)

RE: Upgrade on version 3.1 - Added by Martin Denizet (redmine.org team member) almost 9 years ago

Hello,

It seems to be a problem with the timezone setting of your user.
Did you run DB migrations correctly?
Do you have the same issue with a new user?

Cheers,

RE: Upgrade on version 3.1 - Added by Darci Dambros Junior over 8 years ago

Hello,

I resolved this issue changing:

File 'config/database.yml'

adapter: mysql2

File 'app/models/setting.rb'

@cached_cleared_on = Time.now

After that, performing these commands (on main redmine directory):

Install mysql2 gem:

bundle install

Test again database and plugins update:

bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake redmine:plugins:migrate RAILS_ENV=production

Cleaning cache...

bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production

Restarting Apache.

Now my Redmine 3.1.1.stable is working fine.

I hope this helps.

Best regards.

Darci

    (1-2/2)