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

Mac OS port customization doesn't work

    XMLWordPrintable

Details

    • Untriaged
    • MacOSX 64-bit
    • 1
    • Unknown

    Description

      In DOC-7841 it was reported that specifying custom ports on a Mac installation wasn't working. This ticket is tracking fixes for the issue.  A workaround was provided in the DOC ticket.

      Installation on Mac instructions: https://docs.couchbase.com/server/current/install/macos-install.html

      Specifying custom ports: https://docs.couchbase.com/server/current/install/install-ports.html#map-custom-ports

      Couchbase downloads: https://www.couchbase.com/downloads

      Looking at the "/Applications/Couchbase Server.app/Contents/Resource/start-server.sh" file we see:

      |sed -e "s\|@DATA_PREFIX@\|$datadir\|g" -e "s\|@BIN_PREFIX@\|$COUCHBASE_TOP\|g" \|
      |"$COUCHBASE_TOP/etc/couchbase/static_config.in" > "$datadir/etc/couchbase/static_config"|
      

      With this tidbit in hand I made the custom port modification (

      {rest_port, 9000}/
      

      to "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/etc/couchbase/static_config.in" and then deleted "~/Library/Application\ Support/Couchbase/var/lib/couchbase/config/config.dat" and then restarted couchbase. The custom port was used.

      I believe this is an issue only for Mac where we don't support production installations where this kind of customization typically takes place. 

       

      Attachments

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

        Activity

          People

            dfinlay Dave Finlay
            steve.watanabe Steve Watanabe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty