Code Monkey home page Code Monkey logo

mongobar's People

Contributors

chrisantonellis avatar ingkebil 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

Watchers

 avatar  avatar

mongobar's Issues

Problems supplying port to script

Hi, this seems like a really promising project!

I'm having some issues connecting to my database running on a non-standard port (27019).

When I add the details in the config:

$ mongobar config

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ root      โ”‚ /var/lib/mongodbhc/backups โ”‚
โ”‚ log_level โ”‚ INFO                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Connections:

โ”Œ [default] โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ host      โ”‚ localhost        โ”‚
โ”‚ port      โ”‚ 27019            โ”‚
โ”‚ username  โ”‚ admin            โ”‚
โ”‚ password  โ”‚ **************** โ”‚
โ”‚ authdb    โ”‚ admin            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

I get the following error:

[CRITICAL] Command failed: Command '['mongodump', '-h', 'localhost', '-p', '27019', '-u', 'admin', '-p', '*****************', '--authenticationDatabase', 'admin', '--db', 'scoutTest', '--out', '/var/lib/mongodbhc/backups/localhost:27019/goad-linseed', '--quiet', '--gzip']' returned non-zero exit status 1.

I notice that the -p option is showing up twice both for port and password which I assume is giving the error.

So I tried giving the port on the mongobar command line:

$ mongobar backup --port 27019 -d scoutTest
Traceback (most recent call last):
  File "/home/hiseq.clinical/miniconda/envs/prod170926/bin/mongobar", line 1255, in <module>
    MongobarScript().run()
  File "/home/hiseq.clinical/miniconda/envs/prod170926/bin/mongobar", line 121, in run
    getattr(self, self.args.action.replace("-", "_"))()
  File "/home/hiseq.clinical/miniconda/envs/prod170926/bin/mongobar", line 859, in backup
    metadata = self.mb.generate_metadata()
  File "/home/hiseq.clinical/miniconda/envs/prod170926/lib/python3.6/site-packages/mongobar/mongobar.py", line 77, in generate_metadata
    client = self.create_pymongo_client()
  File "/home/hiseq.clinical/miniconda/envs/prod170926/lib/python3.6/site-packages/mongobar/mongobar.py", line 64, in create_pymongo_client
    client = pymongo.MongoClient(**options)
  File "/home/hiseq.clinical/miniconda/envs/prod170926/lib/python3.6/site-packages/pymongo/mongo_client.py", line 413, in __init__
    raise TypeError("port must be an instance of int")
TypeError: port must be an instance of int

Probably just some small bugs - I will try to play around with the code a little and I can open a PR unless you fix it quicker than I ๐Ÿ˜‰

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.