clueware / redmine_my_roadmaps

Redmine plugin that expose global roadmaps for the user's projects.
39 stars 10 forks source link

Unable to start Redmine because of special Characters #15

Closed dobermai closed 11 years ago

dobermai commented 11 years ago

When installing the plugin, Redmine 2.0.x is unable to start because of special characters in the init.rb file.

The fix is easy: I just had to replace "Stéphane" with "Stephane". Here is the relevant part of the error:


/opt/redmine/plugins/redmine_my_roadmaps/init.rb:20: invalid multibyte char (US-ASCII)
/opt/redmine/plugins/redmine_my_roadmaps/init.rb:20: syntax error, unexpected $end, expecting keyword_end
  author 'Stéphane Rondinaud'
              ^) (process 1706, thread #<Thread:0x00000000fd70f0>):
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in`require'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in`load_dependency'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
    from /opt/redmine/lib/redmine/plugin.rb:129:in`block in load'
    from /opt/redmine/lib/redmine/plugin.rb:120:in `each'
    from /opt/redmine/lib/redmine/plugin.rb:120:in`load'
    from /opt/redmine/config/initializers/30-redmine.rb:13:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in`load'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `block in load'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in`load_dependency'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/engine.rb:588:in`block (2 levels) in class:Engine'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/engine.rb:587:in `each'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/engine.rb:587:in`block in class:Engine'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/initializable.rb:30:in`run'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/initializable.rb:54:in`each'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/application.rb:136:in`initialize!'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /opt/redmine/config/environment.rb:14:in`<top (required)>'
    from config.ru:3:in `require'
    from config.ru:3:in`block in <main>'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in`initialize'
    from config.ru:1:in `new'
    from config.ru:1:in`<main>'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:225:in `eval'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:225:in`load_rack_app'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:157:in `block in initialize_server'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/utils.rb:572:in`report_app_init_status'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:154:in `initialize_server'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:204:in`start_synchronously'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:180:in `start'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/rack/application_spawner.rb:129:in`start'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb:132:in`lookup_or_add'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb:82:in`block in synchronize'
    from internal:prelude:10:in `synchronize'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server_collection.rb:79:in`synchronize'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb:137:in`spawn_application'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:357:in`server_main_loop'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/helper-scripts/passenger-spawn-server:99:in`<main>'
clueware commented 11 years ago

Hello,

This is most probably an encoding issue. Could you tell me which OS/release and LANG environment variable the issue arise, please?

Thanks

dobermai commented 11 years ago

Hi,

I'm using Centos 6.3 (cat /etc/issue tells me "CentOS release 6.3 (Final)"). My LANG environment variable is "LANG="en_US.UTF-8".

It is no real blocker for me, since the workaround for me is simple: Replace the "é" with an "e".

clueware commented 11 years ago

I've uploaded version 0.1.9 a few minutes ago, it should resolve the problem. It seems that Ruby 1.9 does not expect UTF-8 encoded source files, so I added encoding information. Could you check if it solves your issue, please?

dobermai commented 11 years ago

That seems to solve the issue, thanks