Project

General

Profile

Unable to start Redmine as Windows service.

Added by andrew dambrosio about 11 years ago

I arrived at work this morning to find Redmine was not working. I've spent all morning trying to get it running and it doesn't work.
I'm using Redmine 2.2.
I've tried setting up the Windows service again.
I've created the service "Redmine", in regedit, I've added the Application key and have this set to

C:\Ruby193\bin\ruby.exe

I've created the AppParameters key and have this set to

C:\Ruby193\apps\redmine\script\rails server -e production

I then run the service and am unable to connect when I enter the URL in my browser.
If I run this from the command line
C:\Ruby193\bin\ruby.exe C:\Ruby193\apps\redmine\script\rails server -e production
I get the error
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require': C:/Ruby193/apps/redmine
/plugins/redmine_msg_preview/init.rb:21: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
        when "SENDER":
                      ^
C:/Ruby193/apps/redmine/plugins/redmine_msg_preview/init.rb:23: syntax error, unexpected keyword_when, expecting keyword_end
        when "SUBJECT" 
            ^
C:/Ruby193/apps/redmine/plugins/redmine_msg_preview/init.rb:25: syntax error, unexpected keyword_when, expecting keyword_end
        when "CREATION_TIME" 
            ^
C:/Ruby193/apps/redmine/plugins/redmine_msg_preview/init.rb:31: syntax error, unexpected keyword_end, expecting $end
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `block in require'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require'
        from C:/Ruby193/apps/redmine/lib/redmine/plugin.rb:130:in `block in load'
        from C:/Ruby193/apps/redmine/lib/redmine/plugin.rb:121:in `each'
        from C:/Ruby193/apps/redmine/lib/redmine/plugin.rb:121:in `load'
        from C:/Ruby193/apps/redmine/config/initializers/30-redmine.rb:12:in `<top (required)>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:in `load'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:in `block in load'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:in `load'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/engine.rb:587:in `each'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/engine.rb:587:in `block in <class:Engine>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `instance_exec'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `run'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `each'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `run_initializers'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:136:in `initialize!'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in `method_missing'
        from C:/Ruby193/apps/redmine/config/environment.rb:14:in `<top (required)>'
        from C:/Ruby193/apps/redmine/config.ru:3:in `require'
        from C:/Ruby193/apps/redmine/config.ru:3:in `block in <main>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:51:in `instance_eval'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:51:in `initialize'
        from C:/Ruby193/apps/redmine/config.ru:in `new'
        from C:/Ruby193/apps/redmine/config.ru:in `<main>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:40:in `eval'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:40:in `parse_file'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:200:in `app'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:46:in `app'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:304:in `wrapped_app'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:254:in `start'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:70:in `start'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:55:in `block in <top (required)>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
        from C:/Ruby193/apps/redmine/script/rails:6:in `require'
        from C:/Ruby193/apps/redmine/script/rails:6:in `<main>'

Can someone please help.