Opened 2 years ago

Last modified 2 years ago

#65386 assigned defect

mongodb @5.0.9: the service fails to start due to missing conf

Reported by: acidjunk (Rene Dohmen) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mongodb, mongodb-devel

Description

The default data db is not writeable: "/data/db"

As there is no default config file the scripts to launch mongod will fail.

Mongo DB version 5.0.9

Change History (3)

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

Owner: set to ryandesign
Status: newassigned

comment:2 Changed 2 years ago by acidjunk (Rene Dohmen)

Since version 5 they switched to a YAML based config:

systemLog:
   destination: file
   path: "/opt/local/var/log/mongodb/mongodb.log"
   logAppend: true
storage:
   dbPath: "/opt/local/var/db/mongodb" 
   journal:
      enabled: true
processManagement:
   fork: true
net:
   bindIp: 127.0.0.1
   port: 27017
setParameter:
   enableLocalhostAuthBypass: false

comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Port: mongodb-devel added
Summary: After installing MongoDB the service fails to start due to missing confmongodb @5.0.9: the service fails to start due to missing conf

There are many prior open tickets about the mongodb port and the fact that it does not come with a config file. If you think it should, feel free to work on any of those tickets and submit a pull request to fix it.

/data/db is the path where mongodb looks for databases by default if not told otherwise. MacPorts does tell it otherwise in the paramaters in the launchd plist (which take effect when you sudo port load mongodb). If that is no longer working and needs adjustment, again feel free to submit a fix.

I'm not currently working on these issues.

Note: See TracTickets for help on using tickets.