Using mongrel_rails: Can't install Redmine as win2003 service

5 views
Skip to first unread message

Meglio

unread,
Nov 21, 2009, 3:18:10 PM11/21/09
to Ruby on Rails: Talk
Hello everyone.

After stugging 3+ hours installing redmine I got success but still
can't install redmine as service (windows 2003).

So here is my problem. I successfully installed redmine and mapped it
to mysql, created database and initialized it with default values.
Last thing I'm trying to do is to install it as service on windows
2003, and for this I'm running in cmd mode this instruction:

mongrel_rails service::install -N Redmine -c [your redmine folder] -p
[portno] -e production

and I get this error:
C:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.7.0-x86-mswin32-60/lib/
win32/service.rb:282:in `initialize': no options provided
(ArgumentError)

When I try without params:
mongrel_rails service::install
... it just says that name (-N) is obligatory.

But when I try with name only (-N), I get the same error.

Any help appreciated.

Thanks,
Anton

Meglio

unread,
Nov 21, 2009, 5:26:24 PM11/21/09
to Ruby on Rails: Talk
And here is detailed output:

C:\ruby\apps\redmine>mongrel_rails service::install -N RedmineMeglio -
c C:\ruby\apps\redmine -p 8666 -e meglio
C:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.7.0-x86-mswin32-60/lib/
win32/service.rb:282:in `initialize': no options provided
(ArgumentError)
from C:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.1/lib/
mongrel_service/init.rb:115:in `new'
from C:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.1/lib/
mongrel_service/init.rb:115:in `run'
from C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/../lib/mongrel/command.rb:212:in `run'
from C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-
mswin32-60/bin/mongrel_rails:281
from C:/ruby/bin/mongrel_rails:19:in `load'
from C:/ruby/bin/mongrel_rails:19

SA

unread,
Nov 23, 2009, 11:59:09 AM11/23/09
to Ruby on Rails: Talk
I think I am seeing the same issue. See also versions of various gems.
This used to work with the 0.3.4 version of the mongrel_service gem.
Is there a fix or update for this. I want to avoid hacking line 115 /
ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.1/lib/mongrel_service/
init.rb if possible...

Thanks

E:\railsapps\rlms>mongrel_rails service::install -N mongrel_rlms1 -p
3001 -e production -c e:\railsapps\rlms
mongrel_rails service::install -N mongrel_rlms1 -p 3001 -e production -
c e:\railsapps\rlms
e:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.7.0-x86-mswin32-60/lib/
win32/service.rb:282:in `initialize': no options provided
(ArgumentError)
from e:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.1/lib/
mongrel_service/init.rb:115:in `new'
from e:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.1/lib/
mongrel_service/init.rb:115:in `run'
from e:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/
bin/../lib/mongrel/command.rb:212:in `run'
from e:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/
mongrel_rails:281
from e:/ruby/bin/mongrel_rails:19:in `load'
from e:/ruby/bin/mongrel_rails:19

E:\railsapps\rlms>gem list mongrel
gem list mongrel
mongrel (1.1.5)
mongrel_service (0.1)

E:\railsapps\rlms>gem list win32-service
gem list win32-service
win32-service (0.7.0)

E:\railsapps\rlms>gem list rails
gem list rails
rails (2.1.1)

SA

unread,
Nov 23, 2009, 2:24:09 PM11/23/09
to Ruby on Rails: Talk
FWIW: I just discovered that if I uninstall the 0.7.0 version of the
win232-service gem

and install this one instead:

gem install -v=0.5.2 win32-service

I can now install mongrel services w/o error.
> >         from C:/ruby/bin/mongrel_rails:19- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages