openware / opendax

Open-Source Cloud-Native Digital Asset & Cryptocurrency Exchange Platform
https://www.openware.com/products/opendax
Apache License 2.0
613 stars 532 forks source link

Kaigara Error, does not work well with latest Opendax (master & 3-0-stable) #360

Open ianeinser opened 2 years ago

ianeinser commented 2 years ago

Hi guys (@chumaknadya), cc: @mod , @calj

I just made a fresh install of opendax (master and 3-0-stable) and found this

{"level":"DEBUG","time":"2021-10-17 12:57:53","message":" (0.3ms) COMMIT"} {"level":"DEBUG","time":"2021-10-17 12:57:53","message":" (0.2ms) BEGIN"} {"level":"DEBUG","time":"2021-10-17 12:57:53","message":" Blockchain Exists (1.1ms) SELECT 1 AS one FROM \"blockchains\" WHERE \"blockchains\".\"key\" = $1 LIMIT $2 [[\"key\", \"eth-kovan\"], [\"LIMIT\", 1]]"} {"level":"DEBUG","time":"2021-10-17 12:57:53","message":" Blockchain Exists (0.3ms) SELECT 1 AS one FROM \"blockchains\" WHERE \"blockchains\".\"key\" = $1 LIMIT $2 [[\"key\", \"eth-kovan\"], [\"LIMIT\", 1]]"} {"level":"DEBUG","time":"2021-10-17 12:57:53","message":" Blockchain Exists (0.3ms) SELECT 1 AS one FROM \"blockchains\" WHERE \"blockchains\".\"protocol\" = $1 LIMIT $2 [[\"protocol\", \"ERC-20\"], [\"LIMIT\", 1]]"} {"level":"DEBUG","time":"2021-10-17 12:57:53","message":" Blockchain Create (0.6ms) INSERT INTO \"blockchains\" (\"key\", \"name\", \"client\", \"height\", \"explorer_address\", \"explorer_transaction\", \"status\", \"created_at\", \"updated_at\", \"protocol\", \"collection_gas_speed\", \"withdrawal_gas_speed\") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING \"id\" [[\"key\", \"eth-kovan\"], [\"name\", \"Ethereum Kovan\"], [\"client\", \"parity\"], [\"height\", 8670000], [\"explorer_address\", \"https://etherscan.io/address/\\#{address}\"], [\"explorer_transaction\", \"https://etherscan.io/tx/\\#{txid}\"], [\"status\", \"active\"], [\"created_at\", \"2021-10-17 12:57:53.913153\"], [\"updated_at\", \"2021-10-17 12:57:53.913153\"], [\"protocol\", \"ERC-20\"], [\"collection_gas_speed\", \"standard\"], [\"withdrawal_gas_speed\", \"standard\"]]"} {"level":"DEBUG","time":"2021-10-17 12:57:53","message":" (0.3ms) ROLLBACK"} rake aborted! Vault::HTTPClientError: The Vault server at `http://vault:8200' responded with a 403. Any additional information the server supplied is shown below:

what is that? this error occurs when peat db is seeded or when this line is executed

  sh 'docker-compose run --rm peatio bash -c "./bin/link_config && kaigara bundle exec rake db:seed"'

any hint?

muhammednagy commented 2 years ago

am having the same issue. :(

mehdi-agh commented 2 years ago

Same problem for me

spencerwp commented 2 years ago

This problem appeared when using a custom application name.

In templates/config/secrets.yaml you will find the secrets->global->scopes->private->vault_app_name is hardcoded to opendax. This will cause peatio's vault-encrypted models to try to use the wrong name (opendax).

It should be: <%= @config['app']['name'].downcase %>

like the peatio_rails.hcl.erb uses.

harry-joshi commented 2 years ago

This problem appeared when using a custom application name.

In templates/config/secrets.yaml you will find the secrets->global->scopes->private->vault_app_name is hardcoded to opendax. This will cause peatio's vault-encrypted models to try to use the wrong name (opendax).

It should be: <%= @config['app']['name'].downcase %>

like the peatio_rails.hcl.erb uses.

Thank You So Much Its Working