# Error when install Mongrel as a Windows service

**URL:** <https://www.ruby-forum.com/t/error-when-install-mongrel-as-a-windows-service/148767>\
**Category:** Mongrel\
**Created:** [September 16, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/error-when-install-mongrel-as-a-windows-service/148767 "2008-09-16T23:01:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaoshimei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/9fc348/32.png) [@xiaoshimei](https://www.ruby-forum.com/u/xiaoshimei)\
**Post date:** [September 16, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/error-when-install-mongrel-as-a-windows-service/148767/1 "2008-09-16T23:01:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![xiaoshimei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/9fc348/32.png) [@xiaoshimei](https://www.ruby-forum.com/u/xiaoshimei)\
**Post date:** [September 17, 2008, 1:26am UTC](https://www.ruby-forum.com/t/error-when-install-mongrel-as-a-windows-service/148767/2 "2008-09-17T01:26:27Z")

</div>

On Tue, Sep 16, 2008 at 6:01 PM, Sophie Su [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 L. 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

---

<div class="post-metadata">

**Author:** ![xiaoshimei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/9fc348/32.png) [@xiaoshimei](https://www.ruby-forum.com/u/xiaoshimei)\
**Post date:** [September 17, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/error-when-install-mongrel-as-a-windows-service/148767/3 "2008-09-17T19:07:58Z")

</div>

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 L. wrote:

> On Tue, Sep 16, 2008 at 6:01 PM, Sophie Su [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 L.  
> AREA 17
