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

Docker images need update #2748

Open
stuchalk opened this issue Mar 31, 2023 · 0 comments
Open

Docker images need update #2748

stuchalk opened this issue Mar 31, 2023 · 0 comments

Comments

@stuchalk
Copy link

Describe the bug
Both the latest and v2.2.2 docker images fail with 'Cannot find config file /data/.bigchaindb' and 'Lost connection to the database, retrying query.' Also needs to be updated with a version of Python > 3.6 which is now deprecated.

To Reproduce
Download either image in Docker hub and then start as a new container

Expected behavior
The docker image should correctly connect to the database and be available at http://localhost:9984/.

Logs or terminal output
INFO:bigchaindb.config_utils:Cannot find config file /data/.bigchaindb.
2023-03-31 12:09:00 [2023-03-31 16:09:00] [INFO] (bigchaindb.commands.bigchaindb) BigchainDB Version 2.2.2 (MainProcess - pid: 1)
2023-03-31 12:09:05 [2023-03-31 16:09:05] [WARNING] (bigchaindb.backend.localmongodb.connection) Lost connection to the database, retrying query. (MainProcess - pid: 1)
2023-03-31 12:09:10 Traceback (most recent call last):
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/connection.py", line 65, in run
2023-03-31 12:09:10 return query.run(self.conn)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/utils.py", line 177, in run
2023-03-31 12:09:10 last = last(*item[0], **item[1])
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 1262, in find_one
2023-03-31 12:09:10 for result in cursor.limit(-1):
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1189, in next
2023-03-31 12:09:10 if len(self.__data) or self._refresh():
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1087, in _refresh
2023-03-31 12:09:10 self.__session = self.__collection.database.client._ensure_session()
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1563, in _ensure_session
2023-03-31 12:09:10 return self.__start_session(True, causal_consistency=False)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1516, in __start_session
2023-03-31 12:09:10 server_session = self._get_server_session()
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1549, in _get_server_session
2023-03-31 12:09:10 return self._topology.get_server_session()
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 427, in get_server_session
2023-03-31 12:09:10 None)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
2023-03-31 12:09:10 self._error_message(selector))
2023-03-31 12:09:10 pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
2023-03-31 12:09:10
2023-03-31 12:09:10 During handling of the above exception, another exception occurred:
2023-03-31 12:09:10
2023-03-31 12:09:10 Traceback (most recent call last):
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/connection.py", line 69, in run
2023-03-31 12:09:10 return query.run(self.conn)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/utils.py", line 177, in run
2023-03-31 12:09:10 last = last(*item[0], **item[1])
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 1262, in find_one
2023-03-31 12:09:10 for result in cursor.limit(-1):
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1189, in next
2023-03-31 12:09:10 if len(self.__data) or self._refresh():
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/cursor.py", line 1087, in _refresh
2023-03-31 12:09:10 self.__session = self.__collection.database.client._ensure_session()
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1563, in _ensure_session
2023-03-31 12:09:10 return self.__start_session(True, causal_consistency=False)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1516, in __start_session
2023-03-31 12:09:10 server_session = self._get_server_session()
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1549, in _get_server_session
2023-03-31 12:09:10 return self._topology.get_server_session()
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 427, in get_server_session
2023-03-31 12:09:10 None)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
2023-03-31 12:09:10 self._error_message(selector))
2023-03-31 12:09:10 pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
2023-03-31 12:09:10
2023-03-31 12:09:10 The above exception was the direct cause of the following exception:
2023-03-31 12:09:10
2023-03-31 12:09:10 Traceback (most recent call last):
2023-03-31 12:09:10 File "/usr/local/bin/bigchaindb", line 8, in
2023-03-31 12:09:10 sys.exit(main())
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/bigchaindb.py", line 398, in main
2023-03-31 12:09:10 utils.start(create_parser(), sys.argv[1:], globals())
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/utils.py", line 138, in start
2023-03-31 12:09:10 return func(args)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/utils.py", line 49, in configure
2023-03-31 12:09:10 command(args)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/bigchaindb.py", line 284, in run_start
2023-03-31 12:09:10 run_recover(bigchaindb.lib.BigchainDB())
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/bigchaindb.py", line 273, in run_recover
2023-03-31 12:09:10 rollback(b)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/core.py", line 257, in rollback
2023-03-31 12:09:10 pre_commit = b.get_pre_commit_state()
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/lib.py", line 453, in get_pre_commit_state
2023-03-31 12:09:10 return backend.query.get_pre_commit_state(self.connection)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/functools.py", line 807, in wrapper
2023-03-31 12:09:10 return dispatch(args[0].class)(*args, **kw)
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/query.py", line 263, in get_pre_commit_state
2023-03-31 12:09:10 return conn.run(conn.collection('pre_commit').find_one())
2023-03-31 12:09:10 File "/usr/local/lib/python3.6/site-packages/bigchaindb/backend/localmongodb/connection.py", line 71, in run
2023-03-31 12:09:10 raise ConnectionError from exc
2023-03-31 12:09:10 bigchaindb.backend.exceptions.ConnectionError

Desktop (please complete the following information):

Additional context
Image also shows as having 525 vulnerabilities across multiple packages...

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