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

setup get HDD and memory totale and free space wrong (0Mb)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.7.1.1, 1.7.2, 2.0.1
    • Fix Version/s: 2.0-beta
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
      None
    • Environment:

      Description

      when connecting for the first time to the HTTP setup GUI (http://195.154.218.88:8091/index.html)

      I got for the HDD :
      Configure Disk Storage
      Path: /opt/membase/var/lib/membase/data Free: 0 GB

      And for the memory (if creating new cluster):
      RAM Available: 0 MB
      Per Server RAM Quota: MB (256 MB — 0 MB)

      Or for the memory (if joining existing cluster):
      Attention - Prepare join failed. This server does not have sufficient memory to support the cluster quota (Cluster Quota is 14968MB per node, this server only has 0MB)!

      Joining the cluster with the CLI do the same :
      /opt/membase/bin/membase rebalance -c X.X.X.1:8091 -uLOGIN -pPASSWD --server-add=X.X.X.2:8091
      ERROR: unable to server-add X.X.X.2:8091 (400) Bad Request
      [u'Prepare join failed. This server does not have sufficient memory to support the cluster quota (Cluster Quota is 14968MB per node, this server only has 0MB)!']

      On those 2 identical virtual server (Openvz virtualisation) i have :
      #free -m
      total used free shared buffers cached
      Mem: 15992 1054 14937 0 0 0
      -/+ buffers/cache: 1054 14937
      Swap: 0 0 0
      #df -h
      Filesystem Size Used Avail Use% Mounted on
      /dev/simfs 98G 70G 23G 76% /
      tmpfs 7.9G 0 7.9G 0% /lib/init/rw
      tmpfs 7.9G 0 7.9G 0% /dev/shm

      As you see : The code in charge of detecting hdd and memory space fails and reports 0Mb , thus prevents me from creatingor joining a cluster.

      I happy to give you any info you need : just ask.

      Kinds regards, Aurelien

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          alkondratenko Aleksey Kondratenko (Inactive) added a comment -

          Anton's fix is not yet part of any formal erlang release. http://i.imgur.com/UH47B.png

          Show
          alkondratenko Aleksey Kondratenko (Inactive) added a comment - Anton's fix is not yet part of any formal erlang release. http://i.imgur.com/UH47B.png
          Hide
          steve Steve Yen added a comment -

          From alk...

          I believe it was assigned to linux_installer because we will eventually need to ship erlang vm version with openvz fix.

          Show
          steve Steve Yen added a comment - From alk... I believe it was assigned to linux_installer because we will eventually need to ship erlang vm version with openvz fix.
          Hide
          rrrb Ricardo added a comment -

          Just a quick word to thank Anton Vorobev !
          Your quick fix (recompiling memsup with the fixed version) did the trick.

          Once Couchbase restarted, the avalaible space was visible.

          Tested with Couchbase 1.8 on a OpenVZ instance of a centos-5-standard_5.2-1 server

          Show
          rrrb Ricardo added a comment - Just a quick word to thank Anton Vorobev ! Your quick fix (recompiling memsup with the fixed version) did the trick. Once Couchbase restarted, the avalaible space was visible. Tested with Couchbase 1.8 on a OpenVZ instance of a centos-5-standard_5.2-1 server
          Hide
          perry Perry Krug added a comment -

          Apparently this issue has resurfaced for OpenVZ on 2.0.1

          Reopening to make sure it gets fixed

          Show
          perry Perry Krug added a comment - Apparently this issue has resurfaced for OpenVZ on 2.0.1 Reopening to make sure it gets fixed
          Hide
          maria Maria McDuff (Inactive) added a comment -

          closing as dupes.

          Show
          maria Maria McDuff (Inactive) added a comment - closing as dupes.

            People

            • Assignee:
              steve Steve Yen
              Reporter:
              orellem orel lem
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes