Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startup of agent #1171

Open
reitcircles opened this issue Jun 10, 2024 · 3 comments
Open

startup of agent #1171

reitcircles opened this issue Jun 10, 2024 · 3 comments

Comments

@reitcircles
Copy link

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
Copy link
Member

@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
Copy link
Author

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

@mineme0110
Copy link
Contributor

mineme0110 commented Jun 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants