hyperledger / identus-cloud-agent

Identus Cloud Agent
https://identus.io/
Apache License 2.0
82 stars 23 forks source link

startup of agent #1171

Open reitcircles opened 5 months ago

reitcircles commented 5 months ago

Is this a regression?

Yes

Description

Just trying to run an agent locally in docker. It fails to startup without any proper error message.

Please provide the exception or error you saw

/infrastructure/local/run.sh -n issuer -b -e ./infrastructure/local/.env-issuer -p 8000 -d "$(ip addr show $(ip route show default | awk '/default/ {print $5}') | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)"
NAME                   = issuer
PORT                   = 8000
ENV_FILE               = ./infrastructure/local/.env-issuer
NETWORK                = issuer-prism
GLOBAL_WEBHOOK_URL     = 
GLOBAL_WEBHOOK_API_KEY = 
DOCKERHOST = <>
--------------------------------------
Starting stack using docker compose
--------------------------------------
WARN[0000] The "PRISM_NODE_VERSION" variable is not set. Defaulting to a blank string. 
Error response from daemon: invalid reference format. ...DOES ANYONE KNOW HOW I CAN OVERCOME THIS ERROR TO RUN THE AGENT ...
and when i put in PRISM_NODE_VERSION this is the result : /infrastructure/local/run.sh -n issuer -b -e ./infrastructure/local/.env-issuer -p 8000 -d "$(ip addr show $(ip route show default | awk '/default/ {print $5}') | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)"
NAME                   = issuer
PORT                   = 8000
ENV_FILE               = ./infrastructure/local/.env-issuer
NETWORK                = issuer-prism
GLOBAL_WEBHOOK_URL     = 
GLOBAL_WEBHOOK_API_KEY = 
DOCKERHOST = <ipaddress host>
--------------------------------------
Starting stack using docker compose
--------------------------------------
[+] Running 4/4
 ✘ swagger-ui Error                                                                                                                                                                                          1.1s 
 ✘ vault-server Error                                                                                                                                                                                        1.1s 
 ✘ cloud-agent Error                                                                                                                                                                                         1.1s 
 ✘ prism-node Error                                                                                                                                                                                          1.1s 
Error response from daemon: manifest unknown

Please provide the environment you discovered this bug in

API_KEY_ENABLED=false
AGENT_VERSION=1.18.0
NODE_VERSION=2.2.1
PORT=8000
NETWORK=identus
VAULT_DEV_ROOT_TOKEN_ID=root
PG_PORT=5432
PRISM_NODE_VERSION=v2.1.1

Anything else?

No response

yshyn-iohk commented 5 months ago

@reitcircles, thanks for reporting the issue. What revision of the identity-cloud-agent are you using to run the agents?

In short, we renamed many references and environment variables during the migration to Hyperledger, including some references to the term PRISM. I think you need to rename the NODE_VERSION variable to PRISM_NODE_VERSION in your revision

reitcircles commented 5 months ago

how do i find out version of the agent ? We just cloned the github and started it from main branch ...

mineme0110 commented 5 months ago
AGENT_VERSION=1.35.1
PRISM_NODE_VERSION=2.4.1
VAULT_DEV_ROOT_TOKEN_ID=root
API_KEY_ENABLED=false
PORT=8000
NETWORK=identus
VAULT_DEV_ROOT_TOKEN_ID=root
PG_PORT=5432

I suggest using the above configuration for .env-issuer file as it should work, unless you specifically need the previous version for some reason @reitcircles