-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic because WasmVM cache metrics collector cannot be registered properly #1574
Comments
dadamu
changed the title
panic because wasmVM metrics collector cannot be registered properly
Panic because WasmVM cache metrics collector cannot be registered properly
Aug 28, 2023
This was referenced Aug 28, 2023
6 tasks
wojtek-coreum
added a commit
to CoreumFoundation/coreum
that referenced
this issue
Sep 7, 2023
# Description Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected. Bug is described here: CosmWasm/wasmd#1574 and fixed here: CosmWasm/wasmd#1575 Once v0.42 is released we may uncomment this code. Task has been created for this. # Reviewers checklist: - [ ] Try to write more meaningful comments with clear actions to be taken. - [ ] Nit-picking should be unblocking. Focus on core issues. # Authors checklist - [x] Provide a concise and meaningful description - [x] Review the code yourself first, before making the PR. - [x] Annotate your PR in places that require explanation. - [x] Think and try to split the PR to smaller PR if it is big.
19 tasks
RiccardoM
added a commit
to desmos-labs/desmos
that referenced
this issue
Sep 12, 2023
## Description This PR disables the buggy wasm metrics in order to avoid node running failure. Relates to CosmWasm/wasmd#1574 <!-- Add a description of the changes that this PR introduces and the files that are the most critical to review. --> --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://docs.cosmos.network/v0.44/building-modules/intro.html) - [ ] included the necessary unit and integration [tests](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) --------- Co-authored-by: Riccardo <riccardo.montagnin@gmail.com>
RiccardoM
pushed a commit
to desmos-labs/desmos
that referenced
this issue
Sep 12, 2023
## Description This PR disables the buggy wasm metrics in order to avoid node running failure. Relates to CosmWasm/wasmd#1574 <!-- Add a description of the changes that this PR introduces and the files that are the most critical to review. --> --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://docs.cosmos.network/v0.44/building-modules/intro.html) - [ ] included the necessary unit and integration [tests](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) --------- Co-authored-by: Riccardo <riccardo.montagnin@gmail.com> (cherry picked from commit 6db3204)
braverdever
added a commit
to braverdever/Coreum
that referenced
this issue
Oct 24, 2023
# Description Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected. Bug is described here: CosmWasm/wasmd#1574 and fixed here: CosmWasm/wasmd#1575 Once v0.42 is released we may uncomment this code. Task has been created for this. # Reviewers checklist: - [ ] Try to write more meaningful comments with clear actions to be taken. - [ ] Nit-picking should be unblocking. Focus on core issues. # Authors checklist - [x] Provide a concise and meaningful description - [x] Review the code yourself first, before making the PR. - [x] Annotate your PR in places that require explanation. - [x] Think and try to split the PR to smaller PR if it is big.
braverdever
pushed a commit
to swordEdge/Coreum
that referenced
this issue
Oct 24, 2023
# Description Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected. Bug is described here: CosmWasm/wasmd#1574 and fixed here: CosmWasm/wasmd#1575 Once v0.42 is released we may uncomment this code. Task has been created for this. # Reviewers checklist: - [ ] Try to write more meaningful comments with clear actions to be taken. - [ ] Nit-picking should be unblocking. Focus on core issues. # Authors checklist - [x] Provide a concise and meaningful description - [x] Review the code yourself first, before making the PR. - [x] Annotate your PR in places that require explanation. - [x] Think and try to split the PR to smaller PR if it is big.
Superdev1010
added a commit
to Superdev1010/Coreum
that referenced
this issue
Mar 4, 2024
# Description Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected. Bug is described here: CosmWasm/wasmd#1574 and fixed here: CosmWasm/wasmd#1575 Once v0.42 is released we may uncomment this code. Task has been created for this. # Reviewers checklist: - [ ] Try to write more meaningful comments with clear actions to be taken. - [ ] Nit-picking should be unblocking. Focus on core issues. # Authors checklist - [x] Provide a concise and meaningful description - [x] Review the code yourself first, before making the PR. - [x] Annotate your PR in places that require explanation. - [x] Think and try to split the PR to smaller PR if it is big.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
WasmVM metrics now is not registered properly and it occurs panics when querying the
/metrics
endpoint. The panic message is as follows:How to repoduce
wasmd
testnetinstrumentation.prometheus
inside~/.wasmd/config/config.toml
telemetry.enabled
inside~/wasmd/config/app.toml
wasmd start
/metrics
bycurl localhost:26660/metrics
How to fix
Fix
WithVMCacheMetrics
to usepostOptsFn
instead ofoptsFn
to make sure wasmVM has already been setup.https://github.com/CosmWasm/wasmd/blob/main/x/wasm/keeper/options.go#L129
The text was updated successfully, but these errors were encountered: