SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WEBrick error: address already in use

    Hello all,

    I just bought Simply Rails 2, and I have a problem when starting the local webserver.
    I'm on OSX Tiger, so WEBrick 1.3.1 is installed, but after typing 'ruby script/server' I see:
    => Booting WEBrick
    => Rails 2.3.5 application starting on hxxp://0.0.0.0:3000
    => Call with -d to detach
    => Ctrl-C to shutdown server
    [2009-12-08 21:53:24] INFO WEBrick 1.3.1
    [2009-12-08 21:53:24] INFO ruby 1.8.6 (2007-03-13) [powerpc-darwin8.11.0]
    [2009-12-08 21:53:24] WARN TCPServer Error: Address already in use - bind(2)
    Exiting

    what other app is using the same address, and how can I make webrick work ?

    TIA

    ps: I had to write 'hxxp' cause of an antispam "feature" of this forum

  2. #2
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:
    Code:
    ruby script/server -p 3001
    That will open the server on port 3001 rather than the default port 3000.

    Sorry - not a Mac man so not sure how you'd identify what is running on port 3000

  3. #3
    SitePoint Member
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ReggieB View Post
    Try:
    Code:
    ruby script/server -p 3001
    That will open the server on port 3001 rather than the default port 3000.

    Sorry - not a Mac man so not sure how you'd identify what is running on port 3000
    Hello,

    yes in the meantime I posted to Usenet the same question and got the suggestion to use another port.
    The port 3001 works, but I then saw other errors and I had to fix something about "readline" following a link in the Ruby Talk on Google Groups.

    Now it is working, but still I don't understand what's using port 3000 (apparently it's "launchd").

    Thank you for your suggestion

  4. #4
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    SitePoint Member
    Join Date
    Dec 2009
    Location
    Italy
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SOLVED !

    It's Zfone (cryptography for VoIP calls) that uses port 3000 on OSX.
    I found this explanation "If you want to use ZRTP today, go download ZFone, itís free (of course). (ps. It installs a launchd-started daemon on TCP port 3000, so if youíre a Rails developeme, you should move your mongrels on different ports until Zfone will offer a configurable listening port )"

    Anyway, I'll keep using WEBrick on port 3001, as I need Zfone running.

    Gabriele


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •