Files
happypoker/.backend-log.tmp
2026-09-21 19:12:31 +08:00

81 lines
7.5 KiB
Plaintext

docker : INFO: Started server process [1]
所在位置 行:445 字符: 1
+ docker logs --tail 40 student-backend > D:\fastapi-app\.backend-log.t ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (INFO: Started server process
[1]:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO: Waiting for application startup.
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 693
, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 206,
in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "/usr/local/lib/python3.10/site-packages/tortoise/contrib/fastapi/__init
__.py", line 271, in orm_lifespan
async with RegisterTortoise(
File "/usr/local/lib/python3.10/site-packages/tortoise/contrib/fastapi/__init
__.py", line 177, in __aenter__
await self.init_orm()
File "/usr/local/lib/python3.10/site-packages/tortoise/contrib/fastapi/__init
__.py", line 166, in init_orm
await Tortoise.generate_schemas()
File "/usr/local/lib/python3.10/site-packages/tortoise/__init__.py", line 593
, in generate_schemas
await generate_schema_for_client(connection, safe)
File "/usr/local/lib/python3.10/site-packages/tortoise/utils.py", line 46, in
generate_schema_for_client
await generator.generate_from_string(schema)
File "/usr/local/lib/python3.10/site-packages/tortoise/backends/base/schema_g
enerator.py", line 504, in generate_from_string
await self.client.execute_script(creation_string)
File "/usr/local/lib/python3.10/site-packages/tortoise/backends/mysql/client.
py", line 50, in translate_exceptions_
return await func(self, *args)
File "/usr/local/lib/python3.10/site-packages/tortoise/backends/mysql/client.
py", line 221, in execute_script
async with self.acquire_connection() as connection:
File "/usr/local/lib/python3.10/site-packages/tortoise/backends/base/client.p
y", line 366, in __aenter__
await self.ensure_connection()
File "/usr/local/lib/python3.10/site-packages/tortoise/backends/base/client.p
y", line 363, in ensure_connection
await self.client.create_connection(with_db=True)
File "/usr/local/lib/python3.10/site-packages/tortoise/backends/mysql/client.
py", line 126, in create_connection
self._pool = await mysql.create_pool(password=self.password, **self._templa
te)
File "/usr/local/lib/python3.10/site-packages/aiomysql/pool.py", line 29, in
_create_pool
await pool._fill_free_pool(False)
File "/usr/local/lib/python3.10/site-packages/aiomysql/pool.py", line 182, in
_fill_free_pool
conn = await connect(echo=self._echo, loop=self._loop,
TypeError: connect() got an unexpected keyword argument 'serverTimezone'
ERROR: Application startup failed. Exiting.
docker : mysql: [Warning] Using a password on the command line interface can be
insecure.
所在位置 行:445 字符: 79
+ ... g.tmp 2>&1; docker exec student-mysql mysql -uroot -p123456 -e "SHOW ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (mysql: [Warning...an be insecure.
:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Database
information_schema
mysql
performance_schema
student_system
sys
@@global.time_zone @@system_time_zone @@global.system_time_zone
SYSTEM CST CST