Component Broken error while deploying Postgressql community Component

0
  1. Able to build and publish as given in https://github.com/awslabs/aws-greengrass-labs-database-postgresql .
  2. While deploying from aws console getting component broken error
  3. Below is the logfile content aws.greengrass.labs.database.PostgreSQL.log 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/usr/local/lib/python3.7/site-packages/docker/init.py", line 2, in <module>. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. from .api import APIClient. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/usr/local/lib/python3.7/site-packages/docker/api/init.py", line 2, in <module>. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. from .client import APIClient. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 6, in <module>. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. import requests. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/usr/local/lib/python3.7/site-packages/requests/init.py", line 43, in <module>. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.074Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. import urllib3. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.075Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/usr/local/lib/python3.7/site-packages/urllib3/init.py", line 39, in <module>. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.075Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently ". {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.075Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2k-fips 26 Jan 2017. See: https://github.com/urllib3/urllib3/issues/2168. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.087Z [INFO] (Copier) aws.greengrass.labs.database.PostgreSQL: Run script exited. {exitCode=1, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-05-05T08:28:12.093Z [INFO] (pool-2-thread-54) aws.greengrass.labs.database.PostgreSQL: shell-runner-start. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING, command=["export PYTHONPATH=$PYTHONPATH:/greengrass/v2/packages/artifacts-unarchived/aws..."]} serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING}
smita
已提問 1 年前檢視次數 269 次
1 個回答
2

Hi, it looks like the urllib3 issue here is coming from the requests library. Please check the requests library version installed on your core device by using pip3 show requests command. If it is greater than or equal to 2.30.0, please remove it and install it again using pip3 install "requests<2.30.0" (or you can also use pip3 upgrade). This should install urllib3 version < 2.0 which is compatible with your openssl version.

If the urllib3>=2.0 is coming from some other library, you can choose to uninstall and install again the urllib3 < 2.0 library only.

Doc for migrating to urllib3 v2.0 and potential remediation steps for the issue with openssl- https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html#ssl-module-is-compiled-with-openssl-1-0-2-k-fips

AWS
Saranya
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南