Example #1
0
def run_start(args):
    """Start the processes to run the node"""
    run_configure(args, skip_if_exists=True)
    bigchaindb.config_utils.file_config(args.config)
    try:
        db.init()
    except DatabaseAlreadyExists:
        pass
    processes = Processes()
    logger.info('Start bigchaindb main process')
    processes.start()
Example #2
0
def run_start(args):
    """Start the processes to run the node"""
    run_configure(args, skip_if_exists=True)
    bigchaindb.config_utils.file_config(args.config)
    try:
        db.init()
    except db.DatabaseAlreadyExistsException:
        pass
    p = Processes()
    logger.info('Start bigchaindb main process')
    p.start()
Example #3
0
def run_start(args):
    """Start the processes to run the node"""
    # run_configure(args, skip_if_exists=True)
    bigchaindb.config_utils.autoconfigure(filename=args.config, force=True)
    try:
        db.init()
    except DatabaseAlreadyExists:
        pass
    except KeypairNotFoundException:
        sys.exit('Cannot start BigchainDB, no keypair found. Did you run `bigchaindb configure`?')

    processes = Processes()
    logger.info('Start bigchaindb main process')
    processes.start()
Example #4
0
def run_start(args):
    """Start the processes to run the node"""
    # run_configure(args, skip_if_exists=True)
    bigchaindb.config_utils.autoconfigure(filename=args.config, force=True)
    try:
        db.init()
    except DatabaseAlreadyExists:
        pass
    except KeypairNotFoundException:
        sys.exit(
            'Cannot start BigchainDB, no keypair found. Did you run `bigchaindb configure`?'
        )

    processes = Processes()
    logger.info('Start bigchaindb main process')
    processes.start()
Example #5
0
def run_start(args):
    """Start the processes to run the node"""
    bigchaindb.config_utils.autoconfigure(filename=args.config, force=True)

    if args.start_rethinkdb:
        try:
            proc = utils.start_rethinkdb()
        except StartupError as e:
            sys.exit('Error starting RethinkDB, reason is: {}'.format(e))
        logger.info('RethinkDB started with PID %s' % proc.pid)

    try:
        db.init()
    except DatabaseAlreadyExists:
        pass
    except KeypairNotFoundException:
        sys.exit("Can't start BigchainDB, no keypair found. "
                 'Did you run `bigchaindb configure`?')

    processes = Processes()
    logger.info('Starting BigchainDB main process')
    processes.start()
Example #6
0
def run_start(args):
    """Start the processes to run the node"""
    bigchaindb.config_utils.autoconfigure(filename=args.config, force=True)

    if args.start_rethinkdb:
        try:
            proc = utils.start_rethinkdb()
        except StartupError as e:
            sys.exit('Error starting RethinkDB, reason is: {}'.format(e))
        logger.info('RethinkDB started with PID %s' % proc.pid)

    try:
        db.init()
    except DatabaseAlreadyExists:
        pass
    except KeypairNotFoundException:
        sys.exit("Can't start BigchainDB, no keypair found. "
                 'Did you run `bigchaindb configure`?')

    processes = Processes()
    logger.info('Starting BigchainDB main process')
    processes.start()