Open ianco opened 1 year ago
@ianco, Which version of code/image were you using?
I was running locally. I tested different versions of the code (latest code, plus checking out older tags), but with the same rust version (I think it may be a rust version or postgres library version issue)
I ask, because that likely means the latest acay-py
images are affected by this issue too. The 0.8.0-rc0
images from https://github.com/hyperledger/aries-cloudagent-python/pkgs/container/aries-cloudagent-python and https://hub.docker.com/r/bcgovimages/aries-cloudagent/tags
I've tried with a few different aca-py images and I haven't been able to get this to work (create a wallet in an existing database) with either indy or askar storage.
I didn't know that wallet can create on existing database. I use indy wallets with postgres and every time creates a new database for a single wallet. Use POST multitenancy/wallet on multitenant agents. With which service try to create a wallet on existing database? Maybe try it too. If this is possible, from the scope of performance, it sounds better to have many wallets on a database from having many databases-wallets.
Did anyone ever find a solution for this. I'm currently having troubles integrating acapy with Hashicorp vault secrets management because the provisioned database throws the error aries_askar.error.AskarError: Backend error Caused by: error returned from database: relation "config" does not exist
For EC2 (and possibly other scenarios) aca-py needs to be able to create a wallet in an existing database. (The default behaviour is for aca-py to create the database if it doesn't exist.)
This used to work with indy-sdk and the postgres plug-in (at least according to my recollection) but now results in this error:
The code tries to select from the metadata table (
SELECT value FROM metadata
) to check if the wallet exists and has been initialized, this is throwing aPoisonError
which crashes the agent