# Win32-services - RPC server unavailable?

**URL:** <https://www.ruby-forum.com/t/win32-services-rpc-server-unavailable/89425>\
**Category:** Ruby\
**Created:** [January 4, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/win32-services-rpc-server-unavailable/89425 "2006-01-04T17:29:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [January 4, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/win32-services-rpc-server-unavailable/89425/1 "2006-01-04T17:29:36Z")

</div>

Hi

Trying to get a ruby win32 service running on my winxp. Downloaded the  
win32-installer from raa, it seemed to install OK. Then trying this  
sample code:

require “win32/service”  
include Win32

s = Service.new(“some\_machine”)  
…

when I run this I get "The RPC Server is unavailable  
(Win32::ServiceError)

at the s = … line.

Any ideas?

thanks

Daniel

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [January 4, 2006, 8:18pm UTC](https://www.ruby-forum.com/t/win32-services-rpc-server-unavailable/89425/2 "2006-01-04T20:18:29Z")

</div>

On 1/4/06, Daniel McBrearty [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> …
> 
> when I run this I get "The RPC Server is unavailable  
> (Win32::ServiceError)
> 
> at the s = … line.
> 
> Any ideas?

My suggestion would be to open the Windows Services console and make  
sure the Remote Procedure Call (RPC) service and/or the RPC Locator  
service are running.

Ryan

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [January 5, 2006, 9:25am UTC](https://www.ruby-forum.com/t/win32-services-rpc-server-unavailable/89425/3 "2006-01-05T09:25:32Z")

</div>

Thanks. I’ve done that. Both are running, but I have the same error. I  
also tried a few different options in the logon section, same result.  
Any other clues?

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [January 6, 2006, 10:24am UTC](https://www.ruby-forum.com/t/win32-services-rpc-server-unavailable/89425/4 "2006-01-06T10:24:14Z")

</div>

thanks. I found out how to find the docs for this now … 🙂

---

<div class="post-metadata">

**Author:** ![danmcb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Post date:** [January 5, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/win32-services-rpc-server-unavailable/89425/5 "2006-01-05T17:44:27Z")

</div>

Daniel McBrearty wrote:

> Thanks. I’ve done that. Both are running, but I have the same error. I  
> also tried a few different options in the logon section, same result.  
> Any other clues?
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

The “some\_machine” is just a stub for whatever machine you want to  
install it on, it isn’t meant to be used literally. If you just want  
to install it on your local box, remove “some\_machine”, e.g. service =  
Service.new.

Regards,

Dan
