diff --git a/app/models/admin_dashboard_data.rb b/app/models/admin_dashboard_data.rb
index 30b5f3e555f..2a0ac42d9dd 100644
--- a/app/models/admin_dashboard_data.rb
+++ b/app/models/admin_dashboard_data.rb
@@ -22,6 +22,7 @@ class AdminDashboardData
def problems
[ rails_env_check,
+ ruby_version_check,
host_names_check,
gc_checks,
sidekiq_check || queue_size_check,
@@ -161,6 +162,10 @@ class AdminDashboardData
I18n.t('dashboard.notification_email_warning') if SiteSetting.notification_email.blank?
end
+ def ruby_version_check
+ I18n.t('dashboard.ruby_version_warning') if RUBY_VERSION == '2.0.0' and RUBY_PATCHLEVEL < 247
+ end
+
# TODO: generalize this method of putting i18n keys with expiry in redis
# that should be reported on the admin dashboard:
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 6a6d576552c..a41a342245d 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -418,6 +418,7 @@ en:
dashboard:
rails_env_warning: "Your server is running in %{env} mode."
+ ruby_version_warning: "You are running a version of Ruby 2.0.0 that is known to have problems. Upgrade to patch level 247 or later."
host_names_warning: "Your config/database.yml file is using the default localhost hostname. Update it to use your site's hostname."
gc_warning: 'Your server is using default ruby garbage collection parameters, which will not give you the best performance. Read this topic on performance tuning: Tuning Ruby and Rails for Discourse.'
sidekiq_warning: 'Sidekiq is not running. Many tasks, like sending emails, are executed asynchronously by sidekiq. Please ensure at least one sidekiq process is running. Learn about Sidekiq here.'