Bug #805 » job-container-5620179c-1c96-11ef-81ea-f277cf04c149.log
INFO:__main__:Worker started.
|
|
INFO:__main__:Parameters: Namespace(history_uuid='5620179c-1c96-11ef-81ea-f277cf04c149', limit_vcpu=None, limit_ram=None)
|
|
INFO:__main__:conversion_history
|
|
INFO:__main__:<app.tts_common.models.history.ConversionHistory object at 0x7f1617baef50>
|
|
INFO:__main__:current_user from db Muhammed ajmal Mufeez
|
|
INFO:__main__:processing history: 5620179c-1c96-11ef-81ea-f277cf04c149
|
|
INFO:__main__:current history type: tts-document
|
|
INFO:__main__:current user_id: 40187
|
|
INFO:__main__:processing document: 5620179c-1c96-11ef-81ea-f277cf04c149
|
|
INFO:__main__:Try to download and decrypt if needed for flare_uploaded/40187/20240528_020226_026825/20240528_073125.pdf
|
|
INFO:app.tts_common.helpers.tts_history_helper:File downloaded successfully to: tmp/flare_uploaded/40187/20240528_020226_026825/20240528_073125.pdf
|
|
WARNING:pypdf._reader:invalid pdf header: b'\xff\xf1P\x80#'
|
|
WARNING:pypdf._reader:EOF marker not found
|
|
ERROR:__main__:Convert and send result failed
|
|
ERROR:__main__:Stream has ended unexpectedly
|
|
Traceback (most recent call last):
|
|
File "/app/worker.py", line 152, in main
|
|
input_file_path = decrypt_document(conversion_history, current_user)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/worker.py", line 67, in decrypt_document
|
|
if is_pdf_protected(input_file_path):
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/app/tts_common/helpers/common_helper.py", line 81, in is_pdf_protected
|
|
pdf_reader = PdfReader(pdf_path)
|
|
^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 318, in __init__
|
|
self.read(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1335, in read
|
|
self._find_eof_marker(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1406, in _find_eof_marker
|
|
line = read_previous_line(stream)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_utils.py", line 285, in read_previous_line
|
|
raise PdfStreamError(STREAM_TRUNCATED_PREMATURELY)
|
|
pypdf.errors.PdfStreamError: Stream has ended unexpectedly
|
|
ERROR:__main__:Traceback (most recent call last):
|
|
File "/app/worker.py", line 152, in main
|
|
input_file_path = decrypt_document(conversion_history, current_user)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/worker.py", line 67, in decrypt_document
|
|
if is_pdf_protected(input_file_path):
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/app/tts_common/helpers/common_helper.py", line 81, in is_pdf_protected
|
|
pdf_reader = PdfReader(pdf_path)
|
|
^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 318, in __init__
|
|
self.read(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1335, in read
|
|
self._find_eof_marker(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1406, in _find_eof_marker
|
|
line = read_previous_line(stream)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_utils.py", line 285, in read_previous_line
|
|
raise PdfStreamError(STREAM_TRUNCATED_PREMATURELY)
|
|
pypdf.errors.PdfStreamError: Stream has ended unexpectedly
|
|
Traceback (most recent call last):
|
|
File "/app/worker.py", line 152, in main
|
|
input_file_path = decrypt_document(conversion_history, current_user)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/worker.py", line 67, in decrypt_document
|
|
if is_pdf_protected(input_file_path):
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/app/tts_common/helpers/common_helper.py", line 81, in is_pdf_protected
|
|
pdf_reader = PdfReader(pdf_path)
|
|
^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 318, in __init__
|
|
self.read(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1335, in read
|
|
self._find_eof_marker(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1406, in _find_eof_marker
|
|
line = read_previous_line(stream)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_utils.py", line 285, in read_previous_line
|
|
raise PdfStreamError(STREAM_TRUNCATED_PREMATURELY)
|
|
pypdf.errors.PdfStreamError: Stream has ended unexpectedly
|
|
ERROR:__main__:5620179c-1c96-11ef-81ea-f277cf04c149
|
|
Traceback (most recent call last):
|
|
File "/app/worker.py", line 152, in main
|
|
input_file_path = decrypt_document(conversion_history, current_user)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/worker.py", line 67, in decrypt_document
|
|
if is_pdf_protected(input_file_path):
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/app/tts_common/helpers/common_helper.py", line 81, in is_pdf_protected
|
|
pdf_reader = PdfReader(pdf_path)
|
|
^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 318, in __init__
|
|
self.read(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1335, in read
|
|
self._find_eof_marker(stream)
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_reader.py", line 1406, in _find_eof_marker
|
|
line = read_previous_line(stream)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.11/site-packages/pypdf/_utils.py", line 285, in read_previous_line
|
|
raise PdfStreamError(STREAM_TRUNCATED_PREMATURELY)
|
|
pypdf.errors.PdfStreamError: Stream has ended unexpectedly
|
|
INFO:app.tts_common.helpers.email_helper:Send vocalized file failed notice email
|
|
INFO:app.tts_common.helpers.email_helper:sent to message to kafka topic: tts-emails-prod
|
|
INFO:Firebase client:Add notification to firebase START
|
|
INFO:Firebase client:Add notification to firebase END
|
|
INFO:__main__:Recalculate user locked credit
|
|
INFO:__main__:Convert and send result END
|
|
Produced event to topic tts-emails-prod: value = {"function": "send_vocalized_file_failed_notice", "email_to": "[email protected]", "recipient_name": "Muhammed ajmal Mufeez", "file_name": "20240528_073125.pdf"}
|