Details
-
Bug
-
Resolution: Unresolved
-
Major
-
6.6.1
-
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.