Unable to deploy PostgresDB on Greengrass V2

0

I have built and published PostgresDB community component . But the deployment of the component is failing with following error message: We have verified that AWSIOT is installed successfully.

2023-06-15T07:07:07.602Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/greengrass/v2/packages/artifacts-unarchived/aws.greengrass.labs.database.PostgreSQL/1.0.0/aws-greengrass-labs-database-postgresql/src/shutdown_component.py", line 30, in main. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.603Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. container_name = configuration_handler.get_configuration().get_container_name(). {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.603Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/greengrass/v2/packages/artifacts-unarchived/aws.greengrass.labs.database.PostgreSQL/1.0.0/aws-greengrass-labs-database-postgresql/src/configuration_handler.py", line 27, in get_configuration. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.603Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. secret_response = self.__retrieve_secret(config_response). {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.603Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/greengrass/v2/packages/artifacts-unarchived/aws.greengrass.labs.database.PostgreSQL/1.0.0/aws-greengrass-labs-database-postgresql/src/configuration_handler.py", line 43, in __retrieve_secret. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.604Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. return self.__ipc_client.get_secret_value(secret_id=config[DB_CREDENTIAL_SECRET_KEY]). {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.604Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/home/ggc_user/.local/lib/python3.10/site-packages/awsiot/greengrasscoreipc/clientv2.py", line 377, in get_secret_value. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.604Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. return self.get_secret_value_async(secret_id=secret_id, version_id=version_id, version_stage=version_stage).result(). {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.604Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.605Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. return self.__get_result(). {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.605Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.605Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. raise self._exception. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.606Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. File "/home/ggc_user/.local/lib/python3.10/site-packages/awsiot/eventstreamrpc.py", line 723, in _on_continuation_message. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} 2023-06-15T07:07:07.606Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. raise shape. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} **2023-06-15T07:07:07.606Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. awsiot.greengrasscoreipc.model.ResourceNotFoundError. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Shutdown.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STOPPING} ****2023-06-15T07:07:07.658Z [WARN] (pool-2-thread-45) aws.greengrass.labs.database.PostgreSQL: shell-runner-error. {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..."]} 2023-06-15T07:07:07.664Z [INFO] (pool-2-thread-45) aws.greengrass.labs.database.PostgreSQL: shell-runner-start. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=STARTING, command=["export PYTHONPATH=$PYTHONPATH:/greengrass/v2/packages/artifacts-unarchived/aws..."]} 2023-06-15T07:07:08.067Z [INFO] (Copier) aws.greengrass.labs.database.PostgreSQL: stdout. <Connection at 0x7fee67a7c0a0 /greengrass/v2/ipc.socket:0> connected. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING} 2023-06-15T07:07:08.129Z [WARN] (Copier) aws.greengrass.labs.database.PostgreSQL: stderr. Traceback (most recent call last):. {scriptName=services.aws.greengrass.labs.database.PostgreSQL.lifecycle.Run.script, serviceName=aws.greengrass.labs.database.PostgreSQL, currentState=RUNNING}

  • What have you done to troubleshoot this? Did you follow the instructions in the community component repository to correctly setup this component and its dependencies (secrets stored in secret manager).

asked a year ago204 views
1 Answer
0

We initially saw AWSIOT ModuleNotFoundError but after following troubleshooting steps and installing AWSIOT getting this ERROR " stderr. awsiot.greengrasscoreipc.model.ResourceNotFoundError." Can you please suggest how to resolve this ?

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions