# WEBrick initialisation problem

**URL:** <https://rubytalk.org/t/webrick-initialisation-problem/27133>\
**Category:** ruby-talk\
**Created:** [3 May 2006 18:37 UTC](https://rubytalk.org/t/webrick-initialisation-problem/27133 "2006-05-03T18:37:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Watson](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@Brian\_Watson](https://rubytalk.org/u/Brian_Watson)\
**Post date:** [3 May 2006 18:37 UTC](https://rubytalk.org/t/webrick-initialisation-problem/27133/1 "2006-05-03T18:37:07Z")

</div>

> From: Eric Hodel [mailto:drbrain@segment7.net]  
> Sent: 03 May 2006 17:40  
> To: ruby-talk ML  
> Subject: Re: WEBrick initialisation problem
> 
> \> I am new to Ruby so I thought the best way to get into it would be

to

> \> follow the ONLamp "Rolling with Ruby on Rails" intro. I followed the  
> \> instructions to the letter and everything work just great, very  
> \> impressive:-).  
> \>  
> \> A couple of days later when I went back to it I got the following  
> \> message when trying to start the WEBrick server.  
> \>  
> \> U:\RoRProjects\cookbook\>ruby script\server  
> \> =\> Booting WEBrick...  
> \> =\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
> \> =\> Ctrl-C to shutdown server; call with --help for options  
> \> [2006-05-03 08:52:40] INFO WEBrick 1.3.1  
> \> [2006-05-03 08:52:40] INFO ruby 1.8.4 (2005-12-24) [i386-mswin32]  
> \> [2006-05-03 08:52:40] WARN TCPServer Error: Bad file descriptor -  
> \> bind(2)  
> \> u:/ruby/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Bad file  
> \> descriptor - bind(2) (Errno::EBADF)  
> \> from u:/ruby/lib/ruby/1.8/webrick/utils.rb:73:in  
> \> `create\_listeners'
> 
> You probably have a WEBrick already running. Shut it down.
> 
> PS: Please remove extra newlines from your pastes.
> 
> --  
> Eric Hodel - drbrain@segment7.net - [http://blog.segment7.net](http://blog.segment7.net)  
> This implementation is HODEL-HASH-9600 compliant
> 
> [http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

Thanks for the reminder re: extra newlines.  
I have no WEBrick already, nor IIS or Apache or any other web server  
that I'm aware of.

> **···**
>
> > -----Original Message-----  
> > On May 3, 2006, at 1:24 AM, Brian Watson wrote:

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [3 May 2006 18:56 UTC](https://rubytalk.org/t/webrick-initialisation-problem/27133/2 "2006-05-03T18:56:29Z")

</div>

What does this do?

ruby -rsocket -e "TCPServer.new 'localhost', 3000"

> **···**
>
> On May 3, 2006, at 11:37 AM, Brian Watson wrote:
> 
> > > -----Original Message-----  
> > > From: Eric Hodel [mailto:drbrain@segment7.net]  
> > > Sent: 03 May 2006 17:40  
> > > To: ruby-talk ML  
> > > Subject: Re: WEBrick initialisation problem
> > > 
> > > On May 3, 2006, at 1:24 AM, Brian Watson wrote:
> > > 
> > > > I am new to Ruby so I thought the best way to get into it would be to  
> > > > follow the ONLamp "Rolling with Ruby on Rails" intro. I followed the  
> > > > instructions to the letter and everything work just great, very  
> > > > impressive:-).
> > > > 
> > > > A couple of days later when I went back to it I got the following  
> > > > message when trying to start the WEBrick server.
> > > > 
> > > > U:\RoRProjects\cookbook\>ruby script\server  
> > > > =\> Booting WEBrick...  
> > > > =\> Rails application started on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
> > > > =\> Ctrl-C to shutdown server; call with --help for options  
> > > > [2006-05-03 08:52:40] INFO WEBrick 1.3.1  
> > > > [2006-05-03 08:52:40] INFO ruby 1.8.4 (2005-12-24) [i386-mswin32]  
> > > > [2006-05-03 08:52:40] WARN TCPServer Error: Bad file descriptor -  
> > > > bind(2)  
> > > > u:/ruby/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Bad file  
> > > > descriptor - bind(2) (Errno::EBADF)  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from u:/ruby/lib/ruby/1.8/webrick/utils.rb:73:in  
> > > > `create\_listeners'
> > > 
> > > You probably have a WEBrick already running. Shut it down.
> > 
> > I have no WEBrick already, nor IIS or Apache or any other web server  
> > that I'm aware of.
> 
> --  
> Eric Hodel - drbrain@segment7.net - [http://blog.segment7.net](http://blog.segment7.net)  
> This implementation is HODEL-HASH-9600 compliant
> 
> [http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
