Project

General

Profile

Bug #352 » log-events-viewer-result (2).csv

Linh Nguyễn Xuân, 01/08/2024 03:31 PM

 
timestamp,message
1704696167633,INFO:__main__:Worker started.
1704696167633,"INFO:__main__:Parameters: {'user_id': 5683, 'user_email': '****yanhnhan@gmail.com', 'user_fullname': 'lyanhnhan', 'user_uuid': '26ea0020-adef-11ee-b892-0a58a9feac02', 'origin_file_name': 'NGH- BÀI 8 - SÁCH GIÁO KHOA- KHÓA HỌC NHẬP MÔN-đã mở khóa_OCR.pdf', 'input_file_path': 'uploaded/5683/20240108_063454_969684/NGH- BÀI 8 - SÁCH GIÁO KHOA- KHÓA HỌC NHẬP MÔN.docx', 'source_lang': 'Detect language', 'target_lang': 'vietnamese', 'domain': None, 'tone': None, 'writing_style': None, 'history_uuid': '0947cfce-adf0-11ee-86e7-0a58a9feac02', 'ai_model': None, 'gpt_version': 'gpt-3.5'}"
1704696167696,INFO:__main__:current_user from db lyanhnhan
1704696167843,ERROR:__main__:Translate and send result failed
1704696167844,ERROR:__main__:An error occurred (404) when calling the HeadObject operation: Not Found
1704696167844,Traceback (most recent call last):
1704696167844," File ""/app/worker.py"", line 112, in main"
1704696167844, input_file_path = download_file_from_s3(args.input_file_path)
1704696167844, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167844," File ""/app/worker.py"", line 37, in download_file_from_s3"
1704696167844," download_file(settings.S3_BUCKET_NAME, object_key, destination_path)"
1704696167844," File ""/app/app/translate_gpt_back_common/services/s3_client.py"", line 37, in download_file"
1704696167844," s3_client.download_file(bucket_name, object_key, destination_path)"
1704696167844," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/inject.py"", line 190, in download_file"
1704696167844, return transfer.download_file(
1704696167844, ^^^^^^^^^^^^^^^^^^^^^^^
1704696167844," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/transfer.py"", line 326, in download_file"
1704696167844, future.result()
1704696167844," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 103, in result"
1704696167844, return self._coordinator.result()
1704696167844, ^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167844," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 266, in result"
1704696167844, raise self._exception
1704696167844," File ""/usr/local/lib/python3.11/site-packages/s3transfer/tasks.py"", line 269, in _main"
1704696167844," self._submit(transfer_future=transfer_future, **kwargs)"
1704696167844," File ""/usr/local/lib/python3.11/site-packages/s3transfer/download.py"", line 354, in _submit"
1704696167844, response = client.head_object(
1704696167844, ^^^^^^^^^^^^^^^^^^^
1704696167844," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 530, in _api_call"
1704696167844," return self._make_api_call(operation_name, kwargs)"
1704696167844, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167844," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 964, in _make_api_call"
1704696167844," raise error_class(parsed_response, operation_name)"
1704696167844,botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
1704696167845,ERROR:__main__:Traceback (most recent call last):
1704696167845," File ""/app/worker.py"", line 112, in main"
1704696167845, input_file_path = download_file_from_s3(args.input_file_path)
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/app/worker.py"", line 37, in download_file_from_s3"
1704696167845," download_file(settings.S3_BUCKET_NAME, object_key, destination_path)"
1704696167845," File ""/app/app/translate_gpt_back_common/services/s3_client.py"", line 37, in download_file"
1704696167845," s3_client.download_file(bucket_name, object_key, destination_path)"
1704696167845," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/inject.py"", line 190, in download_file"
1704696167845, return transfer.download_file(
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/transfer.py"", line 326, in download_file"
1704696167845, future.result()
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 103, in result"
1704696167845, return self._coordinator.result()
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 266, in result"
1704696167845, raise self._exception
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/tasks.py"", line 269, in _main"
1704696167845," self._submit(transfer_future=transfer_future, **kwargs)"
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/download.py"", line 354, in _submit"
1704696167845, response = client.head_object(
1704696167845, ^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 530, in _api_call"
1704696167845," return self._make_api_call(operation_name, kwargs)"
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 964, in _make_api_call"
1704696167845," raise error_class(parsed_response, operation_name)"
1704696167845,botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
1704696167845,Traceback (most recent call last):
1704696167845," File ""/app/worker.py"", line 112, in main"
1704696167845, input_file_path = download_file_from_s3(args.input_file_path)
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/app/worker.py"", line 37, in download_file_from_s3"
1704696167845," download_file(settings.S3_BUCKET_NAME, object_key, destination_path)"
1704696167845," File ""/app/app/translate_gpt_back_common/services/s3_client.py"", line 37, in download_file"
1704696167845," s3_client.download_file(bucket_name, object_key, destination_path)"
1704696167845," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/inject.py"", line 190, in download_file"
1704696167845, return transfer.download_file(
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/transfer.py"", line 326, in download_file"
1704696167845, future.result()
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 103, in result"
1704696167845, return self._coordinator.result()
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 266, in result"
1704696167845, raise self._exception
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/tasks.py"", line 269, in _main"
1704696167845," self._submit(transfer_future=transfer_future, **kwargs)"
1704696167845," File ""/usr/local/lib/python3.11/site-packages/s3transfer/download.py"", line 354, in _submit"
1704696167845, response = client.head_object(
1704696167845, ^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 530, in _api_call"
1704696167845," return self._make_api_call(operation_name, kwargs)"
1704696167845, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167845," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 964, in _make_api_call"
1704696167845," raise error_class(parsed_response, operation_name)"
1704696167845,botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
1704696167846,ERROR:__main__:0947cfce-adf0-11ee-86e7-0a58a9feac02
1704696167846,Traceback (most recent call last):
1704696167846," File ""/app/worker.py"", line 112, in main"
1704696167846, input_file_path = download_file_from_s3(args.input_file_path)
1704696167846, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167846," File ""/app/worker.py"", line 37, in download_file_from_s3"
1704696167846," download_file(settings.S3_BUCKET_NAME, object_key, destination_path)"
1704696167846," File ""/app/app/translate_gpt_back_common/services/s3_client.py"", line 37, in download_file"
1704696167846," s3_client.download_file(bucket_name, object_key, destination_path)"
1704696167846," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/inject.py"", line 190, in download_file"
1704696167846, return transfer.download_file(
1704696167846, ^^^^^^^^^^^^^^^^^^^^^^^
1704696167846," File ""/usr/local/lib/python3.11/site-packages/boto3/s3/transfer.py"", line 326, in download_file"
1704696167846, future.result()
1704696167846," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 103, in result"
1704696167846, return self._coordinator.result()
1704696167846, ^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167846," File ""/usr/local/lib/python3.11/site-packages/s3transfer/futures.py"", line 266, in result"
1704696167846, raise self._exception
1704696167846," File ""/usr/local/lib/python3.11/site-packages/s3transfer/tasks.py"", line 269, in _main"
1704696167846," self._submit(transfer_future=transfer_future, **kwargs)"
1704696167846," File ""/usr/local/lib/python3.11/site-packages/s3transfer/download.py"", line 354, in _submit"
1704696167846, response = client.head_object(
1704696167846, ^^^^^^^^^^^^^^^^^^^
1704696167846," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 530, in _api_call"
1704696167846," return self._make_api_call(operation_name, kwargs)"
1704696167846, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1704696167846," File ""/usr/local/lib/python3.11/site-packages/botocore/client.py"", line 964, in _make_api_call"
1704696167846," raise error_class(parsed_response, operation_name)"
1704696167846,botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
1704696167877,INFO:app.translate_gpt_back_common.helpers.email_helper:Send translated file failed notice email
1704696167912,INFO:app.translate_gpt_back_common.helpers.email_helper:Message 6d6fdb88-8f43-4913-a019-9e358b60b0ba sent to queue: https://sqs.ap-southeast-1.amazonaws.com/449813343309/cdk-translate-gpt-prod-send-email-queue
1704696167912,INFO:Firebase client:Add notification to firebase START
1704696168634,INFO:Firebase client:Add notification to firebase END
1704696168647,INFO:__main__:Recalculate user lock token
1704696168685,INFO:__main__:Translate and send result END
(1-1/2)