Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-3961

multi-homed Windows 2003 server fails to start Erlang

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.5.3
    • Fix Version/s: 1.7.1.1
    • Component/s: ns_server
    • Security Level: Public
    • Environment:
      Windows Server 2003 Service Pack 2
      3.6GHz processor
      3.5GB RAM

      Description

      Some logs attached and an erlang crashdump

      Through working with Bin we found that the problem has to do with reading the IP address list of the server;
      Eshell V5.7.4 (abort with ^G)
      1> inet:getif().

      {error,efault}
      2> inet:getiflist().{error,efault}
      1. erl_crash.dump
        308 kB
        Perry Krug

        Activity

        Show
        farshid Farshid Ghods (Inactive) added a comment - http://review.membase.org/#change,8646
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Integrated in github-ns-server-2-0 #95 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/95/)
        MB-3961 Work around inet:getiflist() bug under multi-home

        Bin Cui :
        Files :

        • src/menelaus_web.erl
        • src/addr_util.erl
        Show
        farshid Farshid Ghods (Inactive) added a comment - Integrated in github-ns-server-2-0 #95 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/95/ ) MB-3961 Work around inet:getiflist() bug under multi-home Bin Cui : Files : src/menelaus_web.erl src/addr_util.erl
        Hide
        bcui Bin Cui added a comment -

        Root cause:
        erlang inet:getiflist() will throw exception under multi-homed window environment.
        Remove the dependency by reinplementing a new uuid and/or use inet:getifadrs() instead.

        Show
        bcui Bin Cui added a comment - Root cause: erlang inet:getiflist() will throw exception under multi-homed window environment. Remove the dependency by reinplementing a new uuid and/or use inet:getifadrs() instead.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Integrated in github-ns-server-2-0 #117 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/117/)
        MB-3961 Work around inet:getiflist() bug under multi-home

        Bin Cui :
        Files :

        • src/uuid.erl
        • src/addr_util.erl
        • src/menelaus_web.erl
        Show
        farshid Farshid Ghods (Inactive) added a comment - Integrated in github-ns-server-2-0 #117 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/117/ ) MB-3961 Work around inet:getiflist() bug under multi-home Bin Cui : Files : src/uuid.erl src/addr_util.erl src/menelaus_web.erl
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        backported to 1.7.1.1

        Show
        farshid Farshid Ghods (Inactive) added a comment - backported to 1.7.1.1

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes