Forum: Mongrel Error when install Mongrel as a Windows service

Posted by Sophie Su (xiaoshimei)
on 2008-09-16 23:01
I have Ruby and Rails 2.1.1 installed, then I installed mongrel 1.1.5.
Now I want to install mongrel as a service. I downloaded and installed
mongrel_service-0.3.3-mswin32.gem. After all these, I followed the
instructions to install it as service by running the command below, but
got an error.

C:\ruby>mongrel_rails service::install -N BuildDashboard -c "c:\Build
Dashboard" -p 4000 -e development

c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.3-mswin32/lib/mongrel_service/init.rb:140:in
`initialize':

wrong number of arguments (0 for 1) (ArgumentError)

        from
c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.3-mswin32/lib/mongrel_service/init.rb:140:in
`new'

        from
c:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.3-mswin32/lib/mongrel_service/init.rb:140:in
`run'

        from
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/command.rb:212:in
`run'

        from
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:281

        from c:/ruby/bin/mongrel_rails:16:in `load'

        from c:/ruby/bin/mongrel_rails:16

Thanks for any help.
Posted by Luis Lavena (luislavena)
on 2008-09-17 01:26
(Received via mailing list)
On Tue, Sep 16, 2008 at 6:01 PM, Sophie Su <lists@ruby-forum.com> wrote:
> I have Ruby and Rails 2.1.1 installed, then I installed mongrel 1.1.5.
> Now I want to install mongrel as a service. I downloaded and installed
> mongrel_service-0.3.3-mswin32.gem. After all these, I followed the
> instructions to install it as service by running the command below, but
> got an error.
>

Did you install mongrel_service using RubyGems locally or remote?

If you downloaded the gem and installed locally then the win32/service
dependency will not be fulfilled.

mongrel_service requires a specific version of that win32-service gem
>= 0.5.2 and less than 0.6, since that version introduced some
incompatibilities that require a lot of code change in the plugin.

--
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
Posted by Sophie Su (xiaoshimei)
on 2008-09-17 19:07
Thanks very much for that information. I installed mongrel service 
locally. I didn't know it caused the service not work. My employer 
blocked lots of internet sites, so I was not able to install mongrel 
remotely from the office. I took my laptop home and did the remote 
installation from home. Now it works. Thanks again.

Luis Lavena wrote:
> On Tue, Sep 16, 2008 at 6:01 PM, Sophie Su <lists@ruby-forum.com> wrote:
>> I have Ruby and Rails 2.1.1 installed, then I installed mongrel 1.1.5.
>> Now I want to install mongrel as a service. I downloaded and installed
>> mongrel_service-0.3.3-mswin32.gem. After all these, I followed the
>> instructions to install it as service by running the command below, but
>> got an error.
>>
> 
> Did you install mongrel_service using RubyGems locally or remote?
> 
> If you downloaded the gem and installed locally then the win32/service
> dependency will not be fulfilled.
> 
> mongrel_service requires a specific version of that win32-service gem
>>= 0.5.2 and less than 0.6, since that version introduced some
> incompatibilities that require a lot of code change in the plugin.
> 
> --
> Luis Lavena
> AREA 17

Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.