hyperledger / identus-cloud-agent

Identus Cloud Agent
https://docs.atalaprism.io/
Apache License 2.0
72 stars 18 forks source link

Connection establishing #1179

Open jeyem opened 2 weeks ago

jeyem commented 2 weeks ago

Is this a regression?

Yes

Description

we are facing other issue related to establishing connections time to time sometimes connection give such error and result would be wallet SDK doesn't receive establish message anymore and VCs can not be sent throw this connections, this happening time to time some times more some time less

Please provide the exception or error you saw

zio-fiber-775 Connect - Error processing record: 31c9ba07-db7c-4530-b7cd-68ef646ae283   
zio.FiberFailure: (WalletAccessContext(136118cc-5584-4a89-a5ac-66f6f6a86b3b),org.hyperledger.identus.mercury.error.package$SendMessageError: Error when sending message: channel gone inactive with 1 missing response(s); DATA:'{"ciphertext":"EMynJNeE9vap2jhwFUlVpsjNHNcP2al48rcoyiBLufRLTf9ASEj1zPJHULon8kLPp-jtiWsBAvxtLmyJxjEFdrmM__DXSiE0GekihkbhqKvwiSPDnu_RLlSmlQ0-7mjnjrGSzUtpvWFJrB1V0kN_teZjQDnGiCVioPDdHbloZ3lKSfzHxkrwxaHwZ5....."}')

Please provide the environment you discovered this bug in

AGENT_VERSION=1.36.1
PRISM_NODE_VERSION=2.3.0

Anything else?

No response

yshyn-iohk commented 2 weeks ago

hi @jeyem. Could you provide more details on the issue:

  1. how do you deploy the agent and mediator (any docker files)?
  2. what is your current configuration (environment variables and .env files)?
jeyem commented 2 weeks ago

@yshyn-iohk 1) this is my fork for deployment: here about and this is my mediator dockerfile

version: '3.9'

services:
  mongo:
    image: mongo:6.0
    ports:
      - "27017:27017"
    command: ["--auth"]
    environment:
      - MONGO_INITDB_ROOT_USERNAME=admin
      - MONGO_INITDB_ROOT_PASSWORD=admin
      - MONGO_INITDB_DATABASE=mediator
      - RENEW=2
    volumes:
      - ./initdb.js:/docker-entrypoint-initdb.d/initdb.js

  atalaprism-mediator:
    image: ghcr.io/input-output-hk/atala-prism-mediator:1.0.0
    ports:
      - "8080:8080"
    environment:
      # Creates the identity:
      - KEY_AGREEMENT_D=<D>
      - KEY_AGREEMENT_X=<X>
      - KEY_AUTHENTICATION_D=<A_D>
      - KEY_AUTHENTICATION_X=<A_X>
      - SERVICE_ENDPOINTS=https://mediator.socious.io;wss://mediator.socious.io/ws
      - MONGODB_USER=admin
      - MONGODB_PASSWORD=admin
      - MONGODB_PROTOCOL=mongodb
      - MONGODB_HOST=mongo
      - MONGODB_PORT=27017
      - MONGODB_DB_NAME=mediator
    depends_on:
      - "mongo"
    extra_hosts:
      - "host.docker.internal:host-gateway"

2) this is my env file for agent :

AGENT_VERSION=1.36.1
PRISM_NODE_VERSION=2.3.0
VAULT_TOKEN=<TOKEN>
VAULT_CONFIG_PATH=/home/ubuntu/prism-agent-setup/configs/vault.hcl

NODE_LEDGER=cardano
NETWORK=mainnet
WALLET_ID=<ID>
WALLET_PASSPHRASE=<PHRASE>
WALLET_PAYMENT_ADDRESS=addr1q9zpd7hfmdlfzsvsu6jzc59eyhssx0h6nql2aqv4xgprczl964f5hgt43cqa5vej6gmgjcax9hjeq2rngz7agm8umn7suycxjw
WALLET_HOST=<HOST>
WALLET_PORT=8090
WALLET_SEED=<SEED>
SECRET_STORAGE_BACKEND=vault

PGUSER=<USER>
PGHOST=<HOST>
PGPASSWORD=<PASSWORD>
AGENT_APIKEY=<APIKEY>
AGENT_APIKEY_ENABLED=true
mineme0110 commented 2 weeks ago

@jeyem We are unable to reproduce this error. Based on the available information, we tested it and did not encounter any such intermittent issues. We also verified this with our SDK team, and they have not reported any similar issues.

jeyem commented 2 weeks ago

@mineme0110 did you tried with same env I mean mainnet setup ? cause I didn't face this on testnet but on mainnet as I mentioned it's not always same behavior it's showing off time to time