Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example-data-wallet_bdb_1 exits with 1 #5

Open
sreepriyaks opened this issue Jan 10, 2019 · 0 comments
Open

example-data-wallet_bdb_1 exits with 1 #5

sreepriyaks opened this issue Jan 10, 2019 · 0 comments

Comments

@sreepriyaks
Copy link

docker logs below

$ docker logs 95
INFO:bigchaindb.config_utils:Cannot find config file /data/.bigchaindb.
[2019-01-10 07:39:54] [INFO] (bigchaindb.commands.bigchaindb) BigchainDB Version 2.0.0b9 (MainProcess - pid: 1)
[2019-01-10 07:39:54] [WARNING] (bigchaindb.backend.localmongodb.connection) Lost connection to the database, retrying query. (MainProcess - pid: 1)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/connection.py", line 64, in run
return query.run(self.conn)
File "/usr/local/lib/python3.6/site-packages/bigchaindb/utils.py", line 176, in run
last = last(*item[0], **item[1])
File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 1262, in find_one
for result in cursor.limit(-1):
File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1189, in next
if len(self.__data) or self._refresh():
File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1104, in _refresh
self.__send_message(q)
File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 982, in __send_message
helpers._check_command_response(first)
File "/usr/local/lib/python3.6/site-packages/pymongo/helpers.py", line 132, in _check_command_response
raise NotMasterError(errmsg, response)
pymongo.errors.NotMasterError: node is not in primary or recovering state

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/connection.py", line 68, in run
return query.run(self.conn)
File "/usr/local/lib/python3.6/site-packages/bigchaindb/utils.py", line 176, in run
last = last(*item[0], **item[1])
File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 1262, in find_one
for result in cursor.limit(-1):
File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1189, in next
if len(self.__data) or self._refresh():
File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1104, in _refresh
self.__send_message(q)
File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 982, in __send_message
helpers._check_command_response(first)
File "/usr/local/lib/python3.6/site-packages/pymongo/helpers.py", line 132, in _check_command_response
raise NotMasterError(errmsg, response)
pymongo.errors.NotMasterError: node is not in primary or recovering state

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/bin/bigchaindb", line 11, in
load_entry_point('BigchainDB==2.0.0b9', 'console_scripts', 'bigchaindb')()
File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/bigchaindb.py", line 397, in main
utils.start(create_parser(), sys.argv[1:], globals())
File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/utils.py", line 137, in start
return func(args)
File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/utils.py", line 48, in configure
command(args)
File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/bigchaindb.py", line 283, in run_start
run_recover(bigchaindb.lib.BigchainDB())
File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/bigchaindb.py", line 272, in run_recover
rollback(b)
File "/usr/local/lib/python3.6/site-packages/bigchaindb/core.py", line 264, in rollback
pre_commit = b.get_pre_commit_state()
File "/usr/local/lib/python3.6/site-packages/bigchaindb/lib.py", line 448, in get_pre_commit_state
return backend.query.get_pre_commit_state(self.connection)
File "/usr/local/lib/python3.6/functools.py", line 807, in wrapper
return dispatch(args[0].class)(*args, **kw)
File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/query.py", line 272, in get_pre_commit_state
return conn.run(conn.collection('pre_commit').find_one())
File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/connection.py", line 70, in run
raise ConnectionError from exc
bigchaindb.backend.exceptions.ConnectionError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant