opendax icon indicating copy to clipboard operation
opendax copied to clipboard

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

Open ianeinser opened this issue 3 years ago • 4 comments

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:

  • 1 error occurred: * permission denied

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?

ianeinser avatar Oct 17 '21 20:10 ianeinser

am having the same issue. :(

muhammednagy avatar Dec 23 '21 17:12 muhammednagy

Same problem for me

mehdi-agh avatar Feb 21 '22 08:02 mehdi-agh

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.

spencerwp avatar Apr 20 '22 03:04 spencerwp

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

harry-joshi avatar Jul 10 '22 10:07 harry-joshi