(venv) jcarver@carver-tower-2019:~/code/trinity$ PYTHONWARNINGS=ignore trinity --max-peers=20 --beam-from-checkpoint="eth://block/byhash/0x01b33227c79cb00b7918067eb10e8c4f502e9063260e806f016d80196d80627e?score=12,435,926,
049,655,753,781,418" --enable-experimental-eth1-peer-tracking
INFO 2019-12-03 10:39:32,909 trinity
______ _ _ __
/_ __/____(_)___ (_) /___ __
/ / / ___/ / __ \/ / __/ / / /
/ / / / / / / / / / /_/ /_/ /
/_/ /_/ /_/_/ /_/_/\__/\__, /
/____/
INFO 2019-12-03 10:39:32,909 trinity Started main process (pid=3190)
INFO 2019-12-03 10:39:32,911 trinity Trinity/v0.1.0a30/linux/cpython3.6.8
INFO 2019-12-03 10:39:32,911 trinity Trinity DEBUG log file is created at /home/jcarver/.local/share/trinity/mainnet/logs-eth1/trinity.log
INFO 2019-12-03 10:39:33,934 root Started DB server process (pid=3198)
INFO 2019-12-03 10:39:35,120 component(#JsonRpcServerComponent) Component started: JSON-RPC API (pid=3207)
INFO 2019-12-03 10:39:35,339 IPCServer IPC started at: /home/jcarver/.local/share/trinity/mainnet/ipcs-eth1/jsonrpc.ipc
INFO 2019-12-03 10:39:36,169 component(#NetworkDBComponent) Component started: Network Database (pid=3214)
INFO 2019-12-03 10:39:37,197 component(#PeerDiscoveryComponent) Component started: Discovery (pid=3222)
INFO 2019-12-03 10:39:38,226 component(#UpnpComponent) Component started: Upnp (pid=3229)
INFO 2019-12-03 10:39:38,232 UPnPService Setting up NAT portmap...
INFO 2019-12-03 10:39:39,259 component(#BeamChainExecutionComponent) Component started: Beam Sync Chain Execution (pid=3237)
ERROR 2019-12-03 10:39:39,283 NullPool Exception during reset or similar
Traceback (most recent call last):
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 680, in _finalize_fairy
fairy._reset(pool)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 867, in _reset
pool._dialect.do_rollback(self)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 530, in do_rollback
dbapi_connection.rollback()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139629487785792 and this is thread id 139629191157504.
--- Logging error ---
Traceback (most recent call last):
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 680, in _finalize_fairy
fairy._reset(pool)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 867, in _reset
pool._dialect.do_rollback(self)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 530, in do_rollback
dbapi_connection.rollback()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139629487785792 and this is thread id 139629191157504.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/handlers.py", line 71, in emit
if self.shouldRollover(record):
File "/usr/lib/python3.6/logging/handlers.py", line 188, in shouldRollover
self.stream.seek(0, 2) #due to non-posix-compliant Windows feature
RuntimeError: reentrant call inside <_io.BufferedWriter name='/home/jcarver/.local/share/trinity/mainnet/logs-eth1/trinity.log'>
Call stack:
File "/usr/lib/python3.6/threading.py", line 884, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/logging/handlers.py", line 1479, in _monitor
self.handle(record)
File "/usr/lib/python3.6/logging/handlers.py", line 1462, in handle
handler.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/handlers.py", line 73, in emit
logging.FileHandler.emit(self, record)
File "/usr/lib/python3.6/logging/__init__.py", line 1072, in emit
StreamHandler.emit(self, record)
File "/usr/lib/python3.6/logging/__init__.py", line 998, in emit
self.flush()
File "/usr/lib/python3.6/logging/__init__.py", line 978, in flush
self.stream.flush()
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 503, in <lambda>
and _finalize_fairy(None, rec, pool, ref, echo),
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 689, in _finalize_fairy
"Exception during reset or similar", exc_info=True
Message: 'Exception during reset or similar'
Arguments: ()
ERROR 2019-12-03 10:39:39,290 NullPool Exception closing connection <sqlite3.Connection object at 0x7efdf3790490>
Traceback (most recent call last):
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 680, in _finalize_fairy
fairy._reset(pool)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 867, in _reset
pool._dialect.do_rollback(self)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 530, in do_rollback
dbapi_connection.rollback()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139629487785792 and this is thread id 139629191157504.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 270, in _close_connection
self._dialect.do_close(connection)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 536, in do_close
dbapi_connection.close()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139629487785792 and this is thread id 139629191157504.
--- Logging error ---
Traceback (most recent call last):
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 680, in _finalize_fairy
fairy._reset(pool)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 867, in _reset
pool._dialect.do_rollback(self)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 530, in do_rollback
dbapi_connection.rollback()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139629487785792 and this is thread id 139629191157504.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 270, in _close_connection
self._dialect.do_close(connection)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 536, in do_close
dbapi_connection.close()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139629487785792 and this is thread id 139629191157504.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/logging/handlers.py", line 71, in emit
if self.shouldRollover(record):
File "/usr/lib/python3.6/logging/handlers.py", line 188, in shouldRollover
self.stream.seek(0, 2) #due to non-posix-compliant Windows feature
RuntimeError: reentrant call inside <_io.BufferedWriter name='/home/jcarver/.local/share/trinity/mainnet/logs-eth1/trinity.log'>
Call stack:
File "/usr/lib/python3.6/threading.py", line 884, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/logging/handlers.py", line 1479, in _monitor
self.handle(record)
File "/usr/lib/python3.6/logging/handlers.py", line 1462, in handle
handler.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/handlers.py", line 73, in emit
logging.FileHandler.emit(self, record)
File "/usr/lib/python3.6/logging/__init__.py", line 1072, in emit
StreamHandler.emit(self, record)
File "/usr/lib/python3.6/logging/__init__.py", line 998, in emit
self.flush()
File "/usr/lib/python3.6/logging/__init__.py", line 978, in flush
self.stream.flush()
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 503, in <lambda>
and _finalize_fairy(None, rec, pool, ref, echo),
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 692, in _finalize_fairy
connection_record.invalidate(e=e)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 586, in invalidate
self.__close()
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 628, in __close
self.__pool._close_connection(self.connection)
File "/home/jcarver/code/trinity/venv/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 273, in _close_connection
"Exception closing connection %r", connection, exc_info=True
Message: 'Exception closing connection %r'
Arguments: (<sqlite3.Connection object at 0x7efdf3790490>,)
Guessing this has something to do with how the network-db component does validation. It tries to acquire a session with the database. That's where I would start looking.
python --version
): 3.6.8(output of `pip freeze`)
What is wrong?
Logs:
How can it be fixed
Fill this in if you know how to fix it.