Code Monkey home page Code Monkey logo

mongodbapp's Introduction

mongoDB.app

The easiest way to get started with mongoDB on the Mac.

Just download, drag to the applications folder, and double-click.

mongoDB.app Screenshot


Version numbers

Version numbers of this project (mongoDB.app) try to communicate the included version of the included mongoDB binaries bundled with each release.

The version number also includes a build number which is used to indicate the current version of mongoDB.app and it's independent from the bundled mongoDB's version.

Adding mongo binaries to your path

If you need to add the mongoDB binaries to your path you can do so by adding the following to your ~/.bash_profile.

# Add mongoDB.app binaries to path
export PATH="/Applications/MongoDB.app/Contents/Resources/Vendor/mongodb/bin:$PATH"

Or using the path_helper alternative:

sudo mkdir -p /etc/paths.d &&
echo /Applications/MongoDB.app/Contents/Resources/Vendor/mongodb/bin | sudo tee /etc/paths.d/mongodbapp

Installing with Homebrew Cask

You can also install MongoDB.app with Homebrew Cask.

$ brew cask install gcollazo-mongodb

Similar projects

mongodbapp's People

Contributors

gcollazo avatar kdubb avatar kenorb avatar stefanodevuono avatar yeradis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mongodbapp's Issues

open mongo Connection refused

MongoDB shell version v4.0.0
connecting to: mongodb://127.0.0.1:27017
2018-07-18T09:56:02.127+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed

Allow user to create their own mongo config file

Sorry, I'm too lazy to fork and create a pull request for a 7 line change, but would be nice if the user could have their own mongodb.conf to configure options.

The code below changes startServer to check for a file in the user home directory, and if found add it to the command arguments.

Full File attached: AppDelegate

    func startServer() {
        self.task = NSTask()
        self.pipe = NSPipe()
        self.file = self.pipe.fileHandleForReading

        if let path = NSBundle.mainBundle().pathForResource("mongod", ofType: "", inDirectory: "Vendor/mongodb") {
            self.task.launchPath = path
        }

        var args = ["--dbpath", self.dataPath, "--nounixsocket", "--logpath", "\(self.logPath)/mongo.log"]

        // Check if user config file exists and add to arguments (~/.mongodb.conf)
        let configFile = (NSHomeDirectory() + "/.mongodb.conf")
        let fileManager = NSFileManager.defaultManager()
        if fileManager.fileExistsAtPath(configFile) {
            args.append("--config")
            args.append(configFile)
        }

        self.task.arguments = args
        self.task.standardOutput = self.pipe

        print("Run mongod")

        self.task.launch()
    }

Unable to update the app

I'm using this application for a while now and I've never experienced this problem until now.
I can't update my app from the software update, the update download goes right but when I click on the "Install and Relaunch" button, it tells me an error occured while extracting the archive. I don't understand what's going wrong with it.


OS : OSX v 10.12.6 (Sierra)
Screenshots:
capture d ecran 2017-11-10 a 14 30 19
capture d ecran 2017-11-10 a 14 30 33

I don't know if the problem comes from my mac or from the application, nevermind I just post it there if anyone experienced it or has a explanation for this error :)

Stop using Documents directory

Newer macOS installs synchronize the Documents directory to iCloud. Running mongoDB.app on this configuration causes endless sync's to iCloud.

Considering the ephemeral nature of data files related to this type of application, which is indeed most used to ease development, moving them to ~/Application Support/mongoDB/ would seem more fitting. This directory is permanent and suggested by Apple as the location for internal application files.

Upgrade MongoDB to 3.0

MongoDB announced they will be releasing version 3.0 of the database in March. I expect to upgrade the bundled version as soon as a stable version is available here.

Start server on open

We should copy the model of Postgres.app, in which once you open the app the server is running and when you quit the server stops.

Allow users to run different versions of Mongo

The idea is to follow the same path of Postgres.app, where it has been possible for some time (I believe since the release of version 2) to have different versions of PostgreSQL in the same Postgres.app installation.

Here's a screenshot for those not familiar with Postgres.app
postgresapp

upgrade mongodbapp, connect refuse

截屏2022-11-01 下午5 56 14

截屏2022-11-01 下午5 59 38

i upgrade [email protected], robo3T not connect. i'm not found problem;

logs:

{"t":{"$date":"2022-11-01T17:34:36.384+08:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2022-11-01T17:34:36.419+08:00"},"s":"I",  "c":"NETWORK",  "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true}}}
{"t":{"$date":"2022-11-01T17:34:36.423+08:00"},"s":"I",  "c":"NETWORK",  "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2022-11-01T17:34:36.430+08:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2022-11-01T17:34:36.430+08:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2022-11-01T17:34:36.430+08:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2022-11-01T17:34:36.430+08:00"},"s":"I",  "c":"CONTROL",  "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
{"t":{"$date":"2022-11-01T17:34:36.430+08:00"},"s":"I",  "c":"CONTROL",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1587,"port":27017,"dbPath":"/Users/labikemmy/Library/Application Support/MongoDB/Data","architecture":"64-bit","host":"LabikedeMacBook-Pro.local"}}
{"t":{"$date":"2022-11-01T17:34:36.431+08:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.0","gitVersion":"e61bf27c2f6a83fed36e5a13c008a32d563babe2","modules":[],"allocator":"system","environment":{"distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2022-11-01T17:34:36.431+08:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"21.2.0"}}}
{"t":{"$date":"2022-11-01T17:34:36.431+08:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"127.0.0.1","unixDomainSocket":{"enabled":false}},"storage":{"dbPath":"/Users/labikemmy/Library/Application Support/MongoDB/Data"},"systemLog":{"destination":"file","path":"/Users/labikemmy/Library/Application Support/MongoDB/Logs/mongo.log"}}}}
{"t":{"$date":"2022-11-01T17:34:36.433+08:00"},"s":"I",  "c":"NETWORK",  "id":5693100, "ctx":"initandlisten","msg":"Asio socket.set_option failed with std::system_error","attr":{"note":"acceptor TCP fast open","option":{"level":6,"name":261,"data":"00 04 00 00"},"error":{"what":"set_option: Invalid argument","message":"Invalid argument","category":"asio.system","value":22}}}
{"t":{"$date":"2022-11-01T17:34:36.448+08:00"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/Users/labikemmy/Library/Application Support/MongoDB/Data","storageEngine":"wiredTiger"}}
{"t":{"$date":"2022-11-01T17:34:36.455+08:00"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=3584M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}}
{"t":{"$date":"2022-11-01T17:34:36.914+08:00"},"s":"W",  "c":"STORAGE",  "id":22347,   "ctx":"initandlisten","msg":"Failed to start up WiredTiger under any compatibility version. This may be due to an unsupported upgrade or downgrade."}
{"t":{"$date":"2022-11-01T17:34:36.914+08:00"},"s":"F",  "c":"STORAGE",  "id":28595,   "ctx":"initandlisten","msg":"Terminating.","attr":{"reason":"45: Operation not supported"}}
{"t":{"$date":"2022-11-01T17:34:36.914+08:00"},"s":"F",  "c":"ASSERT",   "id":23091,   "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":28595,"file":"src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":702}}
{"t":{"$date":"2022-11-01T17:34:36.914+08:00"},"s":"F",  "c":"ASSERT",   "id":23092,   "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}

Consider Cask Rename

As there's no current brew package for "mongodb" Homebrew CLI drunkenly offers to install this Cask which looks more or less official until one visits the MongoDB installation instructions online to find out its not. As a result of this I propose your download result in quite a bit of lost Dev time setting up Mongo on a Mac. Would you agree?

If you agree, please consider renaming this cask to something other than "mongodb" or add a way to quickly communicate to users upon installation this is not an official app. Otherwise, perhaps we can leave this issue open for visibility. And if not no sweat.

Thanks.

Incomplete binary path

The path should be (/bin is missing at the end):
PATH="/Applications/MongoDB.app/Contents/Resources/Vendor/mongodb/bin:$PATH"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.