web_search/server.log
2024-12-19 11:32:54 +08:00

654 lines
43 KiB
Plaintext

INFO: Will watch for changes in these directories: ['/home/ubuntu/apps/search_tools/app']
INFO: Uvicorn running on http://0.0.0.0:10083 (Press CTRL+C to quit)
INFO: Started reloader process [2715327] using WatchFiles
INFO: Started server process [2715330]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 38.54.50.90:44248 - "GET /?query=%E9%AB%98%E7%88%B7%E5%AE%B6%E7%8C%AB%E7%B2%AE HTTP/1.1" 404 Not Found
INFO: 38.54.50.90:51656 - "POST / HTTP/1.1" 404 Not Found
Error fetching summaries: (1146, "Table '9xin.saved_webpages' doesn't exist")
INFO: 38.54.50.90:38324 - "POST /search/ HTTP/1.1" 200 OK
WARNING: WatchFiles detected changes in 'search_queries.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [2715330]
INFO: Started server process [2724749]
INFO: Waiting for application startup.
INFO: Application startup complete.
WARNING: WatchFiles detected changes in 'util_old.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [2724749]
INFO: Started server process [2738595]
INFO: Waiting for application startup.
INFO: Application startup complete.
WARNING: WatchFiles detected changes in 'util_old.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [2738595]
INFO: Started server process [2738602]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 165.154.51.225:19230 - "GET / HTTP/1.1" 404 Not Found
WARNING: Invalid HTTP request received.
WARNING: Invalid HTTP request received.
INFO: 165.154.118.9:36588 - "GET / HTTP/1.1" 404 Not Found
INFO: 165.154.118.9:36776 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: 165.154.118.9:36884 - "GET /sitemap.xml HTTP/1.1" 404 Not Found
INFO: 165.154.118.9:36882 - "GET /robots.txt HTTP/1.1" 404 Not Found
INFO: 118.193.59.142:58970 - "GET / HTTP/1.1" 404 Not Found
WARNING: Invalid HTTP request received.
WARNING: Invalid HTTP request received.
INFO: 165.154.182.174:41872 - "GET / HTTP/1.1" 404 Not Found
INFO: 165.154.182.174:41944 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: 165.154.182.174:42398 - "GET /sitemap.xml HTTP/1.1" 404 Not Found
INFO: 165.154.182.174:42396 - "GET /robots.txt HTTP/1.1" 404 Not Found
INFO: 106.75.156.189:56564 - "POST /token HTTP/1.1" 404 Not Found
INFO: 185.242.226.4:33756 - "GET / HTTP/1.1" 404 Not Found
INFO: 165.154.182.53:55626 - "GET / HTTP/1.1" 404 Not Found
INFO: 165.154.182.53:55660 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: 165.154.182.53:55724 - "GET /sitemap.xml HTTP/1.1" 404 Not Found
INFO: 165.154.182.53:55722 - "GET /robots.txt HTTP/1.1" 404 Not Found
INFO: 152.32.134.89:52042 - "GET / HTTP/1.1" 404 Not Found
INFO: 152.32.134.89:52102 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: 152.32.134.89:52182 - "GET /sitemap.xml HTTP/1.1" 404 Not Found
INFO: 152.32.134.89:52184 - "GET /robots.txt HTTP/1.1" 404 Not Found
INFO: 106.75.186.101:41622 - "POST /token HTTP/1.1" 404 Not Found
INFO: 144.126.213.177:55772 - "GET / HTTP/1.1" 404 Not Found
INFO: 185.242.226.4:42024 - "GET / HTTP/1.1" 404 Not Found
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [2738602]
INFO: Started server process [4073521]
INFO: Waiting for application startup.
INFO: Application startup complete.
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4073521]
INFO: Started server process [4075998]
INFO: Waiting for application startup.
INFO: Application startup complete.
Error fetching summaries: (1146, "Table '9xin.saved_webpages' doesn't exist")
INFO: 218.86.185.185:54433 - "POST /search/ HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/app/main.py", line 94, in search
web_results = await search_and_save(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/app/search_plus.py", line 67, in search_and_save
await database.execute(query_, values)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/core.py", line 199, in execute
return await connection.execute(query, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/core.py", line 318, in execute
return await self._connection.execute(built_query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/backends/mysql.py", line 161, in execute
await cursor.execute(query_str, args)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/cursors.py", line 239, in execute
await self._query(query)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/cursors.py", line 457, in _query
await conn.query(q)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 469, in query
await self._read_query_result(unbuffered=unbuffered)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 683, in _read_query_result
await result.read()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 1164, in read
first_packet = await self.connection._read_packet()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 652, in _read_packet
packet.raise_for_error()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.DataError: (1406, "Data too long for column 'results' at row 1")
INFO: 218.86.185.185:54483 - "POST /batch_search/ HTTP/1.1" 500 Internal Server Error
WARNING: WatchFiles detected changes in 'search_plus.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4075998]
INFO: Started server process [4086197]
INFO: Waiting for application startup.
INFO: Application startup complete.
Error fetching summaries: (1146, "Table '9xin.saved_webpages' doesn't exist")
INFO: 218.86.185.185:54959 - "POST /search/ HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/app/main.py", line 94, in search
web_results = await search_and_save(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/app/search_plus.py", line 67, in search_and_save
await database.execute(query_, values)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/core.py", line 199, in execute
return await connection.execute(query, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/core.py", line 318, in execute
return await self._connection.execute(built_query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/backends/mysql.py", line 161, in execute
await cursor.execute(query_str, args)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/cursors.py", line 239, in execute
await self._query(query)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/cursors.py", line 457, in _query
await conn.query(q)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 469, in query
await self._read_query_result(unbuffered=unbuffered)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 683, in _read_query_result
await result.read()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 1164, in read
first_packet = await self.connection._read_packet()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 652, in _read_packet
packet.raise_for_error()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table '9xin.web_search_results' doesn't exist")
INFO: 218.86.185.185:54970 - "POST /batch_search/ HTTP/1.1" 500 Internal Server Error
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4086197]
INFO: Started server process [4087364]
INFO: Waiting for application startup.
INFO: Application startup complete.
Error fetching summaries: (1146, "Table '9xin.saved_webpages' doesn't exist")
INFO: 218.86.185.185:50392 - "POST /search/ HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/app/main.py", line 94, in search
web_results = await search_and_save(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/app/search_plus.py", line 67, in search_and_save
await database.execute(query_, values)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/core.py", line 199, in execute
return await connection.execute(query, values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/core.py", line 318, in execute
return await self._connection.execute(built_query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/databases/backends/mysql.py", line 161, in execute
await cursor.execute(query_str, args)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/cursors.py", line 239, in execute
await self._query(query)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/cursors.py", line 457, in _query
await conn.query(q)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 469, in query
await self._read_query_result(unbuffered=unbuffered)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 683, in _read_query_result
await result.read()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 1164, in read
first_packet = await self.connection._read_packet()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/aiomysql/connection.py", line 652, in _read_packet
packet.raise_for_error()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table '9xin.web_search_results' doesn't exist")
INFO: 218.86.185.185:50413 - "POST /batch_search/ HTTP/1.1" 500 Internal Server Error
WARNING: WatchFiles detected changes in 'search_plus.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4087364]
INFO: Started server process [4091530]
INFO: Waiting for application startup.
INFO: Application startup complete.
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4091530]
INFO: Started server process [4091703]
INFO: Waiting for application startup.
INFO: Application startup complete.
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:50885 - "POST /search/ HTTP/1.1" 200 OK
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:50905 - "POST /batch_search/ HTTP/1.1" 200 OK
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4091703]
INFO: Started server process [4094713]
INFO: Waiting for application startup.
INFO: Application startup complete.
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:51254 - "POST /search/ HTTP/1.1" 200 OK
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:51262 - "POST /batch_search/ HTTP/1.1" 200 OK
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:51402 - "POST /search/ HTTP/1.1" 200 OK
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:51406 - "POST /batch_search/ HTTP/1.1" 200 OK
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:51493 - "POST /search/ HTTP/1.1" 200 OK
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4094713]
INFO: Started server process [4099227]
INFO: Waiting for application startup.
INFO: Application startup complete.
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
Error saving user query: (1146, "Table 'gptDB.user_queries' doesn't exist")
INFO: 218.86.185.185:51558 - "POST /search/ HTTP/1.1" 200 OK
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [4099227]
Process SpawnProcess-13:
Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 991, in exec_module
File "<frozen importlib._bootstrap_external>", line 1129, in get_code
File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/ubuntu/apps/search_tools/app/main.py", line 158
return BatchSearchResponse(
^^^^^^
IndentationError: expected an indented block after 'finally' statement on line 156
WARNING: WatchFiles detected changes in 'main.py'. Reloading...
Process SpawnProcess-14:
Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 991, in exec_module
File "<frozen importlib._bootstrap_external>", line 1129, in get_code
File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/ubuntu/apps/search_tools/app/main.py", line 158
return BatchSearchResponse(
^^^^^^
IndentationError: expected an indented block after 'finally' statement on line 156
WARNING: WatchFiles detected changes in 'parse_results.py'. Reloading...
Process SpawnProcess-15:
Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 991, in exec_module
File "<frozen importlib._bootstrap_external>", line 1129, in get_code
File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/ubuntu/apps/search_tools/app/main.py", line 158
return BatchSearchResponse(
^^^^^^
IndentationError: expected an indented block after 'finally' statement on line 156
WARNING: WatchFiles detected changes in 'parse_results.py'. Reloading...
Process SpawnProcess-16:
Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 991, in exec_module
File "<frozen importlib._bootstrap_external>", line 1129, in get_code
File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/ubuntu/apps/search_tools/app/main.py", line 158
return BatchSearchResponse(
^^^^^^
IndentationError: expected an indented block after 'finally' statement on line 156
WARNING: WatchFiles detected changes in 'search_ui.py'. Reloading...
Process SpawnProcess-17:
Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 991, in exec_module
File "<frozen importlib._bootstrap_external>", line 1129, in get_code
File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/ubuntu/apps/search_tools/app/main.py", line 158
return BatchSearchResponse(
^^^^^^
IndentationError: expected an indented block after 'finally' statement on line 156
WARNING: WatchFiles detected changes in 'search_ui.py'. Reloading...
Process SpawnProcess-18:
Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/apps/search_tools/search_tools/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 991, in exec_module
File "<frozen importlib._bootstrap_external>", line 1129, in get_code
File "<frozen importlib._bootstrap_external>", line 1059, in source_to_code
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/ubuntu/apps/search_tools/app/main.py", line 158
return BatchSearchResponse(
^^^^^^
IndentationError: expected an indented block after 'finally' statement on line 156