[MacPorts] #45434: mongodb refuses to connect on yosemite

MacPorts noreply at macports.org
Sat Oct 18 08:28:36 PDT 2014


#45434: mongodb refuses to connect on yosemite
--------------------------+--------------------------
  Reporter:  p.perroud@…  |      Owner:  ryandesign@…
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  mongodb      |
--------------------------+--------------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => ryandesign@…


Old description:

> mongodb is building fine on yosemite with macports 2.3.2 but refuses to
> connect:
>

> {{{
> $ mongo
> MongoDB shell version: 2.6.5
> connecting to: test
> 2014-10-18T08:00:52.404+0200 warning: Failed to connect to
> 127.0.0.1:27017, reason: errno:61 Connection refused
> 2014-10-18T08:00:52.405+0200 Error: couldn't connect to server
> 127.0.0.1:27017 (127.0.0.1), connection attempt failed at
> src/mongo/shell/mongo.js:146
> exception: connect failed
> }}}
>
> A pretty generic error that does'nt mean much but this port was not
> configured correctly at installation time.
>
> No log written to /opt/local/var/log/mongodb/
>
> But this trace in system.log:
>
> Oct 18 08:09:11 iMac27.local sudo[4559]:     root : TTY=unknown ; PWD=/ ;
> USER=pperroud ; COMMAND=/opt/local/bin/mongod --dbpath
> /opt/local/var/db/mongodb --logpath
> /opt/local/var/log/mongodb/mongodb.log --logappend
> Oct 18 08:09:11 iMac27 com.apple.xpc.launchd[1] (org.macports.mongodb):
> Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

New description:

 mongodb is building fine on yosemite with macports 2.3.2 but refuses to
 connect:


 {{{
 $ mongo
 MongoDB shell version: 2.6.5
 connecting to: test
 2014-10-18T08:00:52.404+0200 warning: Failed to connect to
 127.0.0.1:27017, reason: errno:61 Connection refused
 2014-10-18T08:00:52.405+0200 Error: couldn't connect to server
 127.0.0.1:27017 (127.0.0.1), connection attempt failed at
 src/mongo/shell/mongo.js:146
 exception: connect failed
 }}}

 A pretty generic error that does'nt mean much but this port was not
 configured correctly at installation time.

 No log written to /opt/local/var/log/mongodb/

 But this trace in system.log:

 {{{
 Oct 18 08:09:11 iMac27.local sudo[4559]:     root : TTY=unknown ; PWD=/ ;
 USER=pperroud ; COMMAND=/opt/local/bin/mongod --dbpath
 /opt/local/var/db/mongodb --logpath /opt/local/var/log/mongodb/mongodb.log
 --logappend
 Oct 18 08:09:11 iMac27 com.apple.xpc.launchd[1] (org.macports.mongodb):
 Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/45434#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list