Opened 3 years ago

Last modified 2 years ago

#63285 assigned defect

mongodb does not start as installed

Reported by: jwoehr (Jack J. Woehr) Owned by: jwoehr (Jack J. Woehr)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: mongodb

Description (last modified by jwoehr (Jack J. Woehr))

None of the suggestions I have seen start mongodb once installed.

There seems to be no conf file installed, nor any instructions (other than the web links above) how or where to create. Having created such a conf file /opt/local/etc/mongodb/mongodb.conf and chown'ed it to _mongo:_mongo the program still exits silently.

Change History (4)

comment:1 Changed 3 years ago by jwoehr (Jack J. Woehr)

Description: modified (diff)

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to ryandesign
Status: newassigned

comment:3 Changed 3 years ago by jwoehr (Jack J. Woehr)

INVALID ... Apologies ... Reading /opt/local/var/log/mongodb/mongodb.log I determined mongod was choking on a backlevel database.

  • I deleted the /opt/local/var/db/mongodb
  • Recreated the directory and chown'ed it to _mongo:_mongo
  • sudo port load mongodb now works

Not sure if the manual step of creating the configuration was valid and that the created config is actually the one being used.

  • Suggest some build-time message for the user informing the user where the config file should reside.
  • Suggest some build-time message alerting user that db might have to be recreated.

Thank you for your help.

comment:4 Changed 2 years ago by jwoehr (Jack J. Woehr)

Owner: changed from ryandesign to jwoehr
Note: See TracTickets for help on using tickets.