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
질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠