[lnie@localhost-live server]$ ./run.sh +++ dirname 0 ++ readlink -f . + '[' /home/lnie/artemis/server '!=' /home/lnie/artemis/server ']' + trap 'kill $(jobs -p)' EXIT ++ pwd + export ARTEMIS_CONFIG_DIR=/home/lnie/artemis/server/configuration + ARTEMIS_CONFIG_DIR=/home/lnie/artemis/server/configuration + '[' -f /home/lnie/artemis/server/configuration/.vault_pass ']' ++ cat /home/lnie/artemis/server/configuration/.vault_pass + export ARTEMIS_VAULT_PASSWORD=testfedora + ARTEMIS_VAULT_PASSWORD=testfedora + export 'ARTEMIS_BROKER_URL=amqp://guest:guest@127.0.0.1:5672/?heartbeat=60&blocked_connection_timeout=60' + ARTEMIS_BROKER_URL='amqp://guest:guest@127.0.0.1:5672/?heartbeat=60&blocked_connection_timeout=60' + export ARTEMIS_DB_URL=postgresql://artemis:artemis@127.0.0.1:5432/artemis + ARTEMIS_DB_URL=postgresql://artemis:artemis@127.0.0.1:5432/artemis + export ARTEMIS_CACHE_URL=redis://127.0.0.1:6379 + ARTEMIS_CACHE_URL=redis://127.0.0.1:6379 + export ARTEMIS_LOG_JSON=no + ARTEMIS_LOG_JSON=no + export ARTEMIS_LOG_DB_POOL=no + ARTEMIS_LOG_DB_POOL=no + export ARTEMIS_LOG_DB_QUERIES=no + ARTEMIS_LOG_DB_QUERIES=no + export ARTEMIS_CLOSE_AFTER_DISPATCH=yes + ARTEMIS_CLOSE_AFTER_DISPATCH=yes ++ pwd + export ARTEMIS_HOOK_ROUTE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_ROUTE.py + ARTEMIS_HOOK_ROUTE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_ROUTE.py + export ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE.py + ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE.py + export ARTEMIS_HOOK_OPENSTACK_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_OPENSTACK_ENVIRONMENT_TO_IMAGE.py + ARTEMIS_HOOK_OPENSTACK_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_OPENSTACK_ENVIRONMENT_TO_IMAGE.py + export ARTEMIS_HOOK_AWS_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_AWS_ENVIRONMENT_TO_IMAGE.py + ARTEMIS_HOOK_AWS_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_AWS_ENVIRONMENT_TO_IMAGE.py + export ARTEMIS_HOOK_AZURE_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_AZURE_ENVIRONMENT_TO_IMAGE.py + ARTEMIS_HOOK_AZURE_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_AZURE_ENVIRONMENT_TO_IMAGE.py + export ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE.py + ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE=/home/lnie/artemis/server/configuration/ARTEMIS_HOOK_BEAKER_ENVIRONMENT_TO_IMAGE.py + export ARTEMIS_AWS_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-aws.yaml + ARTEMIS_AWS_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-aws.yaml + export ARTEMIS_AZURE_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-azure.yaml + ARTEMIS_AZURE_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-azure.yaml + export ARTEMIS_BEAKER_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-beaker.yaml + ARTEMIS_BEAKER_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-beaker.yaml + export ARTEMIS_OPENSTACK_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-openstack.yaml + ARTEMIS_OPENSTACK_ENVIRONMENT_TO_IMAGE_MAPPING_FILEPATH=ARTEMIS_CONFIG_DIR/artemis-image-map-openstack.yaml + ARTEMIS_WORKER_OPTIONS= + '[' '' = '' ']' + poetry run alembic upgrade head /home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.14) or chardet (5.1.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/base.py", line 3212, in _wrap_pool_connect 3209 def _wrap_pool_connect(self, fn, connection): 3210 dialect = self.dialect 3211 try: --> 3212 return fn() 3213 except dialect.dbapi.Error as e: .................................................. self = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) fn = base.py:299> connection = None dialect = self.dialect = util.raise_ = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 307, in connect 299 def connect(self): (...) 301 302 The connection is instrumented such that when its 303 ``close()`` method is called, the connection will be returned to 304 the pool. 305 306 """ --> 307 return _ConnectionFairy._checkout(self) .................................................. self = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 767, in _checkout 764 @classmethod 765 def _checkout(cls, pool, threadconns=None, fairy=None): 766 if not fairy: --> 767 fairy = _ConnectionRecord.checkout(pool) 768 .................................................. pool = threadconns = None fairy = None fairy._pool = # AttributeError fairy = None fairy._counter = # AttributeError fairy = None threadconns.current = # AttributeError threadconns = None fairy.connection = # AttributeError fairy = None pool._pre_ping = False fairy._connection_record.fresh = # AttributeError fairy = None fairy._echo = # AttributeError fairy = None pool.logger.debug = __init__.py:1424> pool._dialect.do_ping = psycopg2.py:847> fairy._connection_record = # AttributeError fairy = None pool.logger.info = __init__.py:1436> fairy._connection_record.invalidate = # AttributeError fairy = None pool._invalidate = base.py:255> fairy._connection_record.get_connection = # AttributeError fairy = None fairy._connection_record._checkin_failed = # AttributeError fairy = None fairy.invalidate = # AttributeError fairy = None .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 425, in checkout 423 @classmethod 424 def checkout(cls, pool): --> 425 rec = pool._do_get() 426 try: .................................................. pool = pool._do_get = impl.py:119> pool._should_log_debug = log.py:63> _strong_ref_connection_records = {} pool.logger.debug = __init__.py:1424> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/impl.py", line 146, in _do_get 119 def _do_get(self): (...) 140 141 if self._inc_overflow(): 142 try: 143 return self._create_connection() 144 except: 145 with util.safe_reraise(): --> 146 self._dec_overflow() 147 else: .................................................. self = use_overflow = True self._max_overflow = 10 wait = False self._overflow = -20 self._pool.get = queue.py:131> self._timeout = 30.0 self._do_get = impl.py:119> self.size = impl.py:210> self.overflow = impl.py:219> self._inc_overflow = impl.py:150> self._create_connection = base.py:250> self._dec_overflow = impl.py:161> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ 64 def __exit__(self, type_, value, traceback): 65 # see #2703 for notes 66 if type_ is None: 67 exc_type, exc_value, exc_tb = self._exc_info 68 self._exc_info = None # remove potential circular references 69 if not self.warn_only: --> 70 compat.raise_( 71 exc_value, .................................................. self = type_ = None value = None traceback = None exc_value = OperationalError('connection to server at "127.0.0.1", port 5432 failed: server closed the connection unexpectedly\n\tTh is probably means the server terminated abnormally\n\tbefore or while processing the request.\n') exc_tb = self._exc_info = None self.warn_only = False compat.raise_ = compat.py3k = True .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ 177 def raise_( 178 exception, with_traceback=None, replace_context=None, from_=False 179 ): (...) 201 # have only the context of replace_context.__context__ so that the 202 # intermediary exception does not change, but we can't figure 203 # that out. 204 exception.__cause__ = replace_context 205 206 try: --> 207 raise exception 208 finally: File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/impl.py", line 143, in _do_get 119 def _do_get(self): (...) 137 % (self.size(), self.overflow(), self._timeout), 138 code="3o7r", 139 ) 140 141 if self._inc_overflow(): 142 try: --> 143 return self._create_connection() 144 except: .................................................. self = use_overflow = True self._max_overflow = 10 wait = False self._overflow = -20 self._pool.get = queue.py:131> self._timeout = 30.0 self._do_get = impl.py:119> self.size = impl.py:210> self.overflow = impl.py:219> self._inc_overflow = impl.py:150> self._create_connection = base.py:250> self._dec_overflow = impl.py:161> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 253, in _create_connection 250 def _create_connection(self): 251 """Called by subclasses to create a new ConnectionRecord.""" 252 --> 253 return _ConnectionRecord(self) .................................................. self = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 368, in __init__ 365 def __init__(self, pool, connect=True): 366 self.__pool = pool 367 if connect: --> 368 self.__connect() 369 self.finalize_callback = deque() .................................................. self = pool = connect = True self.__pool = # AttributeError self = self.__connect = # AttributeError self = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 611, in __connect 597 def __connect(self): (...) 605 connection = pool._invoke_creator(self) 606 pool.logger.debug("Created new connection %r", connection) 607 self.connection = connection 608 self.fresh = True 609 except Exception as e: 610 with util.safe_reraise(): --> 611 pool.logger.debug("Error on connect(): %s", e) 612 else: .................................................. self = pool = self.__pool = # AttributeError self = self.connection = None self.starttime = 1691763641.4810324 pool._invoke_creator = .connect' create.py:572> pool.logger.debug = __init__.py:1424> self.fresh = False pool.dispatch.first_connect.for_modify = attr.py:229> pool.dispatch = pool.dispatch.connect.for_modify = attr.py :387> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ 64 def __exit__(self, type_, value, traceback): 65 # see #2703 for notes 66 if type_ is None: 67 exc_type, exc_value, exc_tb = self._exc_info 68 self._exc_info = None # remove potential circular references 69 if not self.warn_only: --> 70 compat.raise_( 71 exc_value, .................................................. self = type_ = None value = None traceback = None exc_value = OperationalError('connection to server at "127.0.0.1", port 5432 failed: server closed the connection unexpectedly\n\tTh is probably means the server terminated abnormally\n\tbefore or while processing the request.\n') exc_tb = self._exc_info = None self.warn_only = False compat.raise_ = compat.py3k = True .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ 177 def raise_( 178 exception, with_traceback=None, replace_context=None, from_=False 179 ): (...) 201 # have only the context of replace_context.__context__ so that the 202 # intermediary exception does not change, but we can't figure 203 # that out. 204 exception.__cause__ = replace_context 205 206 try: --> 207 raise exception 208 finally: File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 605, in __connect 597 def __connect(self): (...) 599 600 # ensure any existing connection is removed, so that if 601 # creator fails, this attribute stays None 602 self.connection = None 603 try: 604 self.starttime = time.time() --> 605 connection = pool._invoke_creator(self) 606 pool.logger.debug("Created new connection %r", connection) .................................................. self = pool = self.__pool = # AttributeError self = self.connection = None self.starttime = 1691763641.4810324 pool._invoke_creator = .connect' create.py:572> pool.logger.debug = __init__.py:1424> self.fresh = False pool.dispatch.first_connect.for_modify = attr.py:229> pool.dispatch = pool.dispatch.connect.for_modify = attr.py :387> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/create.py", line 578, in connect 572 def connect(connection_record=None): 573 if dialect._has_events: 574 for fn in dialect.dispatch.do_connect: 575 connection = fn(dialect, connection_record, cargs, cparams) 576 if connection is not None: 577 return connection --> 578 return dialect.connect(*cargs, **cparams) .................................................. connection_record = dialect._has_events = False dialect = cargs = [] cparams = {'host': '127.0.0.1', 'database': 'artemis', 'user': 'artemis', 'password': 'artemis', 'port': 5432} .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/default.py", line 584, in connect 582 def connect(self, *cargs, **cparams): 583 # inherits the docstring from interfaces.Dialect.connect --> 584 return self.dbapi.connect(*cargs, **cparams) .................................................. self = cargs = () cparams = {'host': '127.0.0.1', 'database': 'artemis', 'user': 'artemis', 'password': 'artemis', 'port': 5432} .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/psycopg2/__init__.py", line 122, in connect 80 def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): (...) 116 if 'async' in kwargs: 117 kwasync['async'] = kwargs.pop('async') 118 if 'async_' in kwargs: 119 kwasync['async_'] = kwargs.pop('async_') 120 121 dsn = _ext.make_dsn(dsn, **kwargs) --> 122 conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 123 if cursor_factory is not None: .................................................. dsn = 'host=127.0.0.1 user=artemis password=artemis port=5432 dbna me=artemis' connection_factory = None cursor_factory = None kwargs = {'host': '127.0.0.1', 'database': 'artemis', 'user': 'artemis', 'password': 'artemis', 'port': 5432} kwasync = {} _ext.make_dsn = .................................................. OperationalError: connection to server at "127.0.0.1", port 5432 failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The above exception was the direct cause of the following exception: File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/bin/alembic", line 8, in 2 # -*- coding: utf-8 -*- 3 import re 4 import sys 5 from alembic.config import main 6 if __name__ == '__main__': 7 sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) --> 8 sys.exit(main()) .................................................. re = sys = __name__ = '__main__' sys.argv = ['/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97 A-py3.9/bin/alembic', 'upgrade', 'head', ] re.sub = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/alembic/config.py", line 590, in main 587 def main(argv=None, prog=None, **kwargs): 588 """The console runner function for Alembic.""" 589 --> 590 CommandLine(prog=prog).main(argv=argv) .................................................. argv = None prog = None kwargs = {} .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/alembic/config.py", line 584, in main 572 def main(self, argv=None): (...) 578 else: 579 cfg = Config( 580 file_=options.config, 581 ini_section=options.name, 582 cmd_opts=options, 583 ) --> 584 self.run_cmd(cfg, options) .................................................. self = argv = None options = Namespace(config='alembic.ini', name='alembic', x=None, rais eerr=False, sql=False, tag=None, revision='head', cmd=(, ['revision'], ['sql', 'tag' ])) self.parser.parse_args = , conflict_handler='error', add_ help=True) argparse.py:1824> self.parser.error = , conflict_handler='error', add_help= True) argparse.py:2571> cfg = options.config = 'alembic.ini' options.name = 'alembic' .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/alembic/config.py", line 561, in run_cmd 557 def run_cmd(self, config: Config, options: Namespace) -> None: 558 fn, positional, kwarg = options.cmd 559 560 try: --> 561 fn( 562 config, .................................................. self = config = options = Namespace(config='alembic.ini', name='alembic', x=None, rais eerr=False, sql=False, tag=None, revision='head', cmd=(, ['revision'], ['sql', 'tag' ])) fn = positional = ['revision', ] kwarg = ['sql', 'tag', ] options.cmd = (, ['revision', ], ['sql' , 'tag', ], ) options.raiseerr = False .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/alembic/command.py", line 322, in upgrade 282 def upgrade( 283 config: "Config", 284 revision: str, 285 sql: bool = False, 286 tag: Optional[str] = None, 287 ) -> None: (...) 316 fn=upgrade, 317 as_sql=sql, 318 starting_rev=starting_rev, 319 destination_rev=revision, 320 tag=tag, 321 ): --> 322 script.run_env() .................................................. upgrade = .upgrade' command.py:310> config = revision = 'head' sql = False tag = None script = starting_rev = None script._upgrade_revs = base.py:428> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/alembic/script/base.py", line 569, in run_env 560 def run_env(self) -> None: (...) 563 This basically runs the ``env.py`` script present 564 in the migration environment. It is called exclusively 565 by the command functions in :mod:`alembic.command`. 566 567 568 """ --> 569 util.load_python_file(self.dir, "env.py") .................................................. self = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 94, in load_python_file 86 def load_python_file(dir_: str, filename: str): (...) 88 89 module_id = re.sub(r"\W", "_", filename) 90 path = os.path.join(dir_, filename) 91 _, ext = os.path.splitext(filename) 92 if ext == ".py": 93 if os.path.exists(path): --> 94 module = load_module_py(module_id, path) 95 else: .................................................. dir_ = 'alembic' filename = 'env.py' module_id = 'env_py' re.sub = path = 'alembic/env.py' os.path.join = _ = 'env' ext = '.py' os.path.splitext = os.path.exists = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 110, in load_module_py 106 def load_module_py(module_id: str, path: str): 107 spec = importlib.util.spec_from_file_location(module_id, path) 108 assert spec 109 module = importlib.util.module_from_spec(spec) --> 110 spec.loader.exec_module(module) # type: ignore 111 return module .................................................. module_id = 'env_py' path = 'alembic/env.py' spec = ModuleSpec(name='env_py', loader=<_frozen_importlib_external .SourceFileLoader object at 0x7fe8d4ddea00>, origin='alembic /env.py') importlib.util.spec_from_file_location = :696> module = importlib.util.module_from_spec = :5 58> spec.loader.exec_module = :844> .................................................. File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "alembic/env.py", line 94, in 88 context.run_migrations() 89 90 91 if context.is_offline_mode(): 92 run_migrations_offline() 93 else: --> 94 run_migrations_online() .................................................. logging = logging.config = context = db = config = context.config = # AttributeError context = config.config_file_name = 'alembic.ini' target_metadata = MetaData() db.Base.metadata = MetaData() config.get_main_option = config.py:303> context.configure = :1> context.begin_transaction = :1> context.run_migrations = :1> config.cmd_opts = Namespace(config='alembic.ini', name='alembic', x=None, rais eerr=False, sql=False, tag=None, revision='head', cmd=(, ['revision'], ['sql', 'tag' ])) config.cmd_opts.autogenerate = # AttributeError config.cmd_opts = Namespace(config='alembic.ini', name='alem bic', x=None, raiseerr=False, sql=False, tag=None, revision= 'head', cmd=(, ['revisio n'], ['sql', 'tag'])) logging.getLogger = context.is_offline_mode = :1> .................................................. File "alembic/env.py", line 79, in run_migrations_online 59 def run_migrations_online() -> None: (...) 73 if config.cmd_opts.autogenerate: 74 script = directives[0] 75 if script.upgrade_ops.is_empty(): 76 directives[:] = [] 77 logging.getLogger('alembic').info('No changes to schema detected') 78 --> 79 with connectable.connect() as connection: 80 context.configure( .................................................. connectable = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) process_revision_directives = .process_revision_d irectives' env.py:70> context = config.cmd_opts = Namespace(config='alembic.ini', name='alembic', x=None, rais eerr=False, sql=False, tag=None, revision='head', cmd=(, ['revision'], ['sql', 'tag' ])) config.cmd_opts.autogenerate = # AttributeError config.cmd_opts = Namespace(config='alembic.ini', name='alem bic', x=None, raiseerr=False, sql=False, tag=None, revision= 'head', cmd=(, ['revisio n'], ['sql', 'tag'])) logging.getLogger = connectable.connect = context.configure = :1> target_metadata = MetaData() context.begin_transaction = :1> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/base.py", line 3166, in connect 3151 def connect(self, close_with_result=False): (...) 3160 is called, the underlying DBAPI connection is then returned to the 3161 connection pool, where it may be used again in a subsequent call to 3162 :meth:`_engine.Engine.connect`. 3163 3164 """ 3165 --> 3166 return self._connection_cls(self, close_with_result=close_with_result) .................................................. self = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) close_with_result = False .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/base.py", line 96, in __init__ 67 def __init__( 68 self, 69 engine, 70 connection=None, 71 close_with_result=False, 72 _branch_from=None, 73 _execution_options=None, 74 _dispatch=None, 75 _has_events=None, 76 _allow_revalidate=True, 77 ): (...) 90 self.dispatch = _dispatch 91 self._has_events = _branch_from._has_events 92 else: 93 self._dbapi_connection = ( 94 connection 95 if connection is not None --> 96 else engine.raw_connection() 97 ) .................................................. self = engine = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) connection = None close_with_result = False _branch_from = None _execution_options = None _dispatch = None _has_events = None _allow_revalidate = True self.engine = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) self.dialect = engine.dialect = self.__branch_from = # AttributeError self = _branch_from.__branch_from = # AttributeError _branch_from = None self._dbapi_connection = # AttributeError self = self._execution_options = # AttributeError self = self._echo = # AttributeError self = _branch_from._echo = # AttributeError _branch_from = None self.should_close_with_result = # AttributeError self = self.dispatch = self._has_events = # AttributeError self = _branch_from._has_events = # AttributeError _branch_from = None engine.raw_connection = self._transaction = # AttributeError self = self._nested_transaction = # AttributeError self = self.__savepoint_seq = # AttributeError self = self.__in_begin = # AttributeError self = self.__can_reconnect = # AttributeError self = self.engine._should_log_info = self.dispatch._join = base.py:129> engine.dispatch = engine._has_events = True engine._execution_options = immutabledict({}) self.engine._has_events = True .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/base.py", line 3245, in raw_connection 3223 def raw_connection(self, _connection=None): (...) 3239 3240 .. seealso:: 3241 3242 :ref:`dbapi_connections` 3243 3244 """ --> 3245 return self._wrap_pool_connect(self.pool.connect, _connection) .................................................. self = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) _connection = None .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/base.py", line 3215, in _wrap_pool_connect 3209 def _wrap_pool_connect(self, fn, connection): 3210 dialect = self.dialect 3211 try: 3212 return fn() 3213 except dialect.dbapi.Error as e: 3214 if connection is None: --> 3215 Connection._handle_dbapi_exception_noconnection( 3216 e, dialect, self .................................................. self = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) fn = base.py:299> connection = None dialect = self.dialect = util.raise_ = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/base.py", line 2069, in _handle_dbapi_exception_noconnection 2015 def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): (...) 2063 is_disconnect 2064 ) = ctx.is_disconnect 2065 2066 if newraise: 2067 util.raise_(newraise, with_traceback=exc_info[2], from_=e) 2068 elif should_wrap: --> 2069 util.raise_( 2070 sqlalchemy_exception, with_traceback=exc_info[2], from_=e .................................................. e = OperationalError('connection to server at "127.0.0.1", port 5432 failed: server closed the connection unexpectedly\n\tTh is probably means the server terminated abnormally\n\tbefore or while processing the request.\n') dialect = engine = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) exc_info = (, OperationalError('conn ection to server at "127.0.0.1", port 5432 failed: server cl osed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing t he request.\n'), , ) is_disconnect = False dialect.is_disconnect = psycopg2.py:1020> should_wrap = True sqlalchemy_exception = OperationalError('(psycopg2.OperationalError) connection to server at "127.0.0.1", port 5432 failed: server closed the c onnection unexpectedly\n\tThis probably means the server ter minated abnormally\n\tbefore or while processing the request .\n') exc.DBAPIError.instance = exc.py:492> engine.hide_parameters = False newraise = None engine._has_events = True ctx = ctx.chained_exception = None ctx.is_disconnect = False sqlalchemy_exception.connection_invalidated = False util.raise_ = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ 177 def raise_( 178 exception, with_traceback=None, replace_context=None, from_=False 179 ): (...) 201 # have only the context of replace_context.__context__ so that the 202 # intermediary exception does not change, but we can't figure 203 # that out. 204 exception.__cause__ = replace_context 205 206 try: --> 207 raise exception 208 finally: File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/base.py", line 3212, in _wrap_pool_connect 3209 def _wrap_pool_connect(self, fn, connection): 3210 dialect = self.dialect 3211 try: --> 3212 return fn() 3213 except dialect.dbapi.Error as e: .................................................. self = Engine(postgresql://artemis:***@127.0.0.1:5432/artemis) fn = base.py:299> connection = None dialect = self.dialect = util.raise_ = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 307, in connect 299 def connect(self): (...) 301 302 The connection is instrumented such that when its 303 ``close()`` method is called, the connection will be returned to 304 the pool. 305 306 """ --> 307 return _ConnectionFairy._checkout(self) .................................................. self = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 767, in _checkout 764 @classmethod 765 def _checkout(cls, pool, threadconns=None, fairy=None): 766 if not fairy: --> 767 fairy = _ConnectionRecord.checkout(pool) 768 .................................................. pool = threadconns = None fairy = None fairy._pool = # AttributeError fairy = None fairy._counter = # AttributeError fairy = None threadconns.current = # AttributeError threadconns = None fairy.connection = # AttributeError fairy = None pool._pre_ping = False fairy._connection_record.fresh = # AttributeError fairy = None fairy._echo = # AttributeError fairy = None pool.logger.debug = __init__.py:1424> pool._dialect.do_ping = psycopg2.py:847> fairy._connection_record = # AttributeError fairy = None pool.logger.info = __init__.py:1436> fairy._connection_record.invalidate = # AttributeError fairy = None pool._invalidate = base.py:255> fairy._connection_record.get_connection = # AttributeError fairy = None fairy._connection_record._checkin_failed = # AttributeError fairy = None fairy.invalidate = # AttributeError fairy = None .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 425, in checkout 423 @classmethod 424 def checkout(cls, pool): --> 425 rec = pool._do_get() 426 try: .................................................. pool = pool._do_get = impl.py:119> pool._should_log_debug = log.py:63> _strong_ref_connection_records = {} pool.logger.debug = __init__.py:1424> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/impl.py", line 146, in _do_get 119 def _do_get(self): (...) 140 141 if self._inc_overflow(): 142 try: 143 return self._create_connection() 144 except: 145 with util.safe_reraise(): --> 146 self._dec_overflow() 147 else: .................................................. self = use_overflow = True self._max_overflow = 10 wait = False self._overflow = -20 self._pool.get = queue.py:131> self._timeout = 30.0 self._do_get = impl.py:119> self.size = impl.py:210> self.overflow = impl.py:219> self._inc_overflow = impl.py:150> self._create_connection = base.py:250> self._dec_overflow = impl.py:161> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ 64 def __exit__(self, type_, value, traceback): 65 # see #2703 for notes 66 if type_ is None: 67 exc_type, exc_value, exc_tb = self._exc_info 68 self._exc_info = None # remove potential circular references 69 if not self.warn_only: --> 70 compat.raise_( 71 exc_value, .................................................. self = type_ = None value = None traceback = None exc_value = OperationalError('connection to server at "127.0.0.1", port 5432 failed: server closed the connection unexpectedly\n\tTh is probably means the server terminated abnormally\n\tbefore or while processing the request.\n') exc_tb = self._exc_info = None self.warn_only = False compat.raise_ = compat.py3k = True .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ 177 def raise_( 178 exception, with_traceback=None, replace_context=None, from_=False 179 ): (...) 201 # have only the context of replace_context.__context__ so that the 202 # intermediary exception does not change, but we can't figure 203 # that out. 204 exception.__cause__ = replace_context 205 206 try: --> 207 raise exception 208 finally: File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/impl.py", line 143, in _do_get 119 def _do_get(self): (...) 137 % (self.size(), self.overflow(), self._timeout), 138 code="3o7r", 139 ) 140 141 if self._inc_overflow(): 142 try: --> 143 return self._create_connection() 144 except: .................................................. self = use_overflow = True self._max_overflow = 10 wait = False self._overflow = -20 self._pool.get = queue.py:131> self._timeout = 30.0 self._do_get = impl.py:119> self.size = impl.py:210> self.overflow = impl.py:219> self._inc_overflow = impl.py:150> self._create_connection = base.py:250> self._dec_overflow = impl.py:161> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 253, in _create_connection 250 def _create_connection(self): 251 """Called by subclasses to create a new ConnectionRecord.""" 252 --> 253 return _ConnectionRecord(self) .................................................. self = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 368, in __init__ 365 def __init__(self, pool, connect=True): 366 self.__pool = pool 367 if connect: --> 368 self.__connect() 369 self.finalize_callback = deque() .................................................. self = pool = connect = True self.__pool = # AttributeError self = self.__connect = # AttributeError self = .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 611, in __connect 597 def __connect(self): (...) 605 connection = pool._invoke_creator(self) 606 pool.logger.debug("Created new connection %r", connection) 607 self.connection = connection 608 self.fresh = True 609 except Exception as e: 610 with util.safe_reraise(): --> 611 pool.logger.debug("Error on connect(): %s", e) 612 else: .................................................. self = pool = self.__pool = # AttributeError self = self.connection = None self.starttime = 1691763641.4810324 pool._invoke_creator = .connect' create.py:572> pool.logger.debug = __init__.py:1424> self.fresh = False pool.dispatch.first_connect.for_modify = attr.py:229> pool.dispatch = pool.dispatch.connect.for_modify = attr.py :387> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ 64 def __exit__(self, type_, value, traceback): 65 # see #2703 for notes 66 if type_ is None: 67 exc_type, exc_value, exc_tb = self._exc_info 68 self._exc_info = None # remove potential circular references 69 if not self.warn_only: --> 70 compat.raise_( 71 exc_value, .................................................. self = type_ = None value = None traceback = None exc_value = OperationalError('connection to server at "127.0.0.1", port 5432 failed: server closed the connection unexpectedly\n\tTh is probably means the server terminated abnormally\n\tbefore or while processing the request.\n') exc_tb = self._exc_info = None self.warn_only = False compat.raise_ = compat.py3k = True .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ 177 def raise_( 178 exception, with_traceback=None, replace_context=None, from_=False 179 ): (...) 201 # have only the context of replace_context.__context__ so that the 202 # intermediary exception does not change, but we can't figure 203 # that out. 204 exception.__cause__ = replace_context 205 206 try: --> 207 raise exception 208 finally: File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/pool/base.py", line 605, in __connect 597 def __connect(self): (...) 599 600 # ensure any existing connection is removed, so that if 601 # creator fails, this attribute stays None 602 self.connection = None 603 try: 604 self.starttime = time.time() --> 605 connection = pool._invoke_creator(self) 606 pool.logger.debug("Created new connection %r", connection) .................................................. self = pool = self.__pool = # AttributeError self = self.connection = None self.starttime = 1691763641.4810324 pool._invoke_creator = .connect' create.py:572> pool.logger.debug = __init__.py:1424> self.fresh = False pool.dispatch.first_connect.for_modify = attr.py:229> pool.dispatch = pool.dispatch.connect.for_modify = attr.py :387> .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/create.py", line 578, in connect 572 def connect(connection_record=None): 573 if dialect._has_events: 574 for fn in dialect.dispatch.do_connect: 575 connection = fn(dialect, connection_record, cargs, cparams) 576 if connection is not None: 577 return connection --> 578 return dialect.connect(*cargs, **cparams) .................................................. connection_record = dialect._has_events = False dialect = cargs = [] cparams = {'host': '127.0.0.1', 'database': 'artemis', 'user': 'artemis', 'password': 'artemis', 'port': 5432} .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/sqlalchemy/engine/default.py", line 584, in connect 582 def connect(self, *cargs, **cparams): 583 # inherits the docstring from interfaces.Dialect.connect --> 584 return self.dbapi.connect(*cargs, **cparams) .................................................. self = cargs = () cparams = {'host': '127.0.0.1', 'database': 'artemis', 'user': 'artemis', 'password': 'artemis', 'port': 5432} .................................................. File "/home/lnie/.cache/pypoetry/virtualenvs/tft-artemis--bEMb97A-py3.9/lib64/python3.9/site-packages/psycopg2/__init__.py", line 122, in connect 80 def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): (...) 116 if 'async' in kwargs: 117 kwasync['async'] = kwargs.pop('async') 118 if 'async_' in kwargs: 119 kwasync['async_'] = kwargs.pop('async_') 120 121 dsn = _ext.make_dsn(dsn, **kwargs) --> 122 conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 123 if cursor_factory is not None: .................................................. dsn = 'host=127.0.0.1 user=artemis password=artemis port=5432 dbna me=artemis' connection_factory = None cursor_factory = None kwargs = {'host': '127.0.0.1', 'database': 'artemis', 'user': 'artemis', 'password': 'artemis', 'port': 5432} kwasync = {} _ext.make_dsn = .................................................. OperationalError: (psycopg2.OperationalError) connection to server at "127.0.0.1", port 5432 failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. (Background on this error at: https://sqlalche.me/e/14/e3q8) + echo 'failed to upgrade DB Schema' failed to upgrade DB Schema + exit 1 ++ jobs -p + kill kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]