Danke, ich habe das eingebaut und MaraiDB wird jetzt auch als erstes gestartet, aber der Fehler bleibt.
Code: Alles auswählen
mariadb-1 | 2024-11-29 20:32:12 0 [Note] InnoDB: Buffer pool(s) load completed at 241129 20:32:12
mariadb-1 | 2024-11-29 20:32:12 0 [Note] Server socket created on IP: '0.0.0.0'.
mariadb-1 | 2024-11-29 20:32:12 0 [Note] Server socket created on IP: '::'.
mariadb-1 | 2024-11-29 20:32:12 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
mariadb-1 | 2024-11-29 20:32:12 0 [Note] mariadbd: ready for connections.
mariadb-1 | Version: '11.2.6-MariaDB-ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
docker_test-1 | Traceback (most recent call last):
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/pymysql/connections.py", line 649, in connect
docker_test-1 | sock = socket.create_connection(
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/socket.py", line 863, in create_connection
docker_test-1 | raise exceptions[0]
docker_test-1 | File "/usr/local/lib/python3.11/socket.py", line 848, in create_connection
docker_test-1 | sock.connect(sa)
docker_test-1 | ConnectionRefusedError: [Errno 111] Connection refused
docker_test-1 |
docker_test-1 | During handling of the above exception, another exception occurred:
docker_test-1 |
docker_test-1 | Traceback (most recent call last):
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 146, in __init__
docker_test-1 | self._dbapi_connection = engine.raw_connection()
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3302, in raw_connection
docker_test-1 | return self.pool.connect()
docker_test-1 | ^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 449, in connect
docker_test-1 | return _ConnectionFairy._checkout(self)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
docker_test-1 | fairy = _ConnectionRecord.checkout(pool)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
docker_test-1 | rec = pool._do_get()
docker_test-1 | ^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
docker_test-1 | with util.safe_reraise():
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
docker_test-1 | raise exc_value.with_traceback(exc_tb)
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
docker_test-1 | return self._create_connection()
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
docker_test-1 | return _ConnectionRecord(self)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
docker_test-1 | self.__connect()
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
docker_test-1 | with util.safe_reraise():
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
docker_test-1 | raise exc_value.with_traceback(exc_tb)
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
docker_test-1 | self.dbapi_connection = connection = pool._invoke_creator(self)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/create.py", line 643, in connect
docker_test-1 | return dialect.connect(*cargs, **cparams)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 621, in connect
docker_test-1 | return self.loaded_dbapi.connect(*cargs, **cparams)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/pymysql/connections.py", line 361, in __init__
docker_test-1 | self.connect()
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/pymysql/connections.py", line 716, in connect
docker_test-1 | raise exc
docker_test-1 | pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)")
docker_test-1 |
docker_test-1 | The above exception was the direct cause of the following exception:
docker_test-1 |
docker_test-1 | Traceback (most recent call last):
docker_test-1 | File "/MehrerSim/technical_data/fill_database.py", line 66, in <module>
docker_test-1 | main()
docker_test-1 | File "/MehrerSim/technical_data/fill_database.py", line 40, in main
docker_test-1 | Base.metadata.create_all(engine)
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/schema.py", line 5868, in create_all
docker_test-1 | bind._run_ddl_visitor(
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3252, in _run_ddl_visitor
docker_test-1 | with self.begin() as conn:
docker_test-1 | File "/usr/local/lib/python3.11/contextlib.py", line 137, in __enter__
docker_test-1 | return next(self.gen)
docker_test-1 | ^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3242, in begin
docker_test-1 | with self.connect() as conn:
docker_test-1 | ^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3278, in connect
docker_test-1 | return self._connection_cls(self)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 148, in __init__
docker_test-1 | Connection._handle_dbapi_exception_noconnection(
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2442, in _handle_dbapi_exception_noconnection
docker_test-1 | raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 146, in __init__
docker_test-1 | self._dbapi_connection = engine.raw_connection()
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3302, in raw_connection
docker_test-1 | return self.pool.connect()
docker_test-1 | ^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 449, in connect
docker_test-1 | return _ConnectionFairy._checkout(self)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
docker_test-1 | fairy = _ConnectionRecord.checkout(pool)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
docker_test-1 | rec = pool._do_get()
docker_test-1 | ^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
docker_test-1 | with util.safe_reraise():
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
docker_test-1 | raise exc_value.with_traceback(exc_tb)
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
docker_test-1 | return self._create_connection()
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
docker_test-1 | return _ConnectionRecord(self)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
docker_test-1 | self.__connect()
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
docker_test-1 | with util.safe_reraise():
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
docker_test-1 | raise exc_value.with_traceback(exc_tb)
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
docker_test-1 | self.dbapi_connection = connection = pool._invoke_creator(self)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/create.py", line 643, in connect
docker_test-1 | return dialect.connect(*cargs, **cparams)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 621, in connect
docker_test-1 | return self.loaded_dbapi.connect(*cargs, **cparams)
docker_test-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/pymysql/connections.py", line 361, in __init__
docker_test-1 | self.connect()
docker_test-1 | File "/usr/local/lib/python3.11/site-packages/pymysql/connections.py", line 716, in connect
docker_test-1 | raise exc
docker_test-1 | sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '127.0.0.1' ([Errno 111] Connection refused)")
docker_test-1 | (Background on this error at: https://sqlalche.me/e/20/e3q8)
docker_test-1 exited with code 1