Cannot connect to port 8091 on localhost after installation

I downloaded the Couchbase server community edition on my Mac (OS X 10.11). I double-clicked the application. A menubar item appears. Activity Monitor verifies that the Couchbase server is running. An attempt to reach http://localhost:8091 fails. (I have seen some posts about this on the forum but they were from a long time ago.) What should I do?

[I would think there would be an **installation** tag, but there isn’t.]

Can you see it listening on a port? (netstat -a -b -p tcp on the command line). If you see Couchbase listed using port 8091, you might look to see if it’s blocked by a firewall. If you see it listed using a different port, try connecting to that instead.

Thanks. I am running the Couchbase server locally on my Mac. (OS X 10…11 — there shouldn’t be a Firewall issue, should there? I know that sometimes applications pop up a dialog that asks if they access something, so if Couchbase Server needed a port I would think it might ask. I trying to connect with

http://local:8091

Activity Monitor shows that the server is running. Here’s the output of

netstat -a -b -p tcp
/
/Software/_Dev_/Couchbase/couchbase-server-community_4/Couchbase Server.app/Contents/MacOS/Couchbase Server
/Software/_Dev_/Couchbase/couchbase-server-community_4/Couchbase Server.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
/usr/share/icu/icudt55l.dat
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/SystemAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/GraphiteAppearance.car
/Software/_Dev_/Couchbase/couchbase-server-community_4/Couchbase Server.app/Contents/Resources/Couchbase-Status-bw.png
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityGraphiteAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkGraphiteAppearance.car
/System/Library/Fonts/SFNSText-Regular.otf
/private/var/folders/9l/wcyszrfx3kg7s1sv0bp68_740000j7/C/com.apple.IntlDataCache.le.kbdx
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityVibrantLightAppearance.car
/private/var/folders/9l/wcyszrfx3kg7s1sv0bp68_740000j7/0/com.apple.LaunchServices-134551.csstore
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkAppearance.car
/System/Library/Fonts/SFNSText-Bold.otf
/private/var/db/mds/messages/se_SecurityMessages
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkAppearance.car
/System/Library/Fonts/Helvetica.dfont
/System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
/System/Library/Fonts/SFNSDisplay-Regular.otf
/System/Library/Fonts/SFNSDisplay-Bold.otf
/System/Library/Extensions/GeForceMTLDriver.bundle/Contents/MacOS/GeForceMTLDriver
/System/Library/Extensions/AppleIntelHD4000GraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsMTLDriver
/System/Library/PrivateFrameworks/XQuery.framework/Versions/A/XQuery
/System/Library/PrivateFrameworks/WebContentAnalysis.framework/Versions/A/WebContentAnalysis
/System/Library/Fonts/LucidaGrande.ttc
/usr/lib/dyld
/private/var/db/dyld/dyld_shared_cache_x86_64
/dev/null
/dev/null
/dev/null
count=2, state=0x12
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/SystemAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/GraphiteAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityGraphiteAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car
/Users/mlm/Library/Logs/Couchbase.log
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkAppearance.car
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityDarkGraphiteAppearance.car
->0x1b0e9283dc01a0e3
->0x1b0e9283dc017e63
->0x1b0e9283dc01a0e3
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AccessibilityVibrantLightAppearance.car
FNetwork.defaultStorageSession
->0x1b0e9283fbc9682b
->0x1b0e9283e60096fb
/dev/random

That looks like output from Activity Monitor. Run netstat -anp tcp in a terminal window. You should see a line that looks like tcp4 0 0 *.8091 *.* LISTEN

(Editing incorrect info.) See ingenthr post about what you’ll see in the menu bar.

If you don’t see anything listening on port 8091 using netstat, you could find out what ports it’s using by running netstat twice, once with the server running and once with it stopped, and looking at the difference.

Actually, there is something in the menu bar. You should see something like this:

If that’s not coming up, then I believe there should be more information in Console.app on Mac OS.

netstat -anp tcp
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4       0      0  127.0.0.1.21100        127.0.0.1.51555        ESTABLISHED
tcp4       0      0  127.0.0.1.51555        127.0.0.1.21100        ESTABLISHED
tcp4       0      0  127.0.0.1.4369         127.0.0.1.51553        ESTABLISHED
tcp4       0      0  127.0.0.1.51553        127.0.0.1.4369         ESTABLISHED
tcp4       0      0  *.21101                *.*                    LISTEN     
tcp4       0      0  192.168.2.200.51492    199.27.76.249.443      ESTABLISHED
tcp4       0      0  192.168.2.200.51491    198.232.124.36.443     ESTABLISHED
tcp4       0      0  192.168.2.200.51479    162.115.34.132.80      ESTABLISHED
tcp4       0      0  192.168.2.200.51477    162.115.34.132.80      ESTABLISHED
tcp4       0      0  192.168.2.200.51474    162.115.34.132.80      ESTABLISHED
tcp4       0      0  192.168.2.200.51476    162.115.34.132.80      ESTABLISHED
tcp4       0      0  192.168.2.200.51478    162.115.34.132.80      ESTABLISHED
tcp4       0      0  192.168.2.200.51475    162.115.34.132.80      ESTABLISHED
tcp4       0      0  192.168.2.200.51420    64.71.168.231.443      ESTABLISHED
tcp4       0      0  192.168.2.200.51328    172.217.4.46.443       ESTABLISHED
tcp4       0      0  192.168.2.200.51327    209.85.144.136.443     ESTABLISHED
tcp4       0      0  192.168.2.200.51292    192.241.223.247.443    ESTABLISHED
tcp4       0      0  192.168.2.200.51181    74.125.22.157.443      ESTABLISHED
tcp4       0      0  192.168.2.200.50953    172.217.4.46.443       ESTABLISHED
tcp4       0      0  192.168.2.200.50952    172.217.4.46.443       ESTABLISHED
tcp4      31      0  192.168.2.200.65403    52.84.121.165.443      CLOSE_WAIT 
tcp4       0      0  192.168.2.200.65369    198.252.206.25.443     ESTABLISHED
tcp4       0      0  192.168.2.200.64923    172.217.3.14.443       ESTABLISHED
tcp4       0      0  192.168.2.200.64828    107.23.7.138.443       CLOSE_WAIT 
tcp4       0      0  192.168.2.200.57891    162.125.17.131.443     ESTABLISHED
tcp4       0      0  192.168.2.200.54514    17.133.237.9.993       ESTABLISHED
tcp4      31      0  192.168.2.200.51280    45.58.74.1.443         CLOSE_WAIT 
tcp4       0      0  192.168.2.200.63104    17.133.237.9.993       ESTABLISHED
tcp4       0      0  127.0.0.1.4369         127.0.0.1.61750        ESTABLISHED
tcp4       0      0  127.0.0.1.61750        127.0.0.1.4369         ESTABLISHED
tcp4       0      0  *.21100                *.*                    LISTEN     
tcp4       0      0  *.4369                 *.*                    LISTEN     
tcp4       0      0  192.168.2.200.61699    192.241.223.247.443    ESTABLISHED
tcp4       0      0  192.168.2.200.61672    52.17.43.202.443       ESTABLISHED
tcp4       0      0  192.168.2.200.61625    173.194.205.188.5228   ESTABLISHED
tcp4       0      0  192.168.2.200.61621    17.249.124.34.5223     ESTABLISHED
tcp4       0  65700  192.168.2.202.55661    162.222.40.66.443      ESTABLISHED
tcp4       0      0  127.0.0.1.6263         127.0.0.1.51547        ESTABLISHED
tcp4       0      0  127.0.0.1.51547        127.0.0.1.6263         ESTABLISHED
tcp4       0      0  127.0.0.1.6263         127.0.0.1.51542        ESTABLISHED
tcp4       0      0  127.0.0.1.51542        127.0.0.1.6263         ESTABLISHED
tcp46      0      0  *.50933                *.*                    LISTEN     
tcp4       0      0  *.50933                *.*                    LISTEN     
tcp6       0      0  ::1.6258               *.*                    LISTEN     
tcp4       0      0  127.0.0.1.6258         *.*                    LISTEN     
tcp6       0      0  ::1.6263               *.*                    LISTEN     
tcp4       0      0  127.0.0.1.6263         *.*                    LISTEN     
tcp4     160      0  192.168.2.202.49738    192.241.223.247.443    CLOSE_WAIT 
tcp4       0      0  *.17500                *.*                    LISTEN     
tcp6       0      0  *.17500                *.*                    LISTEN     
tcp4       0      0  127.0.0.1.17603        *.*                    LISTEN     
tcp4       0      0  127.0.0.1.17600        *.*                    LISTEN     
tcp4       0      0  127.0.0.1.4243         127.0.0.1.49553        ESTABLISHED
tcp4       0      0  127.0.0.1.49553        127.0.0.1.4243         ESTABLISHED
tcp4       0      0  *.2968                 *.*                    LISTEN     
tcp4       0      0  127.0.0.1.4243         *.*                    LISTEN     
tcp4       0      0  192.168.2.202.49159    216.17.8.47.443        ESTABLISHED
tcp46      0      0  *.4242                 *.*                    LISTEN     
tcp4       0      0  127.0.0.1.49153        127.0.0.1.1023         ESTABLISHED
tcp4       0      0  127.0.0.1.1023         127.0.0.1.49153        ESTABLISHED
tcp4       0      0  *.631                  *.*                    LISTEN     
tcp6       0      0  *.631                  *.*                    LISTEN     
tcp4       0      0  127.0.0.1.49153        *.*                    LISTEN     
tcp4       0      0  127.0.0.1.49152        *.*                    LISTEN     
tcp4       0      0  *.88                   *.*                    LISTEN     
tcp6       0      0  *.88                   *.*                    LISTEN     
tcp4       0      0  *.22                   *.*                    LISTEN     
tcp6       0      0  *.22                   *.*                    LISTEN     
tcp4       0      0  *.5900                 *.*                    LISTEN     
tcp6       0      0  *.5900                 *.*                    LISTEN     
tcp4       0      0  *.548                  *.*                    LISTEN     
tcp6       0      0  *.548                  *.*                    LISTEN    

That’s what my menu looks like.

Interesting. I don’t think we’ve seen this before. I have a way to get a bit more data to help.

Open a terminal and run /Applications/Couchbase\ Server.app/Contents/Resources/start-server.sh. It’s going to send a lot of output to the terminal. If you attach that here or post a bug on issues.couchbase.com, hopefully we can spot something.

Also, Couchbase logs an entry showing which port it’s listing on. From your earlier post it looks like you’re logging to /Users/mlm/Library/Logs/Couchbase.log

/Applications/Couchbase Server.app/Contents/Resources/start-server.sh: line 14: epmd: command not found

Another bit of information: the menubar item does show up on the menubar, but when I check open on startup, the check doesn’t take.

undefined,infinity} ** Reason for termination == ** {abnormal,1} (babysitter_of_ns_1@127.0.0.1) =INFO REPORT==== 22-May-2016::20:59:32 === {net_kernel,{'EXIT',<0.86.0>,connection_closed}} (babysitter_of_ns_1@127.0.0.1) =ERROR REPORT==== 22-May-2016::20:59:33 === ** Generic server <0.85.0> terminating ** Last message in was {#Port<0.3602>,{exit_status,1}} ** When Server state == {state,#Port<0.3602>,ns_server, {["{\"Kernel pid terminated\",application_controller,\"{application_start_failure,ns_server,{{shutdown,{failed_to_start_child,ns_server_nodes_sup,{shutdown,{failed_to_start_child,wait_for_couchdb_node,{abnormal,1}}}}},{ns_server,start,[normal,[]]}}}\"}", empty,empty], [empty,empty]}, undefined,undefined,[],0} ** Reason for termination == ** {abnormal,1} (babysitter_of_ns_1@127.0.0.1) =ERROR REPORT==== 22-May-2016::20:59:33 === ** Generic server <0.84.0> terminating ** Last message in was {die,{abnormal,1}} ** When Server state == {state,ns_server,5000, {1463,965167,163006}, undefined,infinity} ** Reason for termination == ** {abnormal,1} (babysitter_of_ns_1@127.0.0.1)Terminated with status 0

epmd not found is a problem. It should be finding it somewhere under Applications/Couchbase Server.app/Contents/Resources/couchbase-core. Can you search in your installation and see if it’s there? After starting the server, you should see epmd in a ps listing (e.g. ps aux | grep epmd).

Not sure if that’s responsible for the log output you’re seeing, but epmd should be getting spun off as an independent daemon.

From your netstat output, it does look like some of the processes are starting. Take a look at the Couchbase.log file and check for references to port 8091. A normal startup has a line something like Couchbase Server has started on web port 8091, among other references.

I tried all the ways mentioned. But I am still not able to access localhost:8091