Thank you very much.
Yes I’m using the official helm chart for that using the values.yml that was generated.
The following is my yaml file
And my stacktrace is
START RequestId: d5fe8460-82c9-482e-a2cf-fc59a8838c60 Version: $LATEST
2024-10-02 07:06:11.079 | INFO | shared.service.process_file:process_files:14 - Starting process_files for PDF: Expendo Android QRG_SBSA_All Modes_20220318 2.pdf in bucket: mervin-pdf-bucket.
2024-10-02 07:06:11.079 | INFO | shared.helper.data.extract_text:extract_text_from_pdfs:9 - Attempting to parse file from S3.
/var/lang/lib/python3.12/site-packages/botocore/auth.py:419: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
datetime_now = datetime.datetime.utcnow()
2024-10-02 07:06:12.893 | INFO | shared.helper.data.extract_text:extract_text_from_pdfs:15 - File loaded successfully.
/var/lang/lib/python3.12/site-packages/tika/tika.py:667: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='w' encoding='utf-8'>
_ = Popen(java_path, stdout=open(os.devnull, "w"), stderr=open(os.devnull, "w"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
2024-10-02 07:06:12,998 [MainThread ] [WARNI] Failed to see startup log message; retrying...
[WARNING] 2024-10-02T07:06:12.998Z 6af15f31-d000-459b-b556-5f94d1f6530b Failed to see startup log message; retrying...
/var/lang/lib/python3.12/site-packages/tika/tika.py:599: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tika-server.log' mode='w' encoding='utf-8'>
status = startServer(jarPath, TikaJava, TikaJavaArgs, serverHost, port, classpath, config_path)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/var/lang/lib/python3.12/subprocess.py:1127: ResourceWarning: subprocess 18 is still running
_warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
2024-10-02 07:06:18.746 | INFO | shared.helper.data.extract_text:extract_text_from_pdfs:19 - File parsed successfully.
2024-10-02 07:06:18.775 | ERROR | shared.helper.database.get_client:get_client:21 - Failed to initialize Weaviate client: Meta endpoint! Unexpected status code: 404, with response body: None.
2024-10-02 07:06:18.775 | ERROR | shared.service.process_file:process_files:41 - An error occurred during processing of Expendo Android QRG_SBSA_All Modes_20220318 2.pdf: Failed to initialize Weaviate client: Meta endpoint! Unexpected status code: 404, with response body: None.
2024-10-02 07:06:18.776 | ERROR | create_db_handler:handler:41 - Error: An error occurred while processing the file: Failed to initialize Weaviate client: Meta endpoint! Unexpected status code: 404, with response body: None.
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
[ERROR] RuntimeError: An error occurred while processing the file: Failed to initialize Weaviate client: Meta endpoint! Unexpected status code: 404, with response body: None.
Traceback (most recent call last):
File "/var/task/create_db_handler.py", line 42, in handler
raise e
File "/var/task/create_db_handler.py", line 30, in handler
process_files(s3_pdf_bucket, s3_pdf_key) # Updated call)
File "/var/task/shared/service/process_file.py", line 42, in process_files
raise RuntimeError(f"An error occurred while processing the file: {e}")
END RequestId: 6af15f31-d000-459b-b556-5f94d1f6530b
REPORT RequestId: 6af15f31-d000-459b-b556-5f94d1f6530b Init Duration: 0.29 ms Duration: 8487.79 ms Billed Duration: 8488 ms Memory Size: 2048 MB Max Memory Used: 2048 MB
{"errorMessage": "An error occurred while processing the file: Failed to initialize Weaviate client: Meta endpoint! Unexpected status code: 404, with response body: None.", "errorType": "RuntimeError", "requestId": "6af15f31-d000-459b-b556-5f94d1f6530b", "stackTrace": [" File \"/var/task/create_db_handler.py\", line 42, in handler\n raise e\n", " File \"/var/task/create_db_handler.py\", line 30, in handler\n process_files(s3_pdf_bucket, s3_pdf_key) # Updated call)\n", " File \"/var/task/shared/service/process_file.py\", line 42, in process_files\n raise RuntimeError(f\"An error occurred while processing the file: {e}\")\n"]}
[ERROR] [1727852778818] LAMBDA_RUNTIME Failed to get next invocation. No Response from endpoint
Thanks for taking the time to respond