Project

General

Profile

locale or what causing 500-error?

Added by Hal Birkeland almost 11 years ago

My redmine installation answers me with a 500-error today: "An error occurred on the page you were trying to access."
This I suppose is caused by me updating the system locale, which has rendered errors in other apps lately, noteably that the default locale was set to "C" or "en_US", which I suppose redmine has been using until now. From now on the system locale is nb_NO-UTF-8, which I have updated in /etc/environment.

How can I fix the redmine settings so that it works again?

Or, I might be totally wrong! In /var/log/default/redmine/default/production.log I find this:

ActiveRecord::StatementInvalid (Mysql::Error: Can't find file: './redmine_default/settings.frm' (errno: 13): SHOW FIELDS FROM `settings`):
    /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:188:in `log'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:310:in `execute'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:441:in `columns'
    [lots of similar lines]

My installation is on ubuntu server 10.04. More info here:

hal@birk:/usr/share/redmine$ RAILS_ENV=production script/about
Rails Error: Unable to access log file. Please ensure that /var/log/redmine/default/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.5
Rails version 2.2.3
Active Record version 2.2.3
Action Pack version 2.2.3
Active Resource version 2.2.3
Action Mailer version 2.2.3
Active Support version 2.2.3
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql


Replies (1)

RE: locale or what causing 500-error? - Added by Hal Birkeland almost 11 years ago

.frm is a mysql database-file extension. This I really knew, but had forgotten. They are only visible through sudo. And somehow they had changed ownership.

    (1-1/1)