Problem to access "Settings" from Administration menu
Added by net ops almost 6 years ago
Hi,
I've setup a brand new redmine 4.0.1 plateform and everything's running fine but the "Settings" sub menu from "Administration" menu.
When I click on it, I've got an internal error (redmine error 500)
When I go back to my previous version redmine 3.4.5, I can access the Settings page, no problem.
Here is my configuration :
Centos 7 operating system
[redmine-4.0.1]# bundler -v
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Bundler version 2.0.1
[redmine-4.0.1]# passenger -v
Phusion Passenger 6.0.1
[redmine-4.0.1]# ruby -v
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]
[redmine-4.0.1]# rails -v
Rails 5.2.2
Here's my database.yml
Using seperate mysql server for redmine database:
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: "redmine"
encoding: utf8
This is error on the browsers:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
This is the exact error each time I click on Administration, Settings page in the production.log
Started GET "/settings" for 10.11.0.254 at 2019-02-20 12:26:56 -0600
Processing by SettingsController#index as HTML
Current user: aqureshi (id=79)
Rendering settings/edit.html.erb within layouts/admin
Rendered settings/_general.html.erb (117.3ms)
Rendered settings/_display.html.erb (1691.3ms)
Rendered common/_tabs.html.erb (1820.0ms)
Rendered settings/edit.html.erb within layouts/admin (1820.8ms)
Completed 500 Internal Server Error in 1884ms (ActiveRecord: 39.0ms)
ActionView::Template::Error (Invalid argument @ apply2files - /web/servers/redmine-4.0.1/tmp/cache/.i18n%2Flanguages_options%2F4.0.1.stable20190220-19164-oswowk):
3: <div class="box tabular settings">
4: <p><%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme ></p>
5:
6: <p><= setting_select :default_language, lang_options_for_select(false) ></p>
7:
8: <p><= setting_check_box :force_default_language_for_anonymous %></p>
9:
lib/redmine/i18n.rb:125:in `languages_options'
app/helpers/application_helper.rb:1232:in `lang_options_for_select'
app/views/settings/_display.html.erb:6:in `block in app_views_settings_display_html_erb__340993510091443663_70326203883240'
app/views/settings/_display.html.erb:1:in `_app_views_settings__display_html_erb__340993510091443663_70326203883240'
app/views/common/_tabs.html.erb:17:in `block in app_views_common_tabs_html_erb__2649452778657733169_70326203643820'
app/views/common/_tabs.html.erb:16:in `each'
app/views/common/_tabs.html.erb:16:in `_app_views_common__tabs_html_erb__2649452778657733169_70326203643820'
app/helpers/application_helper.rb:386:in `render_tabs'
app/views/settings/edit.html.erb:5:in `_app_views_settings_edit_html_erb__3986788488367518628_70326203621180'
app/controllers/settings_controller.rb:31:in `index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
I have also started the webrick server:
[redmine-4.0.1]# bundle exec rails server webrick -e production
When I click on Settings, I get this in the webrick server conosle:
http://redmine-test.trondent.net:3000/stylesheets/application.css -> /images/true.png
10.11.0.254 - - [20/Feb/2019:12:41:16 CST] "GET /settings HTTP/1.1" 500 648
http://redmine-test.trondent.net:3000/admin/info -> /settings
Please advise?
Thank you so much for your time in advance..
Replies (8)
RE: Problem to access "Settings" from Administration menu - Added by Mario Klima almost 6 years ago
Hi,
you should take a look at the permissions of your installation.
this might help:
chmod -R 755 files log tmp public/plugin_assets && chown -R www-data:www-data files/ log/ tmp/ public/plugin_assets
restart redmine afterwards.
cheers.
RE: Problem to access "Settings" from Administration menu - Added by net ops almost 6 years ago
Hello,
Thank you for your help, I have tried that and it did not help.
Just now I have also installed the latest stable version redmine-4.0.2 and I getting the same error when accessing the settings page, by click on Administration, Settings
Please advise ?
Thank you in advance for your assistance.
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
Back
RE: Problem to access "Settings" from Administration menu - Added by Go MAEDA almost 6 years ago
Could you run the following command in the Redmine directory? This will clear cache in the tmp directory.
bin/rake tmp:clear
RE: Problem to access "Settings" from Administration menu - Added by net ops almost 6 years ago
Hello,
I tried that command and I get this.
[root@redmine-01 ~]# cd /web/servers/redmine-4.0.2
[root@redmine-01 redmine-4.0.2]# bin/rake tmp:clear
You must use Bundler 2 or greater with this lockfile.
Thanks,
RE: Problem to access "Settings" from Administration menu - Added by Go MAEDA almost 6 years ago
Please try bundle exec rake tmp:clear
instead of bin/rake tmp:clear
.
RE: Problem to access "Settings" from Administration menu - Added by net ops almost 6 years ago
I tried it and still get the same error upon accessing the Settings link:
[root@redmine-01 redmine-4.0.1]# cd /web/servers/redmine-4.0.2
[root@redmine-01 redmine-4.0.2]# gem list bundler
- LOCAL GEMS ***
bundler (2.0.1, default: 1.17.2)
bundler-unload (1.0.2)
rubygems-bundler (1.4.5)
[root@redmine-01 redmine-4.0.2]# bundle exec rake tmp:clear
[root@redmine-01 redmine-4.0.2]# systemctl restart httpd.service
[root@redmine-01 redmine-4.0.2]#
http://redmine-test.trondent.net/settings
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
Back
RE: Problem to access "Settings" from Administration menu - Added by Netsanet Shamebo over 1 year ago
after installing DMS plugin Same issue here, can anyone help?
RE: Problem to access "Settings" from Administration menu - Added by Matias Fusaro about 1 year ago
https://github.com/danmunn/redmine_dmsf/issues/1424
Solution is here
lib/redmine_dmsf/patches/notifiable_ru_patch.rb
commented the alias_methods :all, :all_with_resources_dmsf and
the function - all_with_resources_dmsf
since the error log above gives error about all_with_resources_dmsf method
def self.included(base)
base.extend ClassMethods
base.class_eval do
unloadable
class << self
alias_method :all_without_resources_dmsf, :all
# alias_method :all, :all_with_resources_dmsf
end
end
end
module ClassMethods
- def all_with_resources_dmsf
- notifications = all_without_resources_dmsf
- notifications << Redmine::Notifiable.new('dmsf_workflow_plural')
- notifications << Redmine::Notifiable.new('dmsf_legacy_notifications')
- notifications
- end
end