Administration actions “Internal error”
Added by Samuel Infante about 13 years ago
I am trying to install Redmine as our project management software. I already have the site working and as the user admin I can create projects, issues, files and everything else related to projects.
The problem I am having is that I can't add new users, change settings or edit existing users (only admin so far).
The production.log gives this error when trying to enter the settings page:
Processing ApplicationController#index (for xxx.xxx.xxx.xxx at 2011-06-28 23:20:56) [GET] Parameters: {"controller"=>"settings", "action"=>"index"} ArgumentError (invalid byte sequence in US-ASCII): <internal:prelude>:10:in `synchronize' passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `block in handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in `start' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in `block (2 levels) in spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' <internal:prelude>:10:in `synchronize' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.7) helper-scripts/passenger-spawn-server:99:in `<main>' Rendering /var/www/html/redmine/public/500.html (500 Internal Server Error)
It gives almost the same message when trying to add a new user.
I am using bundler for my gems and this is my Gemfile:
source 'http://rubygems.org' gem 'rails', '2.3.11' gem 'rake', '0.8.3' gem 'rack', '1.1.0' gem 'i18n', '0.4.2' gem 'rubytree', '0.5.2', :require => 'tree' gem 'RedCloth', '~>4.2.3', :require => 'redcloth' gem 'mysql' gem 'coderay', '~>0.9.7'
Versions:
ruby: ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
gem: 1.6.2
passenger: 3.0.7
mysql: 5.1.12
rvm: 1.6.20
Any help would be greatly appreciated!
Replies (1)
RE: Administration actions “Internal error”
-
Added by Samuel Infante about 13 years ago
I found the problem!
Passenger was wrapped to another gemset of RVM, that made Passenger use Ruby 1.9.2 instead of 1.8.7.
The fix is to use the rvm wrapper to the correct gemset and make sure the path on your apache config is linking the correct passenger gem.
Hope it helps someone else!