immutability-io / vault-ethereum

A plugin that turns Vault into an Ethereum wallet.
243 stars 65 forks source link

Error writing data to ethereum-plugin/config: Error making API request. #67

Closed 0x234 closed 5 years ago

0x234 commented 5 years ago

Detailed Description

Adding configuration to vault-ethereum causes the plugin to die with:

Error writing data to ethereum-plugin/config: Error making API request.

URL: PUT https://127.0.0.1:8200/v1/ethereum-plugin/config
Code: 500. Errors:

* 1 error occurred:
    * internal error

Nothing in the vault's logs to help troubleshoot what the issue is.

Command attempted:

vault write ethereum-plugin/config rpc_url="https://rinkeby.infura.io/foo" chain_id="4" api_key="bar"

0x234 commented 5 years ago

After a few attempts I can get it added successfully. But then the plugin dies:

vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.644Z [DEBUG] secrets.ethereum.ethereum_1d6b1f71.ethereum: using plugin: version=4
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.644Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: setup: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.662Z [INFO]  expiration: revoked lease: lease_id=sys/wrapping/wrap/hd6451a164f67fd3c2818be7be775adf2232bb4b5232d87396d4a1abb8cd9d714
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.850Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: setup: transport=gRPC status=finished err=<nil> took=206.257513ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.852Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: type: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.853Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: type: transport=gRPC status=finished took=642.444µs
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.853Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: special paths: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.854Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: special paths: transport=gRPC status=finished took=516.533µs
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.854Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: initialize: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.854Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: initialize: transport=gRPC status=finished err=<nil> took=368.09µs
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.854Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path= status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:08.856Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path= status=finished err=<nil> took=1.495543ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:21.349Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle existence check: transport=gRPC path=config status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:21.351Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle existence check: transport=gRPC path=config status=finished err=<nil> took=2.056246ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:21.351Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path=config status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:15:21.372Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path=config status=finished err=<nil> took=20.370373ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:06.369Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path= status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:06.371Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path= status=finished err=<nil> took=1.951913ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:06.585Z [DEBUG] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: starting plugin: path=/app/bin/vault-ethereum args=[/app/bin/vault-ethereum, --ca-cert=/app/bin/root.crt, --client-cert=/app/bin/vault.crt, --client-key=/app/bin/vault.key]
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:06.586Z [DEBUG] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: plugin started: path=/app/bin/vault-ethereum pid=1675
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:06.586Z [DEBUG] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: waiting for RPC address: path=/app/bin/vault-ethereum
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:06.786Z [INFO]  expiration: revoked lease: lease_id=sys/wrapping/wrap/h63ed11a459392bc0e62330de7d0ff5fa2c78a63c44d4f715aeebc0b9fee47534
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:07.849Z [DEBUG] secrets.ethereum.ethereum_1d6b1f71.ethereum: plugin process exited: path=/app/bin/vault-ethereum pid=1611 error="signal: killed"
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:07.956Z [DEBUG] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: using plugin: version=4
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:07.961Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: setup: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:07.957Z [DEBUG] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin.vault-ethereum: plugin address: address=/tmp/plugin669856425 network=unix timestamp=2019-08-20T08:16:07.956Z
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.141Z [INFO]  expiration: revoked lease: lease_id=sys/wrapping/wrap/ha17e9b94f0af7e177f2345b4becff95399ca62c18e448d4d3461e783fc9ded78
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.257Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: setup: transport=gRPC status=finished err=<nil> took=296.127411ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.257Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: type: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.260Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: type: transport=gRPC status=finished took=2.889921ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.260Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: special paths: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.262Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: special paths: transport=gRPC status=finished took=1.419377ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.262Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: initialize: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.263Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: initialize: transport=gRPC status=finished err=<nil> took=1.296117ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.263Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: handle request: transport=gRPC path= status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:16:08.266Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: handle request: transport=gRPC path= status=finished err=<nil> took=2.172282ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.370Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path= status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.370Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: handle request: transport=gRPC path= status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.371Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: handle request: transport=gRPC path= status=finished err="plugin is shut down" took=1.183004ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.371Z [DEBUG] secrets.ethereum.ethereum_1d6b1f71: reloading plugin backend: plugin=ethereum
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.371Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: cleanup: transport=gRPC status=started
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.371Z [TRACE] secrets.ethereum.ethereum_1d6b1f71.ethereum: cleanup: transport=gRPC status=finished took=273.145µs
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.371Z [WARN]  secrets.ethereum.ethereum_1d6b1f71.ethereum: error closing client during Kill: err="rpc error: code = Canceled desc = grpc: the client connection is closing"
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.371Z [WARN]  secrets.ethereum.ethereum_1d6b1f71.ethereum: plugin failed to exit gracefully
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.372Z [TRACE] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: handle request: transport=gRPC path= status=finished err=<nil> took=1.976363ms
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.657Z [DEBUG] secrets.ethereum.ethereum_1d6b1f71.ethereum: starting plugin: path=/app/bin/vault-ethereum args=[/app/bin/vault-ethereum, --ca-cert=/app/bin/root.crt, --client-cert=/app/bin/vault.crt, --client-key=/app/bin/vault.key]
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.657Z [DEBUG] secrets.ethereum.ethereum_1d6b1f71.ethereum: plugin started: path=/app/bin/vault-ethereum pid=1731
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:06.657Z [DEBUG] secrets.ethereum.ethereum_1d6b1f71.ethereum: waiting for RPC address: path=/app/bin/vault-ethereum
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:07.743Z [DEBUG] secrets.ethereum-plugin.ethereum-plugin_468207dc.ethereum-plugin: plugin process exited: path=/app/bin/vault-ethereum pid=1675 error="signal: killed"
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:07.759Z [INFO]  http: TLS handshake error from 10.20.2.76:47922: EOF
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:07.759Z [ERROR] rollback: error rolling back: path=ethereum/ error="Unrecognized remote plugin message:
vault-7c5d7cb596-fzf6b vault
vault-7c5d7cb596-fzf6b vault This usually means that the plugin is either invalid or simply
vault-7c5d7cb596-fzf6b vault needs to be recompiled to support the latest protocol."
vault-7c5d7cb596-fzf6b vault 2019-08-20T08:17:07.760Z [DEBUG] secrets.ethereum.ethereum_1d6b1f71.ethereum: plugin process exited: path=/app/bin/vault-ethereum pid=1731 error="signal: killed"
0x234 commented 5 years ago

This was a certificate problem. Closing.