[Database] [DEBUG] Database already created [Database] [INFO] Not loading EIR IMEI TAC Database as Redis not enabled or TAC CSV Database not set in config [Database] [DEBUG] Table apn already exists [Database] [DEBUG] Table auc already exists [Database] [DEBUG] Table subscriber already exists [Database] [DEBUG] Table subscriber_routing already exists [Database] [DEBUG] Table serving_apn already exists [Database] [DEBUG] Table ims_subscriber already exists [Database] [DEBUG] Table roaming_network already exists [Database] [DEBUG] Table emergency_subscriber already exists [Database] [DEBUG] Table roaming_rule already exists [Database] [DEBUG] Table charging_rule already exists [Database] [DEBUG] Table tft already exists [Database] [DEBUG] Table eir already exists [Database] [DEBUG] Table eir_history already exists [Database] [DEBUG] Creating table subscriber_attributes Traceback (most recent call last): File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( ~~~~~~~~~~~~~~~~~~~~~~~^ cursor, str_statement, effective_parameters, context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/default.py", line 951, in do_execute cursor.execute(statement, parameters) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ sqlite3.OperationalError: table subscriber_attributes already exists The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/opt/venvs/pyhss/bin/pyhss_api", line 5, in from pyhss.services.apiService import main File "/opt/venvs/pyhss/lib/python3.13/site-packages/pyhss/services/apiService.py", line 44, in diameterClient = Diameter( redisMessaging=redisMessaging, ...<5 lines>... productName='PyHSS-client-API' ) File "/opt/venvs/pyhss/lib/python3.13/site-packages/pyhss/lib/diameter.py", line 48, in __init__ self.database = Database(logTool=logTool) ~~~~~~~~^^^^^^^^^^^^^^^^^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/pyhss/lib/database.py", line 413, in __init__ Base.metadata.tables[table_name].create(bind=self.engine) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/sql/schema.py", line 1288, in create bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 3252, in _run_ddl_visitor conn._run_ddl_visitor(visitorcallable, element, **kwargs) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 2459, in _run_ddl_visitor ).traverse_single(element) ~~~~~~~~~~~~~~~^^^^^^^^^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/sql/visitors.py", line 661, in traverse_single return meth(obj, **kw) File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/sql/ddl.py", line 1022, in visit_table )._invoke_with(self.connection) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/sql/ddl.py", line 321, in _invoke_with return bind.execute(self) ~~~~~~~~~~~~^^^^^^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 1419, in execute return meth( self, distilled_parameters, execution_options or NO_OPTIONS, ) File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/sql/ddl.py", line 187, in _execute_on_connection return connection._execute_ddl( ~~~~~~~~~~~~~~~~~~~~~~~^ self, distilled_params, execution_options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 1530, in _execute_ddl ret = self._execute_context( dialect, ...<4 lines>... compiled, ) File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context return self._exec_single_context( ~~~~~~~~~~~~~~~~~~~~~~~~~^ dialect, context, statement, parameters ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context self._handle_dbapi_exception( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ e, str_statement, effective_parameters, cursor, context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( ~~~~~~~~~~~~~~~~~~~~~~~^ cursor, str_statement, effective_parameters, context ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/opt/venvs/pyhss/lib/python3.13/site-packages/sqlalchemy/engine/default.py", line 951, in do_execute cursor.execute(statement, parameters) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table subscriber_attributes already exists [SQL: CREATE TABLE subscriber_attributes ( subscriber_attributes_id INTEGER NOT NULL, subscriber_id INTEGER NOT NULL, "key" VARCHAR(60), last_modified VARCHAR(100), value VARCHAR(12000), PRIMARY KEY (subscriber_attributes_id), FOREIGN KEY(subscriber_id) REFERENCES subscriber (subscriber_id) ON DELETE CASCADE ) ] (Background on this error at: https://sqlalche.me/e/20/e3q8)